[mapserver-users] Error: Failed to draw layer

Andrea Peri aperi2007 at gmail.com
Mon Mar 5 05:30:40 EST 2012


Hi Steve,

thx for reply.

If I comment the connectiontype it work. Great. :)

I tried using "local" instead of "ogr" but it gave a parser-error.

I don't tried before removing the connectiontype.

thanks,

Andrea.


2012/3/5 Lime, Steve D (DNR) <Steve.Lime at state.mn.us>

> 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 àèìòù
> -----------------
>
>
>


-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120305/4b5e1b62/attachment.html


More information about the mapserver-users mailing list