[gdal-dev] How to set GEO-tags ProjectedCSTypeGeoKey and ProjectionGeoKey?

Pavel Rudchenko tigerpvr at gmail.com
Tue Jun 19 01:43:25 PDT 2012


Hello!
How may I set GEO-tags non-user defined?

Now it is:
ProjectedCSTypeGeoKey (Short,1): User-Defined
ProjectionGeoKey (Short,1): User-Defined

But shall be like this:
ProjectedCSTypeGeoKey (Short,1): PCS_WGS84_UTM_zone_30N
ProjectionGeoKey (Short,1): Proj_UTM_zone_30N

My GDAL-wrapper code is:
using (SpatialReference oSrs = new SpatialReference(null))
{
  oSrs.SetProjCS("WGS_1984 / UTM zone 36N");
  oSrs.SetWellKnownGeogCS("WGS84");
  oSrs.SetUTM(36, 1);
  string wkt;
  oSrs.ExportToWkt(out wkt);
  ds.SetProjection(wkt);      // Dataset
}

Thank you!


More information about the gdal-dev mailing list