org.gwtopenmaps.openlayers.client.protocol
Class WFSProtocol
java.lang.Object
org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
org.gwtopenmaps.openlayers.client.protocol.Protocol
org.gwtopenmaps.openlayers.client.protocol.WFSProtocol
public class WFSProtocol
- extends Protocol
WFS Protocol for Vector Layers - intentionally deviates from OpenLayers name. This is
basically OpenLayers.Protocol.WFS
- Author:
- davekkomackecom, Mikael Couzic
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WFSProtocol
public WFSProtocol(WFSProtocolOptions options)
- Parameters:
options
- - WFSProtocolOptions used to configure this protocol
WFSProtocol
public WFSProtocol(WMS layer,
WFSProtocolOptions options)
- Implements the convenience method OpenLayers.Protocol.WFS.fromWMSLayer(). Since
it's really a constructor we'll call it the proper java constructor name
with a layer object.
The convenience method uses a WMS Layer to populate a bunch of values under
the assumption that the WFS query will be done to the same layer at the server
- Parameters:
layer
- - WMS Layer to get properties from to configure protocoloptions
- - WFSProtocolOptions used to configure this protocol
read
public void read(CRUDOptions options)
- Performs a GetFeature request on the WFS service.
Due to the asymetric callback system, the return type of the method has been set to void.
The results are accessed by the
Callback.computeResult()
method.
- Specified by:
read
in class Protocol
- Parameters:
options
- - Options object, encapsulating the callback
setUrl
public void setUrl(String url)
- Parameters:
url
- - the url of the WFS
setGeometryName
public void setGeometryName(String geometryName)
- Parameters:
geometryName
- - set the geometry name
setFeatureNameSpace
public void setFeatureNameSpace(String featureNS)
- Parameters:
feature
- namespace - the namespace of the feature schema
setFeatureType
public void setFeatureType(String featureType)
- Parameters:
feature
- type - the type of feature, for example: roads, lakes, cities
getUrl
public String getUrl()
- Returns:
- url - the url of the WFS
getGeometryName
public String getGeometryName()
- Returns:
- geometryName - the name of the geometry
getFeatureNameSpace
public String getFeatureNameSpace()
- Returns:
- feature namespace - the namespace of the feature schema
getFeatureType
public String getFeatureType()
- Returns:
- feature type - the type of feature, for example: roads, lakes, cities
Copyright © 2011 sourceforge. All Rights Reserved.