[gdal-dev] GDAL spatial reference issue

Frank Warmerdam warmerdam at pobox.com
Wed Jun 13 14:39:10 PDT 2012


On Wed, Jun 13, 2012 at 2:19 PM, Murali Krishna
<muralikrishna50 at gmail.com> wrote:
> I'm facing an issue in creating ESRI shape files using GDAL library.
>
> I want to create a layer with SpatialReference information set on it and
> until now i'm creating SpatialReference by importing WellKnownText (wkt)
> representation.
>
> Is there any way we can create the same SpatialReference from ESRI's
> WellKnownId (wkid) using gdal ogr java bindings?

Murali,

If you are importing ESRI Projection Engine strings (ESRI WKT) then
after ingesting the WKT into an OGRSpatialReference object call
the morphFromESRI() method to transform into "OGR standard"
form.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Software Developer


More information about the gdal-dev mailing list