Skip to main content
Solved

Json with 25 multipoints geometrys How to convert into 25 polygons?

  • February 13, 2020
  • 2 replies
  • 21 views

Hi

 

I'm calling a json api, that gives several geometrys. I can succesfully parse the json to kmz and see the features. Unfortinatly there are examples, where multipoints are used, and it gives more value (for me) to show it as polygons (each enclosed by a group of multipoints) . How do I change the multipoint to polygons?

Im attaching my fme script, and a sample json.

Using FME Workbench 19.1

Adress of url of json api is in the script.

Best Regards

David

Best answer by jdh

What do you want to do with the multipoints? Do you want a polygon enclosing them, in which case I would look at the HullAccumulator. Or do the multipoints correspond to the vertices of the polygon, in which case I would look at the LineBuilder.

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
  • February 13, 2020

What do you want to do with the multipoints? Do you want a polygon enclosing them, in which case I would look at the HullAccumulator. Or do the multipoints correspond to the vertices of the polygon, in which case I would look at the LineBuilder.


  • Author
  • 1 reply
  • February 14, 2020

Hi. Sorry I was unclear. I want to enclose them. Will take a look on the hullbuilder.

I have just tryed your suggestion. I used a JsonFlattner followed by a HullReplacer (concave setting), and this worked right away,

Thanks!

Rgds David