Closed AlexisDrogoul closed 3 weeks ago
To add more context, here is what happens when there's a mismatch between the format and the extension:
shp
produces a runtime errorpng
append a .png
extension to the existing oneasc
produces what you showedgeotiff
, text
and json
do not care about the extension and just write into the fileAlso the result you get seems to be the same as if it were saved as a geotiff
I have committed a possible fix -- but only tested it with the asc
+ data
combination. Please tell if it solves the other problems too !
I don't know if it's the result of this fix or if it was something already present, but I noticed that saving the cell in png with png extension result in a new png file but also a prj file. Is that an expected behaviour?
To reproduce Run the model named
Save to ASC.gaml
in the library. The ASC file is correctly saved.Now replace
save cell to:"../results/grid.asc";
bysave cell format:"asc" to:"../results/grid.data";
, which should normally produce the same outcome (except in a.data
file), and open the resulting file :Expected behavior That specifying the format as
asc
overrides the extension of the file.