Skip to content

Commit

Permalink
RS2: add half-pixel shift to reported GCP line and column numbers (#1668
Browse files Browse the repository at this point in the history
) (fixes #1666)
  • Loading branch information
an-ivanov authored and rouault committed Jun 24, 2019
1 parent f1f1682 commit ddcf131
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gdal/frmts/rs2/rs2dataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1313,9 +1313,9 @@ GDALDataset *RS2Dataset::Open( GDALOpenInfo * poOpenInfo )
psGCP->pszId = CPLStrdup( szID );
psGCP->pszInfo = CPLStrdup("");
psGCP->dfGCPPixel =
CPLAtof(CPLGetXMLValue(psNode,"imageCoordinate.pixel","0"));
CPLAtof(CPLGetXMLValue(psNode,"imageCoordinate.pixel","0")) + 0.5;
psGCP->dfGCPLine =
CPLAtof(CPLGetXMLValue(psNode,"imageCoordinate.line","0"));
CPLAtof(CPLGetXMLValue(psNode,"imageCoordinate.line","0")) + 0.5;
psGCP->dfGCPX =
CPLAtof(CPLGetXMLValue(psNode,"geodeticCoordinate.longitude",""));
psGCP->dfGCPY =
Expand Down

0 comments on commit ddcf131

Please sign in to comment.