Ticket #624 (new defect)

Opened 4 years ago

Last modified 4 years ago

Enhancement bug: layerObj->getbounds() method

Reported by: aaronkoning@shaw.ca Assigned to: mapserverbugs
Priority: high Milestone:
Component: MapScript-PHP Version: unspecified
Severity: normal Keywords:
Cc:

Description

Hello developers,

Daniel suggested I file a bug enhancement in regards to my desire to have a
getBounds() method associated with the layerObj in PHP Mapscript (and the other
languages too I suppose).

This would help when creating zoomToActiveLayer and zoomToAllLayers types of
functions. I realize the bounds of a shapefile can be discovered through the
shapefileObj class, but their is no method available for determining bounds in
other data sources (eg: postgis). I suppose one could get around this by parsing
the connection and data properties of the layerObj, but it would be much nicer
to have a getBounds() method to do this.

Thanks a bunch :D
Aaron Koning

Change History

04/16/04 10:45:18 changed by dmorissette

  • cc set to sgillies@frii.com, steve.lime@dnr.state.mn.us.
Steve wrote:
> There used to be an extent property in the layerObj that users could set
> in the map file to
> avoid the overhead. A method could leverage that if set.


08/02/04 16:29:02 changed by sgillies@frii.com

  • cc deleted.