Skip to main content

Hello,

I'm scraping data using an HTTPCaller.
One of the attributes contains GeoJSON data:

{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"coordinates":[[[5.96266096723135, 51.9996241913007],[5.96267141231219, 51.9996290142943],[5.96315710713663, 51.999175649922],[5.96290120337337, 51.9991708268575],[5.96266096723135, 51.9996241913007]]],"type":"Polygon"}}]}

I'd like to visualize these polygons in the Data Inspector but I don't know how to convert this data into an actual polygon.

What transformers do I need?

Thanks

Hi ​@ed-progres ,

JSONFragmenter with these parameters might help you.

  • JSON Query: jsons“features”]
  • Fragment as Format: GEOJSON

 


@ed-progres beside the nice method of ​@takashi you could also use the GeometryReplacer followed by a CoordinateSystemSetter. 

In case you might apply this one you only need to choose the right attribute in GeometryReplacer to get the JSON fragments.

 

 


Here’s my two cents: if the data you’re scraping is available through a simple GET request, you can simply load it into a GeoJSON reader by using the URL as the data source.