<html><div style='background-color:'><DIV class=RTE>
<P>hi, </P>
<P>using the ogr worked out for&nbsp;a POLYGON layer that&nbsp;did not have a tiledindex. The following worked perfect:</P>
<P>LAYER<BR>&nbsp;NAME "name"<BR>&nbsp;TYPE POLYGON</P>
<P>&nbsp;CONNECTIONTYPE OGR <BR>&nbsp;CONNECTION "C:\shapefile.shp" <BR>...</P>
<P>END</P>
<P>However, this will not work for tiledindex. On the doc page for OGR it says the following should work but it does not. </P>
<P>LAYER<BR>&nbsp;NAME "nam"<BR>&nbsp;TYPE POLYGON<BR>&nbsp;CONNECTIONTYPE OGR<BR>&nbsp;TILEINDEX "C:\tiledindex.shp"<BR>...</P>
<P>END</P>
<P>The first entry in the tiled index is for c:\shapefile.shp but it returns the following error:</P>
<P><SPAN class=tx><STRONG>msDrawMap(): Image handling error. Failed to draw layer named 'nam'. msOGRFileOpen(): OGR error. Open failed for OGR connection `c:\shapefile'. File not found or unsupported format.</STRONG></SPAN></P>
<P>Any ideas why the tiledindex wouldn't work? I have used tiledindexes for points and lines and it works fine.</P>
<P>Thanks again!</P>
<P>Gerard B.<BR></P></DIV>
<DIV></DIV>&gt;From: Bart van den Eijnden &lt;bartvde@XS4ALL.NL&gt;
<DIV></DIV>&gt;Reply-To: Bart van den Eijnden &lt;bartvde@XS4ALL.NL&gt;
<DIV></DIV>&gt;To: MAPSERVER-USERS@LISTS.UMN.EDU
<DIV></DIV>&gt;Subject: Re: [UMN_MAPSERVER-USERS] shapefile polygon opens in arcgis but not mapserver
<DIV></DIV>&gt;Date: Wed, 13 Apr 2005 21:18:12 +0200
<DIV></DIV>&gt;
<DIV></DIV>&gt;Hi,
<DIV></DIV>&gt;
<DIV></DIV>&gt;It should work if you are using Mapserver 4.4 or later.
<DIV></DIV>&gt;
<DIV></DIV>&gt;Otherwise try showing it through OGR.
<DIV></DIV>&gt;
<DIV></DIV>&gt;CONNECTIONTYPE OGR
<DIV></DIV>&gt;CONNECTION "path/my.shp"
<DIV></DIV>&gt;
<DIV></DIV>&gt;Best regards,
<DIV></DIV>&gt;Bart
<DIV></DIV>&gt;
<DIV></DIV>&gt;On Wed, 13 Apr 2005 16:45:50 -0230, gerard barrington
<DIV></DIV>&gt;&lt;gerard_b_18@HOTMAIL.COM&gt; wrote:
<DIV></DIV>&gt;
<DIV></DIV>&gt;&gt;I checked with ogrinfo and the shapefile is a &lt;3D POLYGON&gt;. Other
<DIV></DIV>&gt;&gt;shape
<DIV></DIV>&gt;&gt;files I have show up simply as &lt;POLYGON&gt; when checked with ogrinfo.
<DIV></DIV>&gt;&gt;Is
<DIV></DIV>&gt;&gt;there anything i can do to show this polygon in mapserver?
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;From: Bart van den Eijnden &lt;bartvde@XS4ALL.NL&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;Reply-To: Bart van den Eijnden &lt;bartvde@XS4ALL.NL&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;To: MAPSERVER-USERS@LISTS.UMN.EDU
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;Subject: Re: [UMN_MAPSERVER-USERS] shapefile polygon opens in
<DIV></DIV>&gt;&gt;&gt;arcgis
<DIV></DIV>&gt;&gt;&gt;but not
<DIV></DIV>&gt;&gt;mapserver
<DIV></DIV>&gt;&gt;&gt;Date: Wed, 13 Apr 2005 20:32:42 +0200
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;Hi,
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;are you sure it is not a polyline shape? Did you try TYPE LINE?
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;Otherwise open it up with ogrinfo and see what it says
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;(http://fwtools.maptools.org).
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;Best regards,
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;Bart
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;On Wed, 13 Apr 2005 16:04:39 -0230, gerard barrington
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&lt;gerard_b_18@HOTMAIL.COM&gt; wrote:
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;Hi list, I have a polygon shapefile which I can open and view in
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;ArcExplorer and everything looks perfect. However, when I try to
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;use the
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;same shapefile as data for a LAYER of TYPE POLYGON, I get the
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;following
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;exception: msDrawMap(): Image handling error. Failed to draw
<DIV></DIV>&gt;&gt;&gt;&gt;layer
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;named
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;'aal135'. msDrawShape(): General error message. Only polygon
<DIV></DIV>&gt;&gt;&gt;&gt;shapes
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;can
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;be drawn using a POLYGON layer definition. So I tried switching
<DIV></DIV>&gt;&gt;&gt;&gt;the
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;TYPE
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;in my layer to POINT and a couple of points along the border of
<DIV></DIV>&gt;&gt;&gt;&gt;the
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;polygon showed up. I know the shapefile is a polygon though
<DIV></DIV>&gt;&gt;&gt;&gt;because
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;it
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;displays as the correct shape in arcExplorer. Can someone tell me
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;why
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;the polygon will show up in ArcExplorer but not in mapserver? Is
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;there
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;anything I can do to fix this problem?? I am at real loss here
<DIV></DIV>&gt;&gt;&gt;&gt;for
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;why
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;this happens and would really appreciate any help.... Thanks
<DIV></DIV>&gt;&gt;&gt;&gt;Gerard
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;&gt;B
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;--
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;&gt;Using Opera's revolutionary e-mail client:
<DIV></DIV>&gt;&gt;&gt;http://www.opera.com/m2/
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;
<DIV></DIV>&gt;
<DIV></DIV>&gt;
<DIV></DIV>&gt;--
<DIV></DIV>&gt;Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
<DIV></DIV></div></html>