Hi Steve,<br><br>thx for reply.<br><br>If I comment the connectiontype it work. Great. :)<br><br>I tried using &quot;local&quot; instead of &quot;ogr&quot; but it gave a parser-error.<br><br>I don&#39;t tried before removing the connectiontype.<br>
<br>thanks, <br><br>Andrea.<br><br><br><div class="gmail_quote">2012/3/5 Lime, Steve D (DNR) <span dir="ltr">&lt;<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Why use OGR and not the native shape file driver in MapSever? What happens if you comment out the connection type?<br>
<br>
Steve<br>
<br>
________________________________________<br>
From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] on behalf of Andrea Peri [<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>]<br>

Sent: Sunday, March 04, 2012 4:42 PM<br>
To: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
Subject: [mapserver-users] Error: Failed to draw layer<br>
<div class="HOEnZb"><div class="h5"><br>
Hi,<br>
<br>
I&#39;m try-ing to set a mapserver as a wms server.<br>
But I&#39;m having this error:<br>
<br>
On the getMap request I have this error:<br>
<br>
(No error code was reported)<br>
<br>
The WMS vendor also reported:<br>
<br>
msDrawMap(): Image handling error. Failed to draw layer named &#39;idprovince2&#39;.<br>
<br>
msOGRFileOpen(): OGR error. Error parsing OGR connection information in layer `idprovince2&#39;<br>
<br>
<br>
My settings for layer is this:<br>
<br>
  LAYER<br>
    NAME &quot;idprovince2&quot;<br>
    STATUS ON<br>
    TYPE POLYGON<br>
    CONNECTIONTYPE OGR<br>
    DATA &quot;/home/..../shapefile_polygon&quot;<br>
    PROJECTION<br>
      &quot;init=epsg:3003&quot;<br>
    END<br>
    METADATA<br>
      &#39;wms_title&#39; &#39;Confini Provinciali2&#39;<br>
    END<br>
    CLASS<br>
      NAME &#39;am_prov_region_am_prov&#39;<br>
      STYLE<br>
         WIDTH 0.91<br>
         OUTLINECOLOR 0 0 0<br>
         COLOR 103 132 169<br>
         ANTIALIAS true<br>
      END<br>
      LABEL<br>
        POSITION auto<br>
        SIZE 8<br>
        COLOR 0 0 0<br>
        TYPE truetype<br>
        FONT arial<br>
      END<br>
    END<br>
  END<br>
<br>
I try many settings, but nothing change :(<br>
<br>
Any hints is welcome,<br>
<br>
thx<br>
<br>
--<br>
-----------------<br>
Andrea Peri<br>
. . . . . . . . .<br>
qwerty àèìòù<br>
-----------------<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br><br>