0

Obviously, this point does not necessarily have to be the real centroid, but it does have to be a, only one, single interior point of each multipolygon.

enter image description here

What I have found is the CenterPointReplacer transformer, but having a multipolygon as origin the result is wrong. enter image description here

I have worked with other softwares like ESRI, which can do this task, but now I need to process this result using FME software, I have not found the way to do it.

ORIGIN: MULTIPOLYGON

FINAL: POINT

8
  • Try adding a nearest transformer and then using the xy coordinates in a geometry replacer Sep 6, 2021 at 18:33
  • Does FME support PointOnSurface like postgis.net/docs/ST_PointOnSurface.html?
    – user30184
    Sep 6, 2021 at 19:29
  • There's no PointOnSurface transformer...
    – XSS
    Sep 6, 2021 at 20:05
  • Could you consider to use GDAL instead of FME, or is is important to do everything with one ETL tool?
    – user30184
    Sep 6, 2021 at 20:48
  • The CenterPointReplacer safe.com/transformers/center-point-replacer has on option somewhere guaranteed to be inside the feature's area. Have you tried that?
    – user30184
    Sep 6, 2021 at 20:57

1 Answer 1

2

CenterPointReplacer Parameters

I went back as far as FME 2019.0 and indeed the CenterPointReplacer does work with MultiPolygons (as it should) in the way you desire AS LONG AS you set the Mode to Any Inside Point. Hope that helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.