[mapserver-users] Projection help

Ian Walberg ian.walberg at airborne.aero
Wed Jul 31 15:34:05 PDT 2019


Steve,

The map file below draws a non Mercator projection and if the epsg:4326 line is uncommented then the map is blank.

This is on a windows machine using Mapserver 7.0.7 from MS4W 3.2.6.

Any ideas?

Thanks

Ian


MAP
NAME global_map
STATUS ON
SIZE 1024 600
EXTENT -180 -90 180 90
 LAYER
   NAME "Earth_Vector"
   STATUS DEFAULT
   TYPE LINE
   DEBUG 3

   PROJECTION
#    "init=epsg:4326"
   END

   DATA "../shp/land/ne_110m_land.shp"

   CLASS
     STYLE
       ANTIALIAS TRUE
       COLOR 0 255 0
       WIDTH 1
     END
   END

END

  PROJECTION
    "init=epsg:3857"
  END

END #MAP END

From: Lime, Steve D (MNIT) <steve.lime at state.mn.us>
Sent: Wednesday, July 31, 2019 3:22 PM
To: Ian Walberg <ian.walberg at airborne.aero>; mapserver-users at lists.osgeo.org
Subject: RE: Projection help

Should be straight forward. In the natural earth layers you'd have:

PROJECTION
    "init=epsg:4326" # geographic
END

and at the MAP level you'd have:

  PROJECTION
    "init=epsg:3857" # web mercator
  END

--Steve

From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg
Sent: Wednesday, July 31, 2019 4:56 PM
To: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Subject: [mapserver-users] Projection help


Hello,

We have used different projections previously but cannot get them to work at the moment.

All the examples we can find online look ok but do not make any difference to the generated map.

A way of projecting the Natural Earth vector country outlines as Mercator would be a perfect example.

Adding  CONFIG "PROJ_DEBUG" "ON" does not appear to generate any output.

Thanks

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20190731/c3be57d7/attachment-0001.html>


More information about the mapserver-users mailing list