[Geotiff] [GeoTIFF] #70: listgeo not printing corners correctly for PixelIsPoint

Norman Goldstein normvcr at telus.net
Sun Sep 28 18:26:27 PDT 2014


I would supply an actual patch for this, but I would like to know 
whether people agree, first.  Or, would a patch help in that regard?

On 09/24/2014 09:56 AM, GeoTIFF wrote:
> #70: listgeo not printing corners correctly for PixelIsPoint
> --------------------+-------------------------------------------------------
> Reporter:  normvcr  |       Owner:  warmerdam
>      Type:  defect   |      Status:  new
> Priority:  normal   |   Component:  libgeotiff
>   Version:  1.3.0    |    Keywords:  listgeo corners PixelIsPoint
> --------------------+-------------------------------------------------------
>   Actually, in version '''1.4''' of libgeotiff.  In listgeo.c:
>
>   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.
>




More information about the Geotiff mailing list