[mapserver-users] Shapefiles not rendered

Fawcett, David (MPCA) David.Fawcett at state.mn.us
Fri Jan 13 06:56:12 PST 2012


Juan,

The projection block at the map level specifies 4326 as the spatial reference system, but the units of your extent look like they are in meters, not decimal degrees.  This may be involved in the issue, or maybe not, but it would screw up a regular MapServer CGI request if you don't specify a bbox.

The use of a '.' Character in a layer name may be valid in MapServer and the OGC WMS spec, but it looks funky to me.  Again, probably not the problem.

I would simplify your map file by commenting out the MINSCALE, MAXSCALE, and TRANSPARENCY lines.  I am guessing that one of these is causing your problem.

David.

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Juan Jesús Cremades Monserrat
Sent: Friday, January 13, 2012 5:50 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Shapefiles not rendered

Hi,

I want execute the getMap method with an URL like this:

http://localhost:9000/cgi-bin/mapserv.exe?LAYERS=COMACOM.SHP&FORMAT=image/png&TRANSPARENT=true&MAP=/ms4w/apps/demo-cv/demoCV.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=551&HEIGHT=356

But the result is always a white page. Where the error may be? My MapServer is the MS4W. Thanks

My MapFile is this:

MAP
   NAME map_generated_by_gvsig
   EXTENT 626679.4375 4191039.75 797868.9375 4519396.0
   SYMBOLSET "demoCV.sym"
   FONTSET "fonts.txt"
   LEGEND
      IMAGECOLOR -1 -1 -1
      LABEL
         FONT "vera"
         ANGLE FOLLOW
         COLOR 0 0 0
         ENCODING "UTF-8"
         TYPE truetype
         SIZE 8
      END
      STATUS ON
      TRANSPARENT ON
   END

   SIZE 800 800
      OUTPUTFORMAT
        NAME PNG24
        DRIVER AGG/PNG
        IMAGEMODE RGB
   END

   WEB
      METADATA
         "wms_encoding" "UTF-8"
         "wms_title" "Mapserver WMS"
         "wms_abstract" ""
         "wms_srs" " EPSG:4326"
         "wms_onlineresource" "http://localhost:9000/cgi-bin/mapserv.exe?map=E%3A%5Cms4w%5Capps%5Cdemo-cv%5CdemoCV.map"
         "ows_enable_request" "*"
         "wms_feature_info_mime_type" "text/html"
      END
   END
   PROJECTION
      "init=epsg:4326"
   END
   LAYER
      NAME "COMACOM.SHP"
      STATUS ON
      DUMP true
      TEMPLATE "templates/provincias.html"
      TYPE POLYGON
      DATA "E:\COMACOM.SHP"
      MAXSCALE -1.0
      MINSCALE -1.0
      TRANSPARENCY 100
      SIZEUNITS pixels
      PROJECTION
         "init=epsg:4326"
      END
      CLASS
         STYLE
            COLOR 104 108 2
            OUTLINECOLOR 72 75 1
            WIDTH 1
         END
         NAME "default"
      END
      METADATA
         "wms_title" "COMACOM.SHP"
         "wms_abstract" "generated by gvSIG"
         "wms_extent" "626679.4375 4191039.75 797868.9375 4519379.0"
         "gml_include_items" "all"
         "ows_enable_request" "*"
      END
   END # Layer
END # Map File

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120113/9974b782/attachment.htm>


More information about the MapServer-users mailing list