calculating coordinates by projecting a point
Dennis Christopher
Dennis.Christopher at DPRA.COM
Fri Mar 17 10:43:05 PST 2006
All,
We have a routine that creates a new layer
For purposes to placing a single point object
On the map. The user enters the coordinates
Of the point they want to see placed.
I am trying to extend this now by allowing the
User to enter points in other projections than
The current, e.g. in latlong when the map is
Projected in utm.
I create a point object on the layer On the dynamic layer
and set Its coordinates to the user entered values, then project
The point to get the values in the current projection.
The issue is that the point is not drawn. Echoing
The map extents after the point is created shows that they
Have changed to something unexpected. Why
Would this be?
Note. I'm not sure if the layer is created with the map's projection
By default, but I have tried calling layer->setProjection() as well
With the same result.
Dennis Christopher
DPRA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060317/e75b9b9d/attachment.htm>
More information about the MapServer-users
mailing list