Skip to main content
Question

Tiler on Polygons with Different Orientations

  • August 20, 2018
  • 1 reply
  • 79 views

Forum|alt.badge.img

I'm using the Tiler transformer to split individual polygons by a specified number of horizontal and vertical tiles. This overall works perfectly for polygons that are generally horizontally or vertically oriented. However, this functionality is lost when attempting to tiler polygons with "irregular" orientation (see image).

Any suggestions for how to account for this? It'd be great if the Tiler transformer had an option to use the the polygon's geometry and tile starting from the longest measured side?

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.

1 reply

jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • August 20, 2018

Rotate your problem polygons so they are axis aligned, tile them, and rotate them back the other way.

 

 

To determine the angle to rotate, what I've done is used an geometry extractor -> oriented bounding box ->coordinate extrator ->expressionEvaluator (to determine angle) -> geometryReplacer (to restore original geometry).

 

 

There's an idea to include the orientation angle on the bounding box replacer, which would make things simpler https://knowledge.safe.com/content/idea/20534/angle-attribute-for-oriented-boundingboxreplacer.html