[OSRS-PROJ] OGC WKT

Frank Warmerdam warmerdam at pobox.com
Thu Oct 4 12:58:50 PDT 2001


Paul Ramsey wrote:
> 
> Frank Warmerdam wrote:
> 
> > PROJ.4 doesn't have these services, but they are available as services on
> > the OGRSpatialReference object.  It can read/write WKT and also transform to
> > PROJ.4.
> > Let me know if you need details.
> 
> I am afraid I am not a C, or C++ guru like you and Dave. The project I
> am doing right now is perl-on-mapscript, and the requirement is to
> direct mapserver to do projections using WKT. Since mapserver only does
> proj4 ... I am sort of at a loss. I have started writing a perl parser,
> but am sure there are more details in the conversion than namespace
> changes.
> 
> In the long run, having proj4 do WKT directly seems like a nice goal.
> That way things like mapserver which use proj4 directly could use WKT
> for configuration.

Paul, 

OGRSpatialReference is linked into MapServer and used when the OGR link
is there.  We could look at some mechanism for exposing some of the
OGRSpatialReference capabilities to perl - they are already accessable
to
Python. 

We could make cases for it belonging in PROJ or not, but for the time
being
I don't expect it to happen. 

For your specific needs would it be adequate to have an external
executable
you could run to translate WKT into PROJ.4?  I could make you up such a
thing
pretty quickly.

Later,

-- 
---------------------------------------+--------------------------------------
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.4 Discussion List
See http://www.remotesensing.org/proj for subscription, unsubscription
and other information.



More information about the Proj mailing list