Skip to content

GeoArrays.write("output.png", ga) creates unnecessary "output.png.aux.xml" file #164

@hawahee

Description

@hawahee

When exporting an image with an undefined coordinate reference system using GeoArrays.write("output.png", ga) an unnecessary output.png.aux.xml file is created that contains the following:

<PAMDataset>
  <GeoTransform> 0.0000000000000000e+000, 1.0000000000000000e+000, 0.0000000000000000e+000, 0.0000000000000000e+000, 0.0000000000000000e+000, 1.0000000000000000e+000</GeoTransform>
</PAMDataset>

Can the write method be changed to not write such unnecessary files when there is no defined CRS?
Using ArchGDAL instead of GeoArrays does not produce the .aux.xml file.

Steps to reproduce:

using GeoArrays

z = rand(UInt8, 10, 10)

ga = GeoArrays.GeoArray(z)

GeoArrays.write("output.png", ga)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions