[mapserver-dev] WMS GetCapabilities 1.3.0 behaviour

Guillaume Sueur no-reply at neogeo-online.net
Fri Oct 22 08:22:43 EDT 2010


Hi,

I'm still digging into WMS 1.3.0 getCapabilities behaviour with 
MapServer 5.6.5.
There is some blur point for me.
My mapfile is advertised as being EPSG:27562, with an specified metric 
extent of 775000 60800 820000 116000. It gives :
<EX_GeographicBoundingBox>
<westBoundLongitude>4.57661</westBoundLongitude>
<eastBoundLongitude>5.17771</eastBoundLongitude>
<southBoundLatitude>45.5122</southBoundLatitude>
<northBoundLatitude>46.0216</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="EPSG:27562" minx="775000" miny="60800" maxx="820000" 
maxy="116000"/>

which is perfect.

My layer has got the same parameters. It I fill up an EXTENT at the 
layer level with the same values as above, it gives me the same perfect 
result. BUT, if I don't declare any extent for the layer, it returns 
weird results :
<EX_GeographicBoundingBox>
<westBoundLongitude>-179.318</westBoundLongitude>
<eastBoundLongitude>179.829</eastBoundLongitude>
<southBoundLatitude>-69.2834</southBoundLatitude>
<northBoundLatitude>-34.8224</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="EPSG:27562" minx="-2.5e+07" miny="-2.5e+07" 
maxx="2.5e+07" maxy="2.5e+07"/>

How are these values calculated ? Why doesn't the layer inherit from map 
extent when no extent is specified ?

Thanks

Guillaume


More information about the mapserver-dev mailing list