Skip to main content
Question

Parse GeoJSON text attribute to geometry and test intersection with another WKT attribute

  • June 12, 2018
  • 1 reply
  • 92 views

Forum|alt.badge.img

I have some features that contain an attribute with a GeoJSON string, I also have a Multipolygon in WKT passed as a global parameter to the workspace, what I have to do is to parse each geometry from the attributes (in geoJSON) merge them into a multipolygon and test if this intersects at least once the geoJSON mulitpolygon. At the moment I cannot parse the GEOJSON from the attributes, I tried to use geometryExtractor but the transformer instead of extracting the GEOJSON string extracts the geometry of the incoming feature (which is unrelated), i tried the feature reader but I get an error because the reader is looking fro a file path while I submit an attribute. I parsed the geoJSON with the validation online and it id fine. How can I accomplish this?

1 reply

redgeographics
Celebrity
Forum|alt.badge.img+49

Try the GeometryReplacer instead of the GeometryExtractor. It will form geometry out of an attribute.


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