Ticket #2840 (closed enhancement: fixed)
Rasterize/Cutline - include any crossed pixel
| Reported by: | warmerdam | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.7.0 |
| Component: | Algorithms | Version: | unspecified |
| Severity: | normal | Keywords: | warp rasterize cutline |
| Cc: | vjetly, ysid |
Description
Yusuf has requested that the gdalwarp cutline support be extended with an option to include all pixels crossed by the cutline, not only those for which the center of the pixel is within the polygon.
It appears this will require changes to GDALdllImageFilledPolygon() in gdal/alg/llrasterize.cpp. This option would need to be controlled by an option to the GDAL warper. At the same time it might as well be exposed for the regular users of the rasterization API, including the gdal_rasterize command.
Change History
Note: See
TracTickets for help on using
tickets.
