[Gdal-dev] Question about gdal_rasterize
Guillaume HUBY
ghuby at geosys.com
Thu Apr 13 03:11:25 EDT 2006
> -----Message d'origine-----
> De : Matthew Perry [mailto:perrygeo at gmail.com]
> Envoyé : jeudi 13 avril 2006 02:43
> À : Guillaume HUBY
> Cc : gdal-dev at lists.maptools.org
> Objet : Re: RE : RE : [Gdal-dev] Question about gdal_rasterize
>
> 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. """
I do not think that there is only one definition of pixel inclusion in a
polygon. All depends of your purposes.
I only want the pixel fully inside the polygon without intersection, because
I don't want the biases introduced by data outside of the polygon and pixel
containg mix of data inside and outside of the polygon.
But one might want all pixels interscting with polygon.
Or those who have their center inside.
Or those who have more than 50% of their area inside the polygon.
Regards,
Guillaume.
More information about the Gdal-dev
mailing list