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)
SpatialRuleLookup
If 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 SpatialRuleLookup
public List<SpatialRule> getRules()
getRules
in interface SpatialRuleLookup
SpatialRuleLookup.getBounds()
public org.locationtech.jts.geom.Envelope getBounds()
getBounds
in interface SpatialRuleLookup
Copyright © 2012–2020. All rights reserved.