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

Puneet Kishor pkishor at GeoAnalytics.com
Wed Apr 3 13:07:30 PST 2002


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