Feature request #4236

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

Added by Alister Hood over 5 years ago. Updated over 2 years ago.

Status:Open Start Date:08/29/2011
Priority:Normal Due date:
Assigned to:- % Done:


Target version:Future Release - Nice to have
Platform:All Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:


- .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.


Updated by Alister Hood over 5 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">

Updated by Giovanni Manghi over 5 years ago

  • Target version set to Version 1.7.4

Updated by Giovanni Manghi about 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

Updated by Pirmin Kalberer over 4 years ago

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

Updated by Miroslav Umlauf over 2 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).

Also available in: Atom