Skip to main content

We need this to be able to post the attribute to an API which requires one of the other File Structure types than the default

I'm not sure I fully understand the ask, but could you write to geojson with a featurewriter with whatever settings you need, and then reread that file in as text to get the json you need for the API?


Off the top of my head, there are two options:

  1. Use the JSONTemplater to generate the entire GeoJSON document, or
  2. Use the FeatureWriter to write the GeoJSON to disk, then read it back into an attribute, e.g. using an AttributeFileReader connected to the summary port, reading from the file referenced in the "_dataset" attribute.

 


Off the top of my head, there are two options:

  1. Use the JSONTemplater to generate the entire GeoJSON document, or
  2. Use the FeatureWriter to write the GeoJSON to disk, then read it back into an attribute, e.g. using an AttributeFileReader connected to the summary port, reading from the file referenced in the "_dataset" attribute.

 

Thanks, I think this is a slight omission from the GeometryExtractor but this solution works great, especially with AttributeFileReader in the mix


Reply