Sorry for the bother again - I noticed that when I use gdalinfo to query a 
document (in this case, a GeoPDF) the geotransform coordinates are slightly 
different than when I can GetGeoTransform using the API on the same document 
with GDALOpen + GDALGetGeoTransform.

Presumably due to a difference in number of significant digits displayed in both cases.

  But I also noticed the WKS seems to be different in the two as well. Is there 
a configuration or something else I might be missing that would cause these to 
be off?

gdalinfo uses WKT_2:2019, and GetProjectionRef() uses WKT1.  You can use GetSpatialRef()->exportToWKT(apszOptions) with apsOptions = { "FORMAT=WKT2_2019", nulptr } to get the same result

--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to