Ticket #3774 (closed defect: fixed)
gdal_rasterize can miss points on the extent edges
| Reported by: | EliL | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.9.0 |
| Component: | Utilities | Version: | svn-trunk |
| Severity: | normal | Keywords: | rasterize,edge,half-pixel-shift |
| Cc: | mattbk, peifer |
Description
Running gdal_rasterize -tr 100 100 -a Elevation -l town town.shp townraster.tif converts 12 points to 9 pixels (with values) in the output raster. It should convert it to 11 pixels (with values) in the output raster (1 point has a null value and should not get converted).
town.shp is a point layer with 12 points, 11 of those points have values in -a Elevation (1 is null), and in the output tif, 9 pixels have values. The far south and far east points do not have corresponding pixels with values.
Viewing the results in qgis, the points and pixels do not always line up correctly, perhaps it is the same cause for the extent edges to be missing pixels (i.e. those pixels would be in the next row or column of pixels).
Results should be reproducible with town.shp, attached.

