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(List<JsonFeatureCollection> jsonFeatureCollections,
          String jsonIdField,
          SpatialRuleLookupBuilder.SpatialRuleFactory spatialRuleFactory)Wrapper Method for  buildIndex(List, String, SpatialRuleFactory, Envelope). | 
| static SpatialRuleLookup | buildIndex(List<JsonFeatureCollection> jsonFeatureCollections,
          String jsonIdField,
          SpatialRuleLookupBuilder.SpatialRuleFactory spatialRuleFactory,
          org.locationtech.jts.geom.Envelope 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(List<JsonFeatureCollection> jsonFeatureCollections, String jsonIdField, SpatialRuleLookupBuilder.SpatialRuleFactory spatialRuleFactory, org.locationtech.jts.geom.Envelope maxBBox)
 See SpatialRuleLookup and SpatialRule.
jsonFeatureCollections - a List of feature collectionsjsonIdField - 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 Envelopepublic static SpatialRuleLookup buildIndex(List<JsonFeatureCollection> jsonFeatureCollections, String jsonIdField, SpatialRuleLookupBuilder.SpatialRuleFactory spatialRuleFactory)
buildIndex(List, String, SpatialRuleFactory, Envelope).
 This method simply passes a world-wide BBox, this won't limit the SpatialRuleLookup.Copyright © 2012–2020. All rights reserved.