[gdal-dev] Re: gdal_rasterize output off by one pixel/cell
etiennesky at yahoo.com
Sun Aug 28 12:23:52 EDT 2011
I can confirm that the offset fix works for me, using geographic CRS with SAD69 and WGS84 datums. I can't comment on the edge problem.
great job! Etienne
----- Original Message -----
From: Even Rouault <even.rouault at mines-paris.org>
To: gdal-dev at lists.osgeo.org
Cc: Hermann Peifer <peifer at gmx.eu>; Eli Adam <EAdam at co.lincoln.or.us>
Sent: Sunday, August 28, 2011 9:25:05 AM
Subject: Re: [gdal-dev] Re: gdal_rasterize output off by one pixel/cell
Le samedi 27 août 2011 11:14:00, Hermann Peifer a écrit :
> An absolute kludge-type of "solution" would be a) to make sure that the
> GeoTIFF is larger than the shapefile when rasterising (in order to not
> loose points at the edges) and b) to shift the GeoTIFF NW by 0.5 pixel
> after rasterising, as I already wrote in my previous mail.
> There has been no traffic on Eli's ticket
> http://trac.osgeo.org/gdal/ticket/3774 during the last 11 months, so my
> guess is that the bug will remain for a while. It's strange that there
> aren't more people stumbling across the issue.
I've applied a fix in trunk in http://trac.osgeo.org/gdal/changeset/22998 .
Please test and confirm if it works for you.
gdal-dev mailing list
gdal-dev at lists.osgeo.org
More information about the gdal-dev