shapefile polygon opens in arcgis but n ot mapserver

Brenningmeyer, Todd M. TODD.M.BRENNINGMEYER at SAIC.COM
Thu Apr 14 06:09:38 PDT 2005


Hi,

I've had to deal with a similar issue connected with shapes with M values (I
can't recall if they also had Z).  When I had the entire polygon within the
view it was visible but if any portion of that file extended outside of the
viewer the rest of the features for that shapefile would disappear.  I was
able to get around this by removing the z and m values and exporting a plain
2D shapefile.  After that everything worked.  The issue appears to be the
way mapserver opens or handles M and possibly Z shapes.  The shapes were
created with arcgis 9.0 which may be part of the problem as ArcGIS products
tend to handle and create shapefiles a little differently than arcview 3.x.

Todd Brenningmeyer, Ph.D.
SAIC - EEMG
8421 St. John Industrial Drive
St. Louis, MO 63114
Phone: (314) 770-3097
Fax:     (314) 344-4349
Todd.M.Brenningmeyer at saic.com

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Bart van den Eijnden
Sent: Wednesday, April 13, 2005 2:18 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] shapefile polygon opens in arcgis but not
mapserver

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