Skip to main content
Solved

Polygon Grid Labeling


Forum|alt.badge.img

Morning All, I have 4 equal polygons next to each other and i need to label them A,B C,B. Im struggling with my lists. They currently have no attributes My approach is to create a center point for all of them, to get the x and y. Then A should be the one with the smallest X and smallest Y, then B should be the Largest X and smallest Y etc etc. i get the inside x,y for all then build a list from them then sort the list by inside x but struggle from here. im unsure how to a list by two values ,ie x and y. i have tried list indexer, list exploder.

 

Thanks Steve point for each polygon then look for the [polygon with the smallest X and Y, this = A, The smallest X and

Best answer by jdh

What about Aggregator -> BoundsExtractor -> Deaggregator then AttributeCreator with conditionals to test if the individual polygon's upper left coordinate matches the extracted upper left.

 

 

If both A, If Y only B, if X only C if neither D.
View original
Did this help you find an answer to your question?

2 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • Best Answer
  • July 15, 2019

What about Aggregator -> BoundsExtractor -> Deaggregator then AttributeCreator with conditionals to test if the individual polygon's upper left coordinate matches the extracted upper left.

 

 

If both A, If Y only B, if X only C if neither D.

Forum|alt.badge.img
  • Author
  • July 15, 2019
jdh wrote:

What about Aggregator -> BoundsExtractor -> Deaggregator then AttributeCreator with conditionals to test if the individual polygon's upper left coordinate matches the extracted upper left.

 

 

If both A, If Y only B, if X only C if neither D.

Many Thanks jdh, thats just what i needed. I new the math i was after but didn't know the implementation. Thanks again, Steve


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