Skip to main content
Solved

JSON Multipolygon extraction


Forum|alt.badge.img

Hello,

 

I'm trying to extract a multipolygon from a JSON file with the model of this topic (https://knowledge.safe.com/questions/40791/json-multipolygon.html) but I don't achive to do it ...

It's my first time working with JSON

 

The multipolygon in the Json file is defined like this (I replace real value by x1 x2 etc in the exemple) :

{ "stages": { "filters.hexbin":{"boundary": "MULTIPOLYGON (((x1 y1,x2 y2,x3 y3,.... )))

I've try with : json["stages"]["filters.hexbin"]["boundary"] in JSONExtractor but it doesn't work , an I don't really know what I need to fill in "JSON Document" ...

Does anyone have any idea how to do it?

 

Regards

Best answer by takashi

Hi @arnaudfouch, looks like the MULTIPOLYGON text is an OGC WKT geometry representation. If so, you can convert the text to a geometry with the GeometryReplacer (Geometry Encoding: OGC Well Known Text).

View original
Did this help you find an answer to your question?

2 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • Best Answer
  • June 13, 2020

Hi @arnaudfouch, looks like the MULTIPOLYGON text is an OGC WKT geometry representation. If so, you can convert the text to a geometry with the GeometryReplacer (Geometry Encoding: OGC Well Known Text).


Forum|alt.badge.img
takashi wrote:

Hi @arnaudfouch, looks like the MULTIPOLYGON text is an OGC WKT geometry representation. If so, you can convert the text to a geometry with the GeometryReplacer (Geometry Encoding: OGC Well Known Text).

Great ! It works !

Thank you very much


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings