public class SpatialRuleLookupJTS extends Object implements SpatialRuleLookup
EMPTY| Constructor and Description |
|---|
SpatialRuleLookupJTS(List<SpatialRule> spatialRules,
org.locationtech.jts.geom.Envelope maxBounds) |
| Modifier and Type | Method and Description |
|---|---|
org.locationtech.jts.geom.Envelope |
getBounds() |
List<SpatialRule> |
getRules() |
SpatialRuleSet |
lookupRules(double lat,
double lon)
Return applicable rules for this location.
|
public SpatialRuleLookupJTS(List<SpatialRule> spatialRules, org.locationtech.jts.geom.Envelope maxBounds)
public SpatialRuleSet lookupRules(double lat, double lon)
SpatialRuleLookupIf multiple rules with the same priority overlap for a location, the implementation can decide which of them to return and in which order.
If the requested location is outside of the supported bounds or no
SpatialRule is registered at this location SpatialRuleSet.EMPTY
is returned.
lookupRules in interface SpatialRuleLookuppublic List<SpatialRule> getRules()
getRules in interface SpatialRuleLookupSpatialRuleLookup.getBounds()public org.locationtech.jts.geom.Envelope getBounds()
getBounds in interface SpatialRuleLookupCopyright © 2012–2020. All rights reserved.