<html><div style='background-color:'><DIV class=RTE>
<P>Bart, </P>
<P>Thanks....your solution worked. None of the entries in the LOCATION field of my dbf file had the '.shp'. So I added it to the entries and the tiledindex displays correctly. (I didn't need to use the 0, it works without it.)</P>
<P>As a side note, do you know how I could go about editing all my dbf files without having to go into them maunally and add the ending to every entry. I used the tile4ms command to create the tiledindex.</P>
<P>Also, the speed of mapserver seems to go down drastically when you add more layers to the map file. My map file currently has 46 layers in it,all of which have a tiledindex as its datasource. What can I do to help speed up the mapserver.</P>
<P>Thanks again,</P>
<P>Gerard B</P>
<P><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: Thu, 14 Apr 2005 20:20:00 +0200
<DIV></DIV>>
<DIV></DIV>>Gerard,
<DIV></DIV>>
<DIV></DIV>>does your LOCATION item in your tile-index dbf have c:\shapefile or
<DIV></DIV>>c:\shapefile.shp? Looking at your error message it looks like the
<DIV></DIV>>first
<DIV></DIV>>option which is incorrect.
<DIV></DIV>>
<DIV></DIV>>You can also try c:\shapefile.shp,0 in the LOCATION field.
<DIV></DIV>>
<DIV></DIV>>Hope this helps.
<DIV></DIV>>
<DIV></DIV>>Best regards,
<DIV></DIV>>Bart
<DIV></DIV>>
<DIV></DIV>>On Thu, 14 Apr 2005 14:47:48 -0230, gerard barrington
<DIV></DIV>><gerard_b_18@HOTMAIL.COM> wrote:
<DIV></DIV>>
<DIV></DIV>>>hi, using the ogr worked out for a POLYGON layer that did not have
<DIV></DIV>>>a
<DIV></DIV>>>tiledindex. The following worked perfect: LAYER
<DIV></DIV>>>NAME "name"
<DIV></DIV>>>TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "C:\shapefile.shp" ...
<DIV></DIV>>>END
<DIV></DIV>>>However, this will not work for tiledindex. On the doc page for OGR
<DIV></DIV>>>it
<DIV></DIV>>>says the following should work but it does not. LAYER
<DIV></DIV>>>NAME "nam"
<DIV></DIV>>>TYPE POLYGON
<DIV></DIV>>>CONNECTIONTYPE OGR
<DIV></DIV>>>TILEINDEX "C:\tiledindex.shp"
<DIV></DIV>>>... END The first entry in the tiled index is for c:\shapefile.shp
<DIV></DIV>>>but
<DIV></DIV>>>it returns the following error: msDrawMap(): Image handling error.
<DIV></DIV>>>Failed to draw layer named 'nam'. msOGRFileOpen(): OGR error. Open
<DIV></DIV>>>failed for OGR connection `c:\shapefile'. File not found or
<DIV></DIV>>>unsupported
<DIV></DIV>>>format. Any ideas why the tiledindex wouldn't work? I have used
<DIV></DIV>>>tiledindexes for points and lines and it works fine. Thanks again!
<DIV></DIV>>>Gerard B.
<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 21:18:12 +0200
<DIV></DIV>>>
<DIV></DIV>>>>
<DIV></DIV>>>
<DIV></DIV>>>>Hi,
<DIV></DIV>>>
<DIV></DIV>>>>
<DIV></DIV>>>
<DIV></DIV>>>>It should work if you are using Mapserver 4.4 or later.
<DIV></DIV>>>
<DIV></DIV>>>>
<DIV></DIV>>>
<DIV></DIV>>>>Otherwise try showing it through OGR.
<DIV></DIV>>>
<DIV></DIV>>>>
<DIV></DIV>>>
<DIV></DIV>>>>CONNECTIONTYPE OGR
<DIV></DIV>>>
<DIV></DIV>>>>CONNECTION "path/my.shp"
<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:45:50 -0230, gerard barrington
<DIV></DIV>>>
<DIV></DIV>>>><gerard_b_18@HOTMAIL.COM> wrote:
<DIV></DIV>>>
<DIV></DIV>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>I checked with ogrinfo and the shapefile is a <3D POLYGON>. Other
<DIV></DIV>>>
<DIV></DIV>>>>>shape
<DIV></DIV>>>
<DIV></DIV>>>>>files I have show up simply as <POLYGON> when checked with
<DIV></DIV>>>>>ogrinfo.
<DIV></DIV>>>
<DIV></DIV>>>>>Is
<DIV></DIV>>>
<DIV></DIV>>>>>there anything i can do to show this polygon in mapserver?
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>From: Bart van den Eijnden <bartvde@XS4ALL.NL>
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>Reply-To: Bart van den Eijnden <bartvde@XS4ALL.NL>
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>To: MAPSERVER-USERS@LISTS.UMN.EDU
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>Subject: Re: [UMN_MAPSERVER-USERS] shapefile polygon opens in
<DIV></DIV>>>
<DIV></DIV>>>>>>arcgis
<DIV></DIV>>>
<DIV></DIV>>>>>>but not
<DIV></DIV>>>
<DIV></DIV>>>>>mapserver
<DIV></DIV>>>
<DIV></DIV>>>>>>Date: Wed, 13 Apr 2005 20:32:42 +0200
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>Hi,
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>
<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>>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>Otherwise open it up with ogrinfo and see what it says
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>(http://fwtools.maptools.org).
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>Best regards,
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>Bart
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>On Wed, 13 Apr 2005 16:04:39 -0230, gerard barrington
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>><gerard_b_18@HOTMAIL.COM> wrote:
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>Hi list, I have a polygon shapefile which I can open and view
<DIV></DIV>>>>>>>in
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>ArcExplorer and everything looks perfect. However, when I try
<DIV></DIV>>>>>>>to
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>use the
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>same shapefile as data for a LAYER of TYPE POLYGON, I get the
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>following
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>exception: msDrawMap(): Image handling error. Failed to draw
<DIV></DIV>>>
<DIV></DIV>>>>>>>layer
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>named
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>'aal135'. msDrawShape(): General error message. Only polygon
<DIV></DIV>>>
<DIV></DIV>>>>>>>shapes
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>can
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>be drawn using a POLYGON layer definition. So I tried switching
<DIV></DIV>>>
<DIV></DIV>>>>>>>the
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>TYPE
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>in my layer to POINT and a couple of points along the border of
<DIV></DIV>>>
<DIV></DIV>>>>>>>the
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>polygon showed up. I know the shapefile is a polygon though
<DIV></DIV>>>
<DIV></DIV>>>>>>>because
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>it
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>displays as the correct shape in arcExplorer. Can someone tell
<DIV></DIV>>>>>>>me
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>why
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>the polygon will show up in ArcExplorer but not in mapserver?
<DIV></DIV>>>>>>>Is
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>there
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>anything I can do to fix this problem?? I am at real loss here
<DIV></DIV>>>
<DIV></DIV>>>>>>>for
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>why
<DIV></DIV>>>
<DIV></DIV>>>>>
<DIV></DIV>>>
<DIV></DIV>>>>>>>this happens and would really appreciate any help.... Thanks
<DIV></DIV>>>
<DIV></DIV>>>>>>>Gerard
<DIV></DIV>>>
<DIV></DIV>>>>>
<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>>>>>
<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>>>
<DIV></DIV>>>>>>http://www.opera.com/m2/
<DIV></DIV>>>
<DIV></DIV>>>>>
<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>