[mapserver-users] Wrong WCS bounding box ?
Rousseau Lambert2, Louis-Philippe (EC)
louis-philippe.rousseaulambert2 at canada.ca
Thu Apr 5 08:32:23 PDT 2018
Hi,
I was testing WCS GetCapabilties requests on my sever and saw that the layer bounding box values aren't right...
The layer extent should normally be -180, 17.2994, 180, 90 which is OK in the WMS GetCapabilities. The result I have in the WCS GetCapabilities is:
<lonLatEnvelope srsName="urn:ogc:def:crs:OGC:1.3:CRS84">
<gml:pos>73.2514173838687 17.2994348501789</gml:pos>
<gml:pos>427.440941347144 81.1403650773625</gml:pos>
The layer displays correctly in WMS (GetMap) and is also georeferenced correctly in WCS with the GetCoverage request.
Any idea why I would get this extent in my WCS GetCapabilties ? Please note that I have tried version 1.0.0, 1.1.1, 2.0.1 and am using MapServer 7.0.7
Example test mapfile:
MAP
NAME "test"
PROJECTION
"init=epsg:4326"
END
WEB
METADATA
"ows_enable_request" "*"
"ows_title" "My Web Services"
END
END
LAYER
NAME "temp-test"
STATUS ON
TYPE RASTER
DUMP TRUE
TEMPLATE "ttt.html"
PROJECTION
"proj=stere"
"lat_0=90"
"lat_ts=60"
"lon_0=249"
"k=90"
"x_0=0"
"y_0=0"
"a=6371229"
"b=6371229"
"units=m"
"no_defs"
END
# Any layer on dd.weather.gc.ca that matches this pattern will work
DATA 'dd.meteo.gc.ca/model_gem_regional/10km/grib2/*/*/*TMP_TGL_2*.grib2'
METADATA
"ows_title" "test"
"wcs_label" "test"
"wcs_rangeset_name" "Default Range"
"wcs_rangeset_label" "Default Range"
"ows_include_items" "all"
"gml_include_items" "all"
END
CLASSGROUP "TEMPERATURE"
CLASS
NAME "-35 -30"
GROUP "TEMPERATURE"
EXPRESSION ([pixel] < 0)
STYLE
COLOR 0 0 183
END
END
CLASS
NAME "-30 -25"
GROUP "TEMPERATURE"
EXPRESSION ([pixel] >= 0)
STYLE
COLOR 0 0 239
END
END
END
END
Thanks
LP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20180405/455a5769/attachment.htm>
More information about the MapServer-users
mailing list