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