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

Tyler Mitchell TMitchell at lignum.com
Tue Mar 26 10:52:05 EST 2002


Have you looked into the PROJECTION parameters for your map file at all?
It sounds like you will want to set the PROJECTION for the whole map to
Decimal Degrees, then within each LAYER section define what the input
PROJECTION is.  If this sounds like what you are trying to do - then you
will need to get PROJECTION settings under your belt.  I think you will be
changing your UNITS parameter to something like DD for decimal degrees. I
haven't done it before though.  Someone else can probably comment with some
more intelligence.


                                                                                                                                   
                    "Jan Mantkowski"                                                                                               
                    <jan.mantkowski at gmx.de>             To:     "Mapserver-Users" <mapserver-users at lists.gis.umn.edu>              
                    Sent by:                            cc:                                                                        
                    owner-mapserver-users at lists.g       Fax to:                                                                    
                    is.umn.edu                          Subject:     [mapserver-users] How to display coordinates in lat/long      
                                                         format on a map with UNITS=Meters?                                        
                                                                                                                                   
                    03/26/2002 12:50 AM                                                                                            
                                                                                                                                   
                                                                                                                                   




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