Skip to main content
Question

geojson with fanout missing filetype extension on export

  • January 11, 2021
  • 4 replies
  • 53 views

so_much_more
Supporter
Forum|alt.badge.img+6

As the question describe. I have exported geojson to multiple files but I realize they are all missing the extension which make the program I will use the file in unable to read them. Is this a bug or how do I fix it?

4 replies

david_r
Celebrity
  • January 11, 2021

It's up to you to add the extension to the fanout expression, e.g.

@Value(MyFilename).json

 


so_much_more
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • January 11, 2021

I see, that is what I ended up with, but the file name looks a bit weird. It add a ".geojson" before the extension. But it works

@Value(areaname).json -> areaname1.geojson.geojson


david_r
Celebrity
  • January 11, 2021

I see, that is what I ended up with, but the file name looks a bit weird. It add a ".geojson" before the extension. But it works

@Value(areaname).json -> areaname1.geojson.geojson

Check the actual contents of the attribute areaname just before it arrives at the writer, e.g. using a breakpoint, Logger or Inspector.


so_much_more
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • January 11, 2021

Check the actual contents of the attribute areaname just before it arrives at the writer, e.g. using a breakpoint, Logger or Inspector.

Did that with the logger. The attribute name is as "expected" without the (.geojson) in the name. A bit surprised how it evaluate the name. Maybe I am still doing something wrong. But I have just added @Value(areaname).geosjon in the expression option