Dear list. I want to know how to use openlayers when I request WFS with Spatial Operations.
For example, at GeoServer Demo Request page, I can fin WFS_getFeatureBBox01.1.url and WFS_getFeatureBBox01.1.xml samples. So, the request is that http://localhost:8888/geoserver/wfs?request=GetFeature&version=1.0.0&typeName=topp:states&propertyName=STATE_NAME,PERSONS&BBOX=-75.102613,40.212597,-72.361859,41.512517 or http://localhost:8888/geoserver/wfs <wfs:GetFeature service="WFS" version="1.1.0" xmlns:topp="http://www.openplans.org/topp" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> <wfs:Query typeName="topp:states"> <wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName> <wfs:PropertyName>topp:PERSONS</wfs:PropertyName> <ogc:Filter> <ogc:BBOX> <ogc:PropertyName>the_geom</ogc:PropertyName> <gml:Envelope srsName="http://www.opengis.net/gml/srs/epsg.xml#4326 "> <gml:lowerCorner>-75.102613 40.212597</gml:lowerCorner> <gml:upperCorner>-72.361859 41.512517</gml:upperCorner> </gml:Envelope> </ogc:BBOX> </ogc:Filter> </wfs:Query> </wfs:GetFeature> But when I use openlayers, how to request thses requests exactly? For instance, when I request GetFeatureInfo with openlayers. // support GetFeatureInfo map.events.register('click', map, function (e) { document.getElementById('nodelist').innerHTML = "Loading... please wait..."; var url = map.layers[0].getFullRequestString( { REQUEST: "GetFeatureInfo", EXCEPTIONS: "application/vnd.ogc.se_xml", BBOX: map.getExtent().toBBOX(), X: e.xy.x, Y: e.xy.y, INFO_FORMAT: 'text/html', QUERY_LAYERS: map.layers[0].params.LAYERS, FEATURE_COUNT: 50, WIDTH: map.size.w, HEIGHT: map.size.h }, "http://localhost:8888/geoserver/wms" ); OpenLayers.loadURL(url, '', this, setHTML, setHTML); OpenLayers.Event.stop(e); }); } Please, give me a piece of information. Best regards, Myeonghun Jeong.
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
