[mapserver-users] Error: Failed to draw layer

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Sun Mar 4 18:54:07 EST 2012


Why use OGR and not the native shape file driver in MapSever? What happens if you comment out the connection type?

Steve

________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Andrea Peri [aperi2007 at gmail.com]
Sent: Sunday, March 04, 2012 4:42 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Error: Failed to draw layer

Hi,

I'm try-ing to set a mapserver as a wms server.
But I'm having this error:

On the getMap request I have this error:

(No error code was reported)

The WMS vendor also reported:

msDrawMap(): Image handling error. Failed to draw layer named 'idprovince2'.

msOGRFileOpen(): OGR error. Error parsing OGR connection information in layer `idprovince2'


My settings for layer is this:

  LAYER
    NAME "idprovince2"
    STATUS ON
    TYPE POLYGON
    CONNECTIONTYPE OGR
    DATA "/home/..../shapefile_polygon"
    PROJECTION
      "init=epsg:3003"
    END
    METADATA
      'wms_title' 'Confini Provinciali2'
    END
    CLASS
      NAME 'am_prov_region_am_prov'
      STYLE
         WIDTH 0.91
         OUTLINECOLOR 0 0 0
         COLOR 103 132 169
         ANTIALIAS true
      END
      LABEL
        POSITION auto
        SIZE 8
        COLOR 0 0 0
        TYPE truetype
        FONT arial
      END
    END
  END

I try many settings, but nothing change :(

Any hints is welcome,

thx

--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------




More information about the mapserver-users mailing list