public class SpatialRuleLookupBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SpatialRuleLookupBuilder.SpatialRuleFactory |
| Constructor and Description |
|---|
SpatialRuleLookupBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static SpatialRuleLookup |
buildIndex(JsonFeatureCollection jsonFeatureCollection,
String jsonIdField,
SpatialRuleLookupBuilder.SpatialRuleFactory spatialRuleFactory)
Wrapper Method for
buildIndex(JsonFeatureCollection, String, SpatialRuleFactory, double, BBox). |
static SpatialRuleLookup |
buildIndex(JsonFeatureCollection jsonFeatureCollection,
String jsonIdField,
SpatialRuleLookupBuilder.SpatialRuleFactory spatialRuleFactory,
double resolution,
BBox maxBBox)
Builds a SpatialRuleLookup by passing the provided JSON features into the provided
SpatialRuleFactory and collecting all the SpatialRule instances that it returns,
ignoring when it returns SpatialRule.EMPTY.
|
public static SpatialRuleLookup buildIndex(JsonFeatureCollection jsonFeatureCollection, String jsonIdField, SpatialRuleLookupBuilder.SpatialRuleFactory spatialRuleFactory, double resolution, BBox maxBBox)
See SpatialRuleLookup and SpatialRule.
jsonFeatureCollection - a feature collectionjsonIdField - the name of a property in that feature collection which serves as an idspatialRuleFactory - a factory which is called with all the (id, geometry) pairs.
It should provide a SpatialRule for each id it knows about,
and SpatialRule.EMPTY otherwise.maxBBox - limit the maximum BBox of the SpatialRuleLookup to the given BBoxpublic static SpatialRuleLookup buildIndex(JsonFeatureCollection jsonFeatureCollection, String jsonIdField, SpatialRuleLookupBuilder.SpatialRuleFactory spatialRuleFactory)
buildIndex(JsonFeatureCollection, String, SpatialRuleFactory, double, BBox).
This method simply passes a world-wide BBox, this won't limit the SpatialRuleLookup.Copyright © 2012–2019. All rights reserved.