Re: [gdal-dev] How to use wrapper_GDALRasterizeDestName with C# bindings

2017-03-14 Thread Even Rouault
On mardi 14 mars 2017 15:57:31 CET Paul Meems wrote: > Thanks Even, > > I now have > using (var ds = Gdal.OpenEx(input, 1, null, null, null)) > I couldn't find GDAL_OF_VECTOR in the C# bindings. Constants are defined in swig/include/gdalconst.i as: // Open flags %constant OF_ALL = GDAL_OF_A

Re: [gdal-dev] How to use wrapper_GDALRasterizeDestName with C# bindings

2017-03-14 Thread Paul Meems
Thanks Even, I now have using (var ds = Gdal.OpenEx(input, 1, null, null, null)) I couldn't find GDAL_OF_VECTOR in the C# bindings. I'm assuming it must be 1 since GDAL_OF_RASTER is 0. It is now working. Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWind

Re: [gdal-dev] How to use wrapper_GDALRasterizeDestName with C# bindings

2017-03-14 Thread Even Rouault
On mardi 14 mars 2017 15:12:20 CET Paul Meems wrote: > I'm trying to use this gdal_rasterize command in my C# application: > gdal_rasterize -a DN -a_srs "EPSG:28992" -tr 5 5 -a_nodata 0 -l test > test.shp test.shp > > My goal is to convert a shapefile to a tiff-file. The above command does > what

[gdal-dev] How to use wrapper_GDALRasterizeDestName with C# bindings

2017-03-14 Thread Paul Meems
I'm trying to use this gdal_rasterize command in my C# application: gdal_rasterize -a DN -a_srs "EPSG:28992" -tr 5 5 -a_nodata 0 -l test test.shp test.shp My goal is to convert a shapefile to a tiff-file. The above command does what I want. I need to call it from within my C# application. I'm alre