Writing/Reading GCPZ to/from .aux.xml
|Reported by:||oleinik||Owned by:||Even Rouault|
I have raster file with GCPs points including "Z"-coorinate. After calling GDALSetGCPs with my points I'v got attached file "1.bmp.aux.xml". After calling GDALGetGCPs I have Z=0 on every points. Gdalinfo.log also attached.
I think that because different xml attribute used during write/read aux.xml file
GDALPamDataset::SerializeToXML: if( psGCP->dfGCPZ != 0.0 )
CPLSetXMLValue( psXMLGCP, "#GCPZ",
oFmt.Printf( "%.12E", psGCP->dfGCPZ ) );
GDALPamDataset::XMLInit: psGCP->dfGCPZ = atof(CPLGetXMLValue(psXMLGCP,"Z","0.0"));