shapefile polygon opens in arcgis but not mapserver
Bart van den Eijnden
bartvde at XS4ALL.NL
Wed Apr 13 12:18:12 PDT 2005
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/
More information about the MapServer-users
mailing list