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

Puneet Kishor pkishor at GeoAnalytics.com
Thu Apr 4 07:37:55 PST 2002


I guess I will have to do something like this as well. 

But, here's the funny thing. Exactly the same layer (same physical layer,
same definition in the map file) works just fine in MS3.4, but croaks in
MS3.5.

Additionally, as I noted, as long as I don't use any of zoom methods, it
draws ok as a polygon. As soon as I use a zoom method, it complains that it
is not a polygon.

Tested it in Arcview for unclean polys, or polys with area not greater 0...
nothing out of the ordinary at all.

pk/



> -----Original Message-----
> From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com]
> Sent: Thursday, April 04, 2002 8:27 AM
> To: 'Puneet Kishor'; 'mapserver-users at lists.gis.umn.edu'
> Subject: RE: [mapserver-users] RE: perplexing error: 
> msDrawShape(): Only
> p olygon shapes can be.. .
> 
> 
> 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