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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Norman Goldstein
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.
>

_______________________________________________
Geotiff mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/geotiff