[Mapserver-users] MapServer 3.6 WMS not calculating LatLonBoundingBox

Daniel Morissette dmorissette at dmsolutions.ca
Tue Feb 17 12:38:33 PST 2004


Van Ulden, Joost wrote:
> Hi all,
> 
> In an effort to clean up some of our WMS services, I noticed that MapServer
> 3.6 WMS Server is not calculating the proper LatLonBoundingBox for the MAP,
> or the LAYER.  We are using EPSG:42304 (LCC Canada) for the MAP.  Anyone
> else have this problem?
> 
> GetCapabilities Snippet:
> 
> <Layer queryable="0">
>   <Name>Stories</Name> 
>   <Title>Stories</Title> 
>   <SRS>EPSG:42304</SRS> 
>   <LatLonBoundingBox minx="72.3487" miny="81.9785" maxx="72.5409"
> maxy="82.0071" /> 
>   <BoundingBox SRS="EPSG:42304" minx="501073" miny="5.55249e+006"
> maxx="503164" maxy="5.55513e+006" /> 
> </Layer>
> 
> Unless Whistler is on the other side of planet this doesn't look right.
> Even if I specify the proper LatLonBoundingBox, MapServer ignores it and
> calculates an incorrect one.
> 


Are you sure that your source data for this layer is really in 
EPSG:42304, or that your layer projection is set to the right value?

I did a quick test, and here are the extents I get for a zoom in the 
region of SW of BC in EPSG:42304:

   minx=-2215691.18  miny=380000.44 maxx=-1836821.01 maxy=759386.35

That doesn't seem close to your BoundingBox values.

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




More information about the MapServer-users mailing list