[gdal-dev] OSR: EPSG code and WKT definition (ESRI vs OGC)

Daniele Romagnoli daniele.romagnoli at geo-solutions.it
Thu Dec 17 06:56:31 EST 2009


Hi again list,
I'm building a shapefile and, when setting the CRS, I use this code:
.....
t_srs = osr.SpatialReference()
t_srs.SetFromUserInput("EPSG:32632")
....
Looking at the generated PRJ, I see it uses the ESRI WKT definition [1].
Is there a way to get the OGC definition [2] instead? (This one is
preserving the EPSG authority code inside)

Any help would be greatly appreciated.
Best Regards,
Daniele

[1]: http://www.spatialreference.org/ref/epsg/32632/esriwkt/
[2]: http://www.spatialreference.org/ref/epsg/32632/ogcwkt/
-- 
-------------------------------------------------------
Eng. Daniele Romagnoli
Software Engineer

GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax:     +39 0584983027
mob:   +39 328 0559267


http://www.geo-solutions.it

-------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20091217/44f191db/attachment.html


More information about the gdal-dev mailing list