[mapserver-users] How to display coordinates in lat/long format on a map with UNITS=Meters?

Jan Mantkowski jan.mantkowski at gmx.de
Tue Mar 26 03:50:58 EST 2002


Hi list,

i got stuck again.
It´s still the europa example.

What i do right now is to make shapefiles from "artificial" coordinates.
(Choosen to fit the EXTENT)
It works.

But, when i have coordinats in latitude and longitude, how to display the
resulting layer correct on the map that is in Meters?

I did a shpdump and got this:

Shapefile Type: Polygon   # of Shapes: 54
File Bounds: (-4362443.744, 3864199.098,4.16405e+202,0)
         to  ( 2916998.546, 9336805.431,0,0)
Shape:0 (Polygon)  nVertices=1258, nParts=4
Bounds:(   31629.715, 4389343.606, 0, 0)
    to (  183200.478, 4723802.771, 0, 0)


The europa.map looks like this:
NAME FIRSTMAP
SIZE 400 400
STATUS ON
EXTENT -5696501 1923039 5696501 11022882
UNITS Meters
...

The layer to display the data in meter format looks like this:

LAYER
    NAME "X"
    DATA users
    STATUS ON
    TYPE POINT
	CLASS
		COLOR 255 0 0
		SYMBOL 'circle'
		SIZE 10
	END
END

What do i need to change to make it to display data in latitude longitude
format?

Thanks,

Jan




More information about the mapserver-users mailing list