Re: [gdal-dev] c# bindings - osr SpatialReference constructor

2020-06-16 Thread Paul Harwood
Cool, thanks! On Tue, 16 Jun 2020, 19:12 Tamas Szekeres, wrote: > You should use null in the constructor if you don't want to specity a wkt > during the initialization, something like: > > > *SpatialReference srs = new > SpatialReference(null);srs.ImportFromEPSG(2927);* > > Best regards, > > Tam

Re: [gdal-dev] c# bindings - osr SpatialReference constructor

2020-06-16 Thread Tamas Szekeres
You should use null in the constructor if you don't want to specity a wkt during the initialization, something like: *SpatialReference srs = new SpatialReference(null);srs.ImportFromEPSG(2927);* Best regards, Tamas Paul Harwood ezt írta (időpont: 2020. jún. 16., K, 19:01): > A common patte

[gdal-dev] c# bindings - osr SpatialReference constructor

2020-06-16 Thread Paul Harwood
A common pattern for creating a SpatialReference is this : from osgeo import osr spatialRef = osr.SpatialReference() spatialRef.ImportFromEPSG(2927) # from EPSG ( this example is from the Python Cookbook and is just used to illustrate the pattern) But - when I try to do the equivalent in