Ticket #624 (new defect)

Opened 9 years ago

Last modified 9 years ago

Enhancement bug: layerObj->getbounds() method

Reported by: aaronkoning@… Owned by: 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

Changed 9 years ago by dmorissette

  • cc sgillies@…, steve.lime@… added
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.


Changed 9 years ago by sgillies@…

  • cc sgillies@… removed
Note: See TracTickets for help on using tickets.