Documentation (Re: [Mapserver-users] Re: problem getting bounds of poly shape

woodbri at swoodbridge.com woodbri at swoodbridge.com
Mon Sep 22 08:32:36 EDT 2003


Documentation People,

This seems like an important fact to document in mapscript.

-Steve W.

On 22 Sep 2003 at 10:09, Palle Due Larsen wrote:

> A shapeObj does not automatically compute its bounds. You have to call
> 
>      $shpObj->setBounds() to get it calculated.
> 
> Best regards
> Palle Due Larsen
> Carl Bro GIS&IT
> 
> -----Original Message-----
> From: "pkishor_98" <pkishor at geoanalytics.com>
> To: mapserver-users at lists.gis.umn.edu
> Date: Sun, 21 Sep 2003 18:02:30 -0000
> Subject: [Mapserver-users] Re: problem getting bounds of poly shape
> 
> > replying to my own question -- I might not be drawing a correctly
> > closed shape... hence no legit rectObj. Corollary question -- do I
> > have to explicitly close a shape to make a legit poly? Assuming the
> > answer to that is a resounding "yes", is there a way to test whether
> > a shape is a legit poly other than attempting to get its bounds and
> > seeing if anything is returned?
> > 
> > --- In mapserver-users at yahoogroups.com, "pkishor_98" <pkishor at g...>
> > wrote:
> > > I am drawing a shape on a poly layer like so...
> > > 
> > > my $shpObj = new
> > > mapscript::shapeObj($mapscript::MS_SHAPE_POLYGON); adding a few
> > > lines with points (of course) and drawing it. The
> > shape is drawing fine 
> > > and showing up on the graphic, but I can't get its bounds.
> > > 
> > > The bounds show up as -1 -1 -1 -1 via $shpObj->{bounds}->{minx}
> > etc. I am at 
> > my 
> > > wits end here... any idea what is going on?
> > > 
> > > Tia.
> > > 
> > > _______________________________________________
> > > Mapserver-users mailing list
> > > Mapserver-users at l...
> > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > 
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> Få en gratis emailkonto her: www.mail-online.dk 
> -----------------------------------------------
> Deltag i en lille konkurrence på nettet, og
> vind et gavekort på 50.000 kroner...
> KLIK HER: www.directoffice.dk/konkurrence
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 






More information about the mapserver-users mailing list