Hi Steve,<br><br>thx for reply.<br><br>If I comment the connectiontype it work. Great. :)<br><br>I tried using "local" instead of "ogr" but it gave a parser-error.<br><br>I don'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"><<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>></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'm try-ing to set a mapserver as a wms server.<br>
But I'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 'idprovince2'.<br>
<br>
msOGRFileOpen(): OGR error. Error parsing OGR connection information in layer `idprovince2'<br>
<br>
<br>
My settings for layer is this:<br>
<br>
LAYER<br>
NAME "idprovince2"<br>
STATUS ON<br>
TYPE POLYGON<br>
CONNECTIONTYPE OGR<br>
DATA "/home/..../shapefile_polygon"<br>
PROJECTION<br>
"init=epsg:3003"<br>
END<br>
METADATA<br>
'wms_title' 'Confini Provinciali2'<br>
END<br>
CLASS<br>
NAME 'am_prov_region_am_prov'<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>