WMS LatLonBoundingBox

Daniel Morissette dmorissette at DMSOLUTIONS.CA
Tue Aug 24 22:41:30 EDT 2004


Bart van den Eijnden wrote:
> Hi list,
>
> for raster layers I do not get a LatLonBoundingBox in the WMS capabilities
> from Mapserver. I tried using the following METADATA on the LAYER level to
> overrule the LatLonBoundingBox from the parent LAYER, but that didn't work
> (it does not end up in the capabilities):
>
> METADATA
>   "wms_latlonboundingbox" "2.68506 49.54247 7.75847 54.61588"
> END
>

"wms_latlonboundingbox" doesn't do anything in WMS capabilites.


> How do I get a LatLonBoundingBox for a raster layer in my WMS capabilities
> so that I am able to overrule the parent LAYER's LatLonBoundingBox?
>

You could try setting a "wms_extent" metadata with coordinates in the
layer's native projection and MapServer should reproject that to
geographic coordinates to produce the <LatLonBoundingBox ...> element.

BTW, the ability to fetch extents of raster layers in the data file has
been added in MapServer 4.3, but still doesn't seem to work with WMS
layers, something we'll have to look into...
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=79

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



More information about the mapserver-users mailing list