public class GeoJSONGeoEnricher extends java.lang.Object implements GeoEnricher
GeoEnricher which looks for spatial features from a hierarchy of spatial data layers defined as GeoJSON files.| Modifier and Type | Field and Description |
|---|---|
static GeoJSONSpatialLayerHierarchyConfiguration |
WORLD_POLITICAL_BOUNDARIES_CONF |
| Constructor and Description |
|---|
GeoJSONGeoEnricher(java.lang.String layersFolderPath, GeoJSONSpatialLayerHierarchyConfiguration slConf, Configuration conf)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<SpatialFeature> |
enrich(JGeometry geomToEnrich)
Returns spatial features related to the given geometry
|
public static final GeoJSONSpatialLayerHierarchyConfiguration WORLD_POLITICAL_BOUNDARIES_CONF
public GeoJSONGeoEnricher(java.lang.String layersFolderPath,
GeoJSONSpatialLayerHierarchyConfiguration slConf,
Configuration conf)
throws java.lang.Exception
layersFolderPath - the folder containing the templates files which are the spatial data layers. This folder can be at any, a local or distributed file system.slConf - contains information regarding to the spatial data layers to be loaded, such as, the data layers names and the hierarchical structure between the layersconf - a hadoop configurationjava.lang.Exceptionpublic java.util.Iterator<SpatialFeature> enrich(JGeometry geomToEnrich) throws java.lang.Exception
GeoEnricherenrich in interface GeoEnrichergeomToEnrich - a geometry to be enriched with spatial featuresjava.lang.ExceptionCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.