Skip to main content
Solved

JSONTemplater polygon geometry


Forum|alt.badge.img

I am having trouble understanding how to create polygon geometries using the JSONTemplater.

 

I have a JSONTemplater that takes my features and creates a GeoJSON structure that I am using. Below I outline my 2 templates (root and sub ((image 1 & 2))) where I set up the structure. My issue is when it comes to the geometry of the GeoJSON file.

Currently, since I could not figure out how the XQuery geometry functions worked, I tried to incorporate a geometryExtractor that feeds the geometry as an attribute. The problem with this method is that it reads that as a string value, and I cannot figure out how to read it as a literal object.

 

Root template

Sub template

ouput of geometryExtractor

JsonTemplater output

Best answer by takashi

Try using the fme:get-json-attribute function instead.

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

2 replies

takashi
Influencer
  • Best Answer
  • April 3, 2019

Try using the fme:get-json-attribute function instead.


Forum|alt.badge.img
  • Author
  • April 4, 2019
takashi wrote:

Try using the fme:get-json-attribute function instead.

Thank you @takashi ! Never fail, you are here to help.


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