[Mapserver-users] Any way to have the extent set to the MBR of a layer?

Daniel Morissette dmorissette at dmsolutions.ca
Wed May 19 08:55:29 EDT 2004


Ethan Alpert wrote:
> 
> Just curious if there's a way to default the mapext's to be the MBR for
> a given layer.
> 

There is no way to do it out of the box, but you can write a function to 
do it using MapScript. This function could either scan the layer to 
compute the extents or read the extent value from metadata that would be 
previously set in the mapfile.

-- 
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the mapserver-users mailing list