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 email.
Etienne
On Fri, Jun 15, 2012 at 4:26 AM, Pavel Rudchenko <[email protected]> wrote:
> 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?
> _______________________________________________
> gdal-dev mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev