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

Puneet Kishor pkishor at GeoAnalytics.com
Thu Apr 4 10:14:39 PST 2002


found it... there was a null shape. I guess, ms3.4 was forgiving where ms3.5
is not.

thanks everyone.

btw, if someone can explain to me what is a null shape I will find my
curiosity satisfied. is it when there is no geog feature but a dbf row
exists? it certainly is not a feature with area = 0. I mean, isn't the
absence of a feature simply no feature?

pk/




> -----Original Message-----
> From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com]
> Sent: Thursday, April 04, 2002 12:03 PM
> To: klehr1 at tampabay.rr.com
> Cc: Hankley, Chip; 'Puneet Kishor'; Stephen Lime
> Subject: Re: [mapserver-users] RE: perplexing error: 
> msDrawShape(): Only
> polygon shapes can be.. .
> 
> 
> Hi all,
> 
> Steve Lehr makes a good point.
> 
> If you download shp2tile from http://swoodbridge.com/tools/ 
> you can run
> your shp file through it and create a 1x1 set of tiles. It will
> basically copy the input file to the output but it eill also 
> remove any
> null shape objects found in the file. If you have a null shape in the
> file, mapserver does not like it. Give this a try and see of the new
> file has better behavior.
> 
> -Steve W.
> 
> klehr1 at tampabay.rr.com wrote:
> > 
> > Steve's -- is this the same problem I experienced with a null in the
> > shapefile ?
> > 
> > ----- Original Message -----
> > From: Hankley, Chip <Chip.Hankley at GASAI.Com>
> > To: 'Puneet Kishor' <pkishor at GeoAnalytics.com>;
> > <mapserver-users at lists.gis.umn.edu>
> > Sent: Thursday, April 04, 2002 9:27 AM
> > Subject: RE: [mapserver-users] RE: perplexing error: 
> msDrawShape(): Only
> > polygon 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