Package org.gvsig.gazetteer.drivers
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 Summary
Modifier and TypeMethodDescriptiondescribeFeatureType(URI uri, String featureType) It returns feature propertiesFeature[]getFeature(URI uri, GazetteerQuery query) It returns the foubd recordsReturns username for protocolbooleanThere are protocols that need to invoke the describeFeatureType operation before to do a getFeature.booleanneedsUsername(String protocol) Indicates if the protocol requires a usernamevoidsetProjection(String projection) voidsetUsername(String username) Saves username for protocolMethods inherited from interface org.gvsig.catalog.drivers.IDiscoveryServiceDriver
createQuery, getAditionalSearchPanel, getCapabilities, getDefaultPort, getDefaultSchema, getOneServer, getServerAnswerReady, getServiceName, isProtocolSupported, setServerAnswerReady, toString
-
Method Details
-
describeFeatureType
It returns feature properties- Parameters:
uri- Server URIfeature- 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
It returns the foubd records- Parameters:
uri- Server URIquery- Query with the search parameters- Returns:
- The features
- Throws:
Exception
-
getProjection
String getProjection()- Returns:
- the projection
-
setProjection
- Parameters:
projection- the projection to set
-
needsUsername
Indicates if the protocol requires a username- Parameters:
protocol-- Returns:
-
getUsername
String getUsername()Returns username for protocol- Returns:
-
setUsername
Saves username for protocol
-