Re: [gdal-dev] Rasterize Inmem vector

2017-07-31 Thread Even Rouault
On lundi 31 juillet 2017 07:31:05 CEST Johan de Braak wrote: > Hi all, > > How would I rasterize an in memory vector? I have tried this: > > assert isinstance(inmemds, ogr.DataSource), 'inmemds is not a ogr > DataSource' #assert not triggered > > rastoptions = gdal.RasterizeOptions(outpu

[gdal-dev] Rasterize Inmem vector

2017-07-31 Thread Johan de Braak
Hi all, How would I rasterize an in memory vector? I have tried this: assert isinstance(inmemds, ogr.DataSource), 'inmemds is not a ogr DataSource' #assert not triggered rastoptions = gdal.RasterizeOptions(outputType=gdal.GDT_Byte, burnValues=1, xRes=100, yRes=100) ds =