Is there a Mapscript and PROJ example?

Stephen Lime steve.lime at dnr.state.mn.us
Tue Jun 27 08:13:18 PDT 2000


MapScript doesn't not have any projection routines exposed. The conditional
compilation was too hairy using SWIG. So, instead I created a small Proj.4 perl
module that's a standalone piece. I've attached. It's nothing fancy, but it works.
The compilation assumes that Proj.4 is installed in /usr/local/lib and /usr/local/include.
You may need to change Makefile.PL if it's somewhere else. Then a normal:

perl Makefile.PL
make
make install

will get you going. A super simple test script is included to show the syntax. This
module was built with SWIG so Python, Tk/Tcl users etc. can also use it, but they'll
need to process the interface file for their language.

MapScript can process data that needs projection as normal (i.e. when drawing/querying), 
there are just no methods for routine projection of individual points. Both modules can
be used together.

This was never intendend for public release. Please let me know if it's useful.

Steve 

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> <Tim.Mackey at agso.gov.au> 06/27/00 12:56AM >>>
Hi,

I am writing a perl script (using mapscript) and cannot figure out the
syntax to project a pair of coordinates from longitude/latitude to something
else.

Does anyone know of a perl script that uses the PROJ functions that I could
get a look at?

thanks,


Tim Mackey
Web Applications Developer
Australian Geological Survey Organisation
email: tim.mackey at agso.gov.au 
phone: (02) 6249 9813
fax: (02) 6249 9984
http://www.agso.gov.au/ 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: proj.pm.tar.gz
Type: application/octet-stream
Size: 7352 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20000627/2b9a63d4/attachment.obj>


More information about the MapServer-users mailing list