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.
|
getFeatureTypepublic 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 GeoLocatorlocName - location namepublic GeoReader getReader(java.lang.String type)
type - Type of reader, corresponding to the shape file namepublic boolean isEstimateFlag()
isEstimateFlag in class GeoLocatorpublic GeoShape lookup(Location loc)
lookup in class GeoLocatorloc - the specified location objectpublic GeoShape lookup(java.lang.String locName)
lookup in class GeoLocatorlocName - the specified location namepublic GeoShape lookup(java.lang.String locName, java.lang.String type)
lookup in class GeoLocatorlocName - the specified location nametype - the type of location the name representspublic void setEstimateFlag(boolean estimateFlag)
setEstimateFlag in class GeoLocatorestimateFlag - whether the locator allows estimation