Opened 10 years ago

Closed 10 years ago

#5663 closed defect (invalid)

listgeo not printing corners correctly for PixelIsPoint

Reported by: normvcr Owned by: warmerdam
Priority: normal Milestone:
Component: Utilities Version: unspecified
Severity: normal Keywords: libgeotiff, listgeo, pixelIsPoint
Cc: normvcr@…

Description (last modified by normvcr)

In GTIFPrintCorners(), the following code/hack needs to be added at the very top:

if( PixelIsPoint ) {

--xsize; --ysize;

}

For example, suppose an image extent has a width of 10m, with 5m pixels.

In PixelIsArea, the image has 2 pixels in the width, centred at 2.5m and 7.5m.

In PixelIsPoint, the image has 3 pixels in the width, at 0m, 5m and 10m.

Change History (2)

comment:1 by normvcr, 10 years ago

Description: modified (diff)

comment:2 by Even Rouault, 10 years ago

Resolution: invalid
Status: newclosed

This code comes from libgeotiff (and the source code of listgeo.c isn't even in GDAL sources), so the ticket should be open in libgeotiff bug tracker: http://trac.osgeo.org/geotiff/

Note: See TracTickets for help on using tickets.