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
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
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
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