[mapserver-users] Getting a WMS service up and running from shape data

Hulbert, Brian brian.hulbert at linquest.com
Wed Apr 9 05:15:17 PDT 2008


I think you need to set the status of your hvalross layer to ON

 

        LAYER

               NAME           hvalross

               TYPE           POLYGON

               DATA           hvalross/hvalross_utbredelse

               STATUS         ON

 

 

From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lid Sjur
Ringheim
Sent: Wednesday, April 09, 2008 6:57 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Getting a WMS service up and running from shape
data

 

Hi, 

 

I have currently compiled and installed Mapserver 5.0.2 and are trying to
set up a WMS service on it. I got the demo working but are now having
problems getting my own shape files rendrered, the only output I get is a
white picture.

 

You can get the capabilities file here
http://talos.nodc.no/cgi-bin/mapserv?map=wms/sonate.map
<http://talos.nodc.no/cgi-bin/mapserv?map=wms/sonate.map&SERVICE=WMS&VERSION
=1.1.1&REQUEST=GetCapabilities>
&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities 

 

The Map file im using looks like this:

 

MAP

        NAME SONATE

        STATUS ON

        SIZE 600 600

        EXTENT 388107.6334400378 5203120.88405952 500896.339019834
5310243.30613897

        UNITS METERS

        SHAPEPATH "/var/www/wmsdata/sonate"

        IMAGECOLOR 255 255 255

 

        PROJECTION

               "proj=latlong"

               "ellps=WGS84"

               "datum=WGS84"

        END

 

        WEB

               METADATA

                       WMS_TITLE              "sonate"

                       WMS_ONLINERESOURCE
"http://talos.nodc.no/cgi-bin/mapserv?map=wms/sonate.map"

                       WMS_SRS                "epsg:4326 epsg:42304" #north
pole stereographic

               END

               LOG     "/var/www/cgi-bin/test.log"

        END

 

        LAYER

               NAME           hvalross

               TYPE           POLYGON

               DATA           hvalross/hvalross_utbredelse

               STATUS         OFF

               PROJECTION

                       "proj=latlong"

                       "ellps=WGS84"  

               END

               METADATA

                       WMS_TITLE      "Hvalross"

                       WMS_SRS        "epsg:4326"

               END

               CLASS

                       NAME    DYREGRUPPE

                       DEBUG   ON

                       STYLE

                               COLOR 255 0 255

                               OUTLINECOLOR 255 0 0

                       END

               END

               #DUMP TRUE

        END

END

 

But when I try to render the map all I get is a white picture. The shape
file im trying to render contains polygons with a WGS84 (North Pole
Stereographic) projection.

 

Do anyone have a tip as to where I should be looking to get more information
about this problem/know what might be wrong?

 

Best Regards

Sjur

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080409/1d6ecc4a/attachment.htm>


More information about the MapServer-users mailing list