[gdal-dev] invert option for rasterize in python bindings

Chaitanya kumar CH chaitanya.ch at gmail.com
Wed Dec 7 22:58:32 EST 2011


Kyle,

This option is not available through the algorithm. It is implemented by
the gdal_rasterize utility[1] by creating a ring that is just outside the
extents of the output raster.

Python's gdal.RasterizeLayer() takes the same arguments as
GDALRasterizeLayers() [2].

[1]: http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdal_rasterize.cpp
[2]: http://www.gdal.org/gdal__alg_8h.html#dfe5e5d287d6c184aab03acbfa567cb1

On Thu, Dec 8, 2011 at 5:38 AM, Kyle Shannon <KShannon at gcs-research.com>wrote:

>  Is the –i (invert burn) option available through gdal.RasterizeLayer()?
> I can’t find the documentation.****
>
> ** **
>
> *Kyle Shannon*
> Senior Software Engineer****
>
> *GCS Research***
>
> Office 406-532-3254 • Direct 406-541-3276****
>
> kshannon at gcs-research.com • *www.gcs-research.com** *
>
> ** **
>
> This email message is for the sole use of the intended recipient(s) and
> may contain confidential and privileged information. Any unauthorized
> review, use, disclosure or distribution is prohibited. If you are not the
> intended recipient, please contact the sender by reply email and delete the
> original message.   ­­
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111208/59d12f25/attachment.html


More information about the gdal-dev mailing list