Solved

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

  • 13 February 2020
  • 2 replies
  • 0 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

icon

Best answer by jdh 13 February 2020, 16:45

View original

2 replies

Badge +22

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.

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

Reply