public class SpatialSimpleFeatureBinningStrategy extends SpatialBinningStrategy<org.opengis.feature.simple.SimpleFeature>
SpatialBinningStrategycomplexGeometryBinning, geometryFieldName, precision, type| Constructor and Description |
|---|
SpatialSimpleFeatureBinningStrategy()
Create a binning strategy using a small number of bins.
|
SpatialSimpleFeatureBinningStrategy(SpatialBinningType type,
int precision,
boolean useCentroidOnly) |
| Modifier and Type | Method and Description |
|---|---|
org.locationtech.jts.geom.Geometry |
getGeometry(DataTypeAdapter<org.opengis.feature.simple.SimpleFeature> adapter,
org.opengis.feature.simple.SimpleFeature entry)
Extract the geometry from the entry.
|
fromBinary, getBins, getPrecision, toBinaryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWeightpublic SpatialSimpleFeatureBinningStrategy()
public SpatialSimpleFeatureBinningStrategy(SpatialBinningType type, int precision, boolean useCentroidOnly)
type - S2, H3, or GeoHashprecision - the resolution/length of the hashuseCentroidOnly - desired behavior for complex geometry such as lines and polygons whether
to just aggregate one hash value based on the centroid or to apply the aggregation to
all overlapping centroidspublic org.locationtech.jts.geom.Geometry getGeometry(DataTypeAdapter<org.opengis.feature.simple.SimpleFeature> adapter, org.opengis.feature.simple.SimpleFeature entry)
SpatialBinningStrategyentry - The entry that will be binned using this strategy.Copyright © 2013–2021. All rights reserved.