org.gwtopenmaps.openlayers.client.protocol
Class WFSProtocol

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
          extended by org.gwtopenmaps.openlayers.client.protocol.Protocol
              extended by 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

Constructor Summary
WFSProtocol(WFSProtocolOptions options)
           
WFSProtocol(WMS layer, WFSProtocolOptions options)
          Implements the convenience method OpenLayers.Protocol.WFS.fromWMSLayer().
 
Method Summary
 String getFeatureNameSpace()
           
 String getFeatureType()
           
 String getGeometryName()
           
 String getUrl()
           
 void read(CRUDOptions options)
          Performs a GetFeature request on the WFS service.
 void setFeatureNameSpace(String featureNS)
           
 void setFeatureType(String featureType)
           
 void setGeometryName(String geometryName)
           
 void setUrl(String url)
           
 
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
getClassName, getEvents, narrowToOpenLayersObjectWrapper
 
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
getJSObject, setJSObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 protocol
options - - WFSProtocolOptions used to configure this protocol
Method Detail

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.