[mapserver-users] RE: perplexing error: msDrawShape(): Only p olygon shapes can be.. .

Hankley, Chip Chip.Hankley at GASAI.Com
Thu Apr 4 09:27:21 EST 2002


Puneet...

I had some similarly perplexing problems with a poly shapefile about 6
months ago. In my case, the polygon just wouldn't render in my MapServer
app, and I couldn't query the polygon by "clicking" on it, but I could get
it to show up based on a logical query (i.e. turn polygonid=32 red).

On the other had, everything rendered fine in ArcView. For what it's worth,
these were data sets that I had converted to shapefiles from DGN. I think
what I finally ended up doing was converting the shapefiles to ArcInfo
coverages, cleaning them, then converting them back to shapefiles. For some
reason, this seemed to fix the problem, although I have no idea what the
underlying cause was.

Chip Hankley

-----Original Message-----
From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com]
Sent: Wednesday, April 03, 2002 3:08 PM
To: 'mapserver-users at lists.gis.umn.edu'
Subject: [mapserver-users] RE: perplexing error: msDrawShape(): Only
polygon shapes can be.. .


further info on this...

I found a layer (the layer) that was causing the problem. When I take that
layer out of the map file, the map draws fine.

I changed the TYPE definition from polygon to line, and still got the above
error. Changed it to point and it drew fine.

Arcview shows it up as a polygon layer filled with all "area > 0" polygons.

The weirdest thing is that the above error does not occur when I draw the
map by clicking on it, such as when identifying a feature.

Any ideas anyone?

pk/





> -----Original Message-----
> From: Puneet Kishor 
> Sent: Wednesday, April 03, 2002 1:32 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: perplexing error: msDrawShape(): Only polygon shapes 
> can be...
> 
> 
> MapServer Error in msDrawShape(): Only polygon shapes can be 
> drawn using a POLYGON layer definition
> 
> 
> I get the above error _only_ when I try to zoom around the 
> map. That is, I am able to draw the map fine while 
> identifying (by clicking) or by directly zooming to a known 
> feature. I have a map file with 5 layers in it... 4 are 
> polygons and 1 is lines. As I said, if I search for a feature 
> using an attribute, or if I click on an existing map and 
> identify and zoom to the selected feature, it draws just fine.
> 
> This is driving me nuts.
> 
> Many tia,
> 
> pk/
> 



More information about the mapserver-users mailing list