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