Interface IGazetteerServiceDriver

All Superinterfaces:
org.gvsig.catalog.drivers.IDiscoveryServiceDriver
All Known Implementing Classes:
AbstractGazetteerServiceDriver, ADLGazetteerServiceDriver, ADLSearchByName, GeonamesServiceDriver, IDECGazetteerServiceDriver, WFSGServiceDriver, WFSServiceDriver

public interface IGazetteerServiceDriver extends org.gvsig.catalog.drivers.IDiscoveryServiceDriver
This interface contains the common methods that have to be implemented by all the gazetteer drivers.
Author:
Jorge Piera Llodra (piera_jor@gva.es)
  • Method Details

    • describeFeatureType

      FeatureTypeAttribute[] describeFeatureType(URI uri, String featureType) throws Exception
      It returns feature properties
      Parameters:
      uri - Server URI
      feature - Feature name
      Returns:
      Array of the attributes of a feature
      Throws:
      Exception
    • isDescribeFeatureTypeNeeded

      boolean isDescribeFeatureTypeNeeded()
      There are protocols that need to invoke the describeFeatureType operation before to do a getFeature.
      Returns:
      if the describeFeatureType operation is needed.
    • getFeature

      Feature[] getFeature(URI uri, GazetteerQuery query) throws Exception
      It returns the foubd records
      Parameters:
      uri - Server URI
      query - Query with the search parameters
      Returns:
      The features
      Throws:
      Exception
    • getProjection

      String getProjection()
      Returns:
      the projection
    • setProjection

      void setProjection(String projection)
      Parameters:
      projection - the projection to set
    • needsUsername

      boolean needsUsername(String protocol)
      Indicates if the protocol requires a username
      Parameters:
      protocol -
      Returns:
    • getUsername

      String getUsername()
      Returns username for protocol
      Returns:
    • setUsername

      void setUsername(String username)
      Saves username for protocol