Skip to main content
Question

Can we move centerPointReplacer points to a common end of the polygon that created them?

  • June 3, 2020
  • 1 reply
  • 24 views

benvk
Contributor
Forum|alt.badge.img+8
  • Contributor
  • 60 replies

Hey, currently I am using a centerPointReplacer to create points in the middle of cemetery plots (polygons), that meet a certain criteria (they have a photo attached to them). The points are being created in the 'Centre of Gravity Point', it works well, see black dots below, they are all in the middle of our graves:

As you can see, the labels of these cemetery plots are covering the dots (or close to), and I am wondering if there is a way I can consistently move these dots to be offset, towards a common narrow end of the polygon? I dont want to use a random spot, as these will not be visually appealing, so I am hoping to move the dots to be along a common side, something like these red dots:

If I can achieve this, the labels will all fall back in line and be more visually appealing.

To make thinks even more difficult, I should mention that our plots are not all rotated to the same angle, they can face any which way you can think of:

 

Has anyone had any experience doing something like this?

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

Forum|alt.badge.img+2
  • 1891 replies
  • June 4, 2020

@benvk Try the CenterLinereplacer (provided your using FME 2019 or later). This will give you a line along the length of your sites, but not touching the edge of the area. You can use the end point of the line to locate you points. You'll probably need to use a little bit of trigonometry to ensure that you always get the same end of the line for a give 'block' of sites'

 

Attach a small dataset if you want someone to try and create a proof-of-concept.