public class EsriLocator extends GeoLocator
Constructor and Description |
---|
EsriLocator(java.net.URL esriBase)
Create a new EsriLocator using the specified URL as a base for locating
shape files.
|
Modifier and Type | Method and Description |
---|---|
GeoReader |
addFile(java.lang.String fileName)
Add a specific shape file to the locator.
|
java.util.Set<java.lang.String> |
getAllNames()
Get the set of all geographic names known to this locator
|
GeoCoord |
getCoordinate(java.lang.String locName)
Discover the geographic coordinate for the requested location.
|
GeoReader |
getReader(java.lang.String type)
Get the particular reader associated with a type.
|
boolean |
isEstimateFlag()
Return whether the locator allows estimation
|
GeoShape |
lookup(Location loc)
Look up the shape associated with the specified Location.
|
GeoShape |
lookup(java.lang.String locName)
Look up the shape associated with the specified Location by name.
|
GeoShape |
lookup(java.lang.String locName,
java.lang.String type)
Look up the shape associated with the specified Location by name and
type.
|
void |
setEstimateFlag(boolean estimateFlag)
Set the flag indicating whether to allow estimation within the locator.
|
getFeatureType
public EsriLocator(java.net.URL esriBase)
esriBase
- the base URL for locating shape filespublic GeoReader addFile(java.lang.String fileName)
fileName
- ESRI shape file name.public java.util.Set<java.lang.String> getAllNames()
public GeoCoord getCoordinate(java.lang.String locName)
getCoordinate
in class GeoLocator
locName
- location namepublic GeoReader getReader(java.lang.String type)
type
- Type of reader, corresponding to the shape file namepublic boolean isEstimateFlag()
isEstimateFlag
in class GeoLocator
public GeoShape lookup(Location loc)
lookup
in class GeoLocator
loc
- the specified location objectpublic GeoShape lookup(java.lang.String locName)
lookup
in class GeoLocator
locName
- the specified location namepublic GeoShape lookup(java.lang.String locName, java.lang.String type)
lookup
in class GeoLocator
locName
- the specified location nametype
- the type of location the name representspublic void setEstimateFlag(boolean estimateFlag)
setEstimateFlag
in class GeoLocator
estimateFlag
- whether the locator allows estimation