[Gdal-dev] Question about gdal_rasterize

Matthew Perry perrygeo at gmail.com
Wed Apr 12 20:43:18 EDT 2006


On 4/12/06, Guillaume HUBY <ghuby at geosys.com> wrote:
> An exact method should compute if a polygon edge cut a pixel edge and if
> pixel is inside polygon.
>

You might want to check out some of the pixel inclusion algorithms in
starspan (
http://starspan.casil.ucdavis.edu/?Documentation:Pixel_inclusion )

"""
A pixel c is contained in a polygon P only if the area of the
intersection between c and P is equal to or greater than a certain
pixel proportion.
"""

--
Matt Perry
perrygeo at gmail.com
http://www.perrygeo.net




More information about the Gdal-dev mailing list