[mapserver-users] Projection of objects in mapscript

Thorsten Fischer thfischer at mapmedia.de
Thu May 17 04:10:21 PDT 2001


Dear list,

browsing through mapscript.i after updating it from CVS let me come across a
new method in several objects, including for example pointObj. The method is
called 'project', which appears to be a gift from heaven for me at the moment.


But I can't figure out how to use it. It says, in the pointObj for example:

int project (projectionObj *in, projectionObj *out)


My questions are Java related:

1. How do I create a projectionObj?

2. How do I use this method, and what does it return, e.g. I want to project a
single geographic coordinate to UTM/zone 32?


I expected something like this pseudo-code:

myPoint.project (<old projection def>, <UTM zone 32 definition goes here>);

and the new coordinates being saved in myPoint, though it would be nice if it
would return a new object without touching the original one. So how do I create
a projectionObj to use all of this?


Thanks in advance,


Thorsten

-- 

Thorsten Fischer          thfischer at mapmedia.de

---------------------------------------------------------
MapMedia - Kartographie und raumbezogene Informationssysteme
Am Borsigturm 42
13507 Berlin
Deutschland
http://www.mapmedia.de tel: +49 (0)30 43032102
---------------------------------------------------------





More information about the MapServer-users mailing list