Re: [gdal-dev] GDAL GeoTiff tegs problem

2012-06-15 Thread Etienne Tourigny
To make sure it's recognized as WGS84 datum/spheroid you should use SetWellKnownGeogCS("WGS84") instead of SetGeogCS(...), and no need for convertToRadians Also, the arguments to SetGeogCS() are probably optional in your case This might solve this problem and the other one you sent in another em

[gdal-dev] GDAL GeoTiff tegs problem: how to set GeogPrimeMeridianGeoKey?

2012-06-15 Thread Pavel Rudchenko
Hello, I have second question. How to set geo-tag GeogPrimeMeridianGeoKey? Now it isn't created. My GDAL code is: SpatialReference oSrs = new SpatialReference(null); oSrs.SetUTM(30, 1); Double convertToRadians = Double.Parse(Osr.SRS_UA_DEGREE_CONV, CultureInfo.InvariantCulture.NumberFormat); oSr

[gdal-dev] GDAL GeoTiff tegs problem

2012-06-15 Thread Pavel Rudchenko
Hello! I create GeoTiff files with GDAL library (.net wrapper). All right, but some geo-tags not setted. For example, GeogCitationGeoKey (Ascii,1): "" But shall be: GeogCitationGeoKey (Ascii,6): "WGS84" My vode to set geo-data is: SpatialReference oSrs = new SpatialReference(null); oSrs.SetUTM(30