Skip to main content
Question

How to retrieve formate attribute value direction from AreaBuilder


sveinj
Contributor
Forum|alt.badge.img

I use RadiateLineGenerator, Intersector and AreaBuilder to produce a sector diagram. I have problems getting the values into the sectors. By building list in AreaBuilder all the attributes from the intersector is preserved in the list. The problem is that I dont know which of the list elements to use.

AreaBulider generates a format attribute named direction (along with fme_gemetry and fme_type). If I test on the value of direction ('same' or 'opposite') I can find the correct element in the list. How can i retrive then vaule of a format attribute?

2 replies

pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • February 1, 2016

Hi,

Have you tried AttributeExposer?

Pratap


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • February 1, 2016

better way to create diagram (?):

1. count records holding values.

2. create a line of length of choice and (starting) location of choice.

3 duplicate by number founds at 1.

4 rotate lines by (totalvalue/value)*360 (or 2pi)

5 create 2darc with lenthg used at 2 at location used at 2.

6 intersect them.

7 build area.

8 colour by copynumber or value using featurecoloursetter.

9. label as desired using centerpointreplacer.

Maybe 2D affine labelpoint by:

x= 1,0,(angle of centerline of sector)* (length used at 2 + someoffset)

y = 0,1,(angle of centerline of sector)* (length used at 2 + someoffset)

AS radialgenerator will only create constant radials...

Put all in a custom and make input generic (use paramaters... then you too can maybe post it to the shop?)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings