Skip to main content
Solved

how to make this json into geometries in fme

  • March 5, 2020
  • 2 replies
  • 581 views

I've got some data in json which have some different geometries in it I want to read these with FME and output geometries, polys, lines, etc

I attached the files, do I need to somehow change the way the coordinates are formatted' to be able to create the geometries? How do I best go about this in fme?

 

also have pretty much the same data in xml, attached that too.

my plan was to extract the coordinates with attributesplitter but that got troublesome for anything other than a point feature

Best answer by jdh

That's looks like simple OGC WKT.

 

 

If you are using the json reader then setting the geometry format to OGC-WKTand supply the path should work (I haven't verified).

 

 

If you are receiving the json as an attribute, the jsonFragmentor followed by a GeometryReplacer (OGC_WKT) set to either Deviation.Geometry.WGS84 or Deviation.Geometry.SWEREF99TM will work.
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+40
  • Contributor
  • Best Answer
  • March 5, 2020

That's looks like simple OGC WKT.

 

 

If you are using the json reader then setting the geometry format to OGC-WKTand supply the path should work (I haven't verified).

 

 

If you are receiving the json as an attribute, the jsonFragmentor followed by a GeometryReplacer (OGC_WKT) set to either Deviation.Geometry.WGS84 or Deviation.Geometry.SWEREF99TM will work.

  • Author
  • March 6, 2020

That's looks like simple OGC WKT.

 

 

If you are using the json reader then setting the geometry format to OGC-WKTand supply the path should work (I haven't verified).

 

 

If you are receiving the json as an attribute, the jsonFragmentor followed by a GeometryReplacer (OGC_WKT) set to either Deviation.Geometry.WGS84 or Deviation.Geometry.SWEREF99TM will work.

Amazeballs, thanks I didn't know about this stuff before!