0

I have a problem with a MapServer configuration: test.map // It's installed under: C:\MS4W\ms4w\apps\mapserver_wms. The content of the test.map is follwing:

Map
  NAME "MAPSERVER_QUICKSTART"
  STATUS ON
  EXTENT -137 29 -53 88
  UNITS DD
  SHAPEPATH "data"
  #SIZE 800 600

  IMAGETYPE PNG24

  PROJECTION
    "init=epsg:4326"
  END

  WEB
    METADATA
      ows_title "MapServer Quickstart"
      ows_enable_request "*"
      ows_srs "EPSG:4326 EPSG:25832 EPSG:25833"
    END
  END

  LAYER
    NAME "Countries"
    STATUS ON
    TYPE POLYGON
    DATA "ne_10m_admin_0_countries"
    CLASS
      STYLE
        COLOR 246 241 223
        OUTLINECOLOR 0 0 0
      END
    END
  END

END

Now I would like to use this whole world map as a WMS Serice with the URL:

http://localhost:81/cgi-bin/mapserv.exe?map=C:/MS4W/ms4w/apps/mapserver_wms/test.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0

I put this WMS URL into QGIS and connect: This is working, but it show ONLY a small part of the whole area (world)! See the diffrence between blue and yellow (blue = imported the shape directly to QGIS // yellow = same shapes as WMS but only a part of the whole). How can I give out the whole world map in the WMS?

enter image description here

0

1 Answer 1

2

You have specified a small extent

EXTENT -137 29 -53 88

which limits your map, if you would like the whole world (in EGPS:4326) you want

EXTENT -180 -90 180 90

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.