[mapserver-users] WFS Server - GetCapabilities : Wrong WGS84BoundingBox

Ludovic Gnemmi lgnemmi at rgd73-74.fr
Tue Oct 16 09:13:03 PDT 2012


Hi List,
And i'm a bit lost with my server :
For each layer : The WGS84BoundingBox returned by WFS Capabilities is
different from EX_GeographicBoundingBox returned by the WMS Capabilities
(which is correct). Longitudes are slightly offset. And I don't undestand
why. I'm runing MS 6.2rc1 (with gdal 1.9.2)

Thanks for your help

*WFS Capabilities for my layer*:

<FeatureType><Name>commune</Name>
<Title>commune</Title>
<DefaultSRS>urn:ogc:def:crs:EPSG::27562</DefaultSRS>
<OutputFormats><Format>text/xml; subtype=gml/3.1.1</Format>
</OutputFormats><ows:WGS84BoundingBox dimensions="2"> 
<ows:LowerCorner>*3.25449830506514*
45.0322364698095</ows:LowerCorner><ows:UpperCorner>*4.90746655965819*
46.4436690375305</ows:UpperCorner></ows:WGS84BoundingBox>

*WMS Capabilities for the same layer: *

<Layer queryable="0" opaque="0" cascaded="0">
<Name>commune</Name>
<Title>commune</Title>
<CRS>EPSG:27562</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>*5.59081*</westBoundLongitude>
<eastBoundLongitude>*7.27355*</eastBoundLongitude>
<southBoundLatitude>45.0235</southBoundLatitude>
<northBoundLatitude>46.4437</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="EPSG:27562" minx="856240" miny="14163" maxx="979490"
maxy="165840"/><ows:LowerCorner>3.25449830506514
45.0322364698095</ows:LowerCorner>
<ows:UpperCorner>4.90746655965819
46.4436690375305</ows:UpperCorner></ows:WGS84BoundingBox></FeatureType>


*And my map file :*

map
name "mymap"
extent 856234 15002 977228 165832
units meters

projection
    "init=epsg:27562"
end

web
    metadata
        "wms_title" "Test WMS"
        "wms_srs" "EPSG:27562"
        "wfs_title" "Test WFS"
        "wfs_onlineresource"         "http://..//mapfiles/mymap.map"
        "wfs_maxfeatures"                    "10000"
        "ows_enable_request"   "*"
    END
end

LAYER
	CONNECTIONTYPE oraclespatial
	CONNECTION "usr/pwd at 192.168.10.18:1521/ora10"
	DATA "GEOM FROM usr.COMMUNE_PS USING UNIQUE UNIQUE_ID"
	NAME "commune"
    DUMP TRUE 
    projection
        "init=epsg:27562"
    end
    METADATA
        "wms_title" "commune"
        "wms_extent" "856234 15002 977228 165832"
        "wfs_extent" "856234 15002 977228 165832"
        "wfs_title" "commune"
        "ows_srs" "EPSG:27562"
        "gml_include_items"     "all"
        "gml_featureid"         "UNIQUE_ID"
    END
	TYPE polygon
	OPACITY 100
	SIZEUNITS pixels
	LABELITEM "NOM"
	CLASS
		NAME "Untitled class"
		STYLE
			OPACITY 100
			OUTLINECOLOR 21 21 21
			WIDTH 1
		END
	END
END





--
View this message in context: http://osgeo-org.1560.n6.nabble.com/WFS-Server-GetCapabilities-Wrong-WGS84BoundingBox-tp5009072.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list