[gdal-dev] GDAL GeoTiff tegs problem

Pavel Rudchenko tigerpvr at gmail.com
Fri Jun 15 00:26:06 PDT 2012


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, 1);
Double convertToRadians = Double.Parse(Osr.SRS_UA_DEGREE_CONV,
 CultureInfo.InvariantCulture.NumberFormat);
oSrs.SetGeogCS(string.Empty, //"UTM 30 (WGS84) in northern hemisphere.",
 Osr.SRS_DN_WGS84, Osr.SRS_DN_WGS84,
 Osr.SRS_WGS84_SEMIMAJOR, Osr.SRS_WGS84_INVFLATTENING,
 "Greenwich", 0.0, "degree", convertToRadians);
string wkt;
oSrs.ExportToWkt(out wkt);
ds.SetProjection(wkt);

Please, tell me, what I do not right?


More information about the gdal-dev mailing list