public interface SpatialRuleLookup
Modifier and Type | Field and Description |
---|---|
static SpatialRuleLookup |
EMPTY |
Modifier and Type | Method and Description |
---|---|
org.locationtech.jts.geom.Envelope |
getBounds() |
int |
getSpatialId(SpatialRule rule)
This method returns an identification number from 0 to size (exclusive) for the specified rule.
|
SpatialRule |
getSpatialRule(int spatialId)
This method returns the SpatialRule for a given Spatial Id.
|
SpatialRule |
lookupRule(double lat,
double lon)
Return an applicable rule for this location.
|
SpatialRule |
lookupRule(GHPoint point)
See
lookupRule(double, double) for details. |
int |
size() |
static final SpatialRuleLookup EMPTY
SpatialRule lookupRule(double lat, double lon)
If the requested location is outside of the supported bounds or no SpatialRule is registered at this location
SpatialRule.EMPTY
is returned.
SpatialRule lookupRule(GHPoint point)
lookupRule(double, double)
for details.int getSpatialId(SpatialRule rule)
SpatialRule getSpatialRule(int spatialId)
int size()
org.locationtech.jts.geom.Envelope getBounds()
Copyright © 2012–2020. All rights reserved.