Skip to main content
Solved

Polygon Grid Labeling

  • July 14, 2019
  • 2 replies
  • 47 views

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.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • 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
  • 49 replies
  • 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.

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