Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTiff: write georeferencing info to PAM .aux.xml when using PROFILE=BASELINE #4593

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

rouault
Copy link
Member

@rouault rouault commented Oct 5, 2021

No description provided.

@rouault rouault added this to the 3.4.0 milestone Oct 5, 2021
@jratike80
Copy link
Collaborator

Isn't it written already? Testing with

gdal_translate -co profile=baseline warped1.tif base2.tif

base2.tif.aux.xml

<PAMDataset>
  <SRS dataAxisToSRSAxisMapping="1,2">PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]]</SRS>
  <GeoTransform>  3.0000000000000000e+02,  1.0000000000000000e+00,  0.0000000000000000e+00,  3.0000000000000000e+02,  0.0000000000000000e+00, -1.0000000000000000e+00</GeoTransform>
  <PAMRasterBand band="1">
    <NoDataValue>0.00000000000000E+00</NoDataValue>
  </PAMRasterBand>
  <PAMRasterBand band="2">
    <NoDataValue>0.00000000000000E+00</NoDataValue>
  </PAMRasterBand>
  <PAMRasterBand band="3">
    <NoDataValue>0.00000000000000E+00</NoDataValue>
  </PAMRasterBand>
</PAMDataset>

@rouault
Copy link
Member Author

rouault commented Oct 5, 2021

Isn't it written already?

yes, in gdal_translate / CreateCopy() mode, it was already working. But not in gdalwarp / Create() one

@rouault rouault merged commit 2b253b9 into OSGeo:master Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants