[Proj] pj_init - C programming question

Chapman, Martin MChapman at sanz.com
Thu May 19 11:24:07 EDT 2005


Kevin,

Take Frank's advice if possible.  The OGRSpatialReference class is
robust.

Martin

-----Original Message-----
From: proj-bounces at xserve.flids.com
[mailto:proj-bounces at xserve.flids.com] On Behalf Of Frank Warmerdam
Sent: Thursday, May 19, 2005 8:04 AM
To: PROJ.4 and general Projections Discussions
Subject: Re: [Proj] pj_init - C programming question


On 5/19/05, Kevin S Lim <KSLim at atlantictech.com> wrote:
> I'm not sure if I understand you, but this should work. If you make a 
> constant array like shown in your code then what you get _is_ an array

> of char*. Maybe
> there's another reason why the initialization fails ? 

Kevin,

The OGRSpatialReference class in the GDAL/OGR library includes support
for ingesting ESRI .prj files, and converting them to PROJ.4 strings,
along with a variety of other transformations. 

This is a fairly hairy process, so if you wish to do it with reasonable
generality you are likely best off using the OGRSpatialReference to
accomplish it. 

  http://www.gdal.org/

or more specifically: 

  http://www.gdal.org/ogr/osr_tutorial.html

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 Programmer for Rent
_______________________________________________
Proj mailing list
Proj at xserve.flids.com http://xserve.flids.com/mailman/listinfo/proj



More information about the Proj mailing list