Feature request #4236

Write CRS to .aux.xml file when adding raster with no embedded CRS information

Added by Alister Hood about 6 years ago. Updated 7 months ago.

Pull Request or Patch supplied:No Resolution:
Easy fix?:No


- .prj or .qpj files are not supported for raster formats

- Some raster formats (e.g. jpeg, bitmap) cannot include coordinate or projection information. These formats are typically used with world files to provide the coordinate information, in which case QGIS prompts for the CRS when the layer is added.

- as well as a world file, some raster files georeferenced by ArcGIS include projection information in a PAM (.aux.xml) file. QGIS supports this information (QGIS does not prompt for CRS if it is present).

It would be good if QGIS could create .aux.xml files containing CRS information, probably after prompting for CRS when a raster layer is added.

N.B. I guess maybe this functionality would require improvements to Gdal.


#1 Updated by Alister Hood about 6 years ago

Just for information, here is an example .aux.xml which defines CRS:

  <Metadata domain="xml:ESRI" format="xml">
    <GeodataXform xsi:type="typens:IdentityXform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:typens="http://www.esri.com/schemas/ArcGIS/9.2">
      <SpatialReference xsi:type="typens:ProjectedCoordinateSystem">

#2 Updated by Giovanni Manghi almost 6 years ago

  • Target version set to Version 1.7.4

#3 Updated by Giovanni Manghi over 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#4 Updated by Pirmin Kalberer about 5 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

#5 Updated by Miroslav Umlauf about 3 years ago

It actually would be nice to have. And it shouldn't be that hard. When I am creating JPGs from TIF with -co WORDFILE=YES it actually creates *.wld file plus .aux.xml with:

  <SRS>PROJCS["WGS 84 / Pseudo-Mercator",...]</SRS>

JPGs created this way are opened by QGIS straight (QGIS does not prompt for CRS).

#6 Updated by Giovanni Manghi 7 months ago

  • Easy fix? set to No

Also available in: Atom PDF