Skip to main content
Question

Download GEOJson through S3Connector


Hi,

When downloading a geojson file through S3, I get a _content attribute containing my file's content. How can i convert it to geojson and write a geojson file (I do not want to use the S3Connector download to file as it does not let me name the file the way I want).

2 replies

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • March 21, 2022

Hi @osacode​ ,

If you are downloading as an attribute, you can use a text file writer to write out the data with the .geojson file extension (instead of the default .txt).

You can rename it either in an AttributeManager or by setting the value of the text_line_data attribute to _contents in the text file writer feature type (as shown in the second screenshot).

imageimageThe AttributeFileWriter is another option as well:

image


  • Author
  • March 22, 2022

Thank you !


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