Class WFSServiceDriver

java.lang.Object
org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
org.gvsig.gazetteer.drivers.AbstractGazetteerServiceDriver
org.gvsig.gazetteer.wfs.drivers.WFSServiceDriver
All Implemented Interfaces:
org.gvsig.catalog.drivers.IDiscoveryServiceDriver, IGazetteerServiceDriver
Direct Known Subclasses:
WFSGServiceDriver

public class WFSServiceDriver extends AbstractGazetteerServiceDriver
Driver for the WFS protocol
Author:
Jorge Piera Llodra (piera_jor@gva.es)
  • Field Details

    • client

      protected org.gvsig.remoteclient.wfs.WFSClient client
    • status

      protected org.gvsig.remoteclient.wfs.WFSStatus status
  • Constructor Details

    • WFSServiceDriver

      public WFSServiceDriver()
  • Method Details

    • getCapabilities

      public org.gvsig.catalog.drivers.DiscoveryServiceCapabilities getCapabilities(URI uri)
    • describeFeatureType

      public FeatureTypeAttribute[] describeFeatureType(URI uri, String feature)
      Description copied from interface: IGazetteerServiceDriver
      It returns feature properties
      Specified by:
      describeFeatureType in interface IGazetteerServiceDriver
      Overrides:
      describeFeatureType in class AbstractGazetteerServiceDriver
      Parameters:
      uri - Server URI
      Returns:
      Array of the attributes of a feature
    • isDescribeFeatureTypeNeeded

      public boolean isDescribeFeatureTypeNeeded()
      Description copied from interface: IGazetteerServiceDriver
      There are protocols that need to invoke the describeFeatureType operation before to do a getFeature.
      Specified by:
      isDescribeFeatureTypeNeeded in interface IGazetteerServiceDriver
      Overrides:
      isDescribeFeatureTypeNeeded in class AbstractGazetteerServiceDriver
      Returns:
      if the describeFeatureType operation is needed.
    • getFeature

      public Feature[] getFeature(URI uri, GazetteerQuery query) throws Exception
      Description copied from interface: IGazetteerServiceDriver
      It returns the foubd records
      Parameters:
      uri - Server URI
      query - Query with the search parameters
      Returns:
      The features
      Throws:
      Exception
    • parseOutputFile

      protected Feature[] parseOutputFile(File file, String fieldAttribute) throws Exception
      Parses the GML file
      Parameters:
      file -
      Returns:
    • getFilterSQL

      protected String getFilterSQL(GazetteerQuery query)
      Creates a SQL filter to do the search
      Returns:
      A standard SQL query
    • isProtocolSupported

      public boolean isProtocolSupported(URI uri)
      Specified by:
      isProtocolSupported in interface org.gvsig.catalog.drivers.IDiscoveryServiceDriver
      Overrides:
      isProtocolSupported in class org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
    • getDefaultPort

      public int getDefaultPort()
      Specified by:
      getDefaultPort in interface org.gvsig.catalog.drivers.IDiscoveryServiceDriver
      Overrides:
      getDefaultPort in class org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
    • getDefaultSchema

      public String getDefaultSchema()
      Specified by:
      getDefaultSchema in interface org.gvsig.catalog.drivers.IDiscoveryServiceDriver
      Overrides:
      getDefaultSchema in class org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
    • getServiceName

      public String getServiceName()