public class IndexedGridPartitioner extends FlatGridPartitioner
preserveUncontainedGeometries
grids, gridType
Constructor and Description |
---|
IndexedGridPartitioner(GridType gridType,
List<org.locationtech.jts.geom.Envelope> grids) |
IndexedGridPartitioner(GridType gridType,
List<org.locationtech.jts.geom.Envelope> grids,
Boolean preserveUncontainedGeometries) |
IndexedGridPartitioner(List<org.locationtech.jts.geom.Envelope> grids) |
IndexedGridPartitioner(List<org.locationtech.jts.geom.Envelope> grids,
Boolean preserveUncontainedGeometries) |
Modifier and Type | Method and Description |
---|---|
STRtree |
getIndex() |
Iterator<scala.Tuple2<Integer,org.locationtech.jts.geom.Geometry>> |
placeObject(org.locationtech.jts.geom.Geometry spatialObject)
Given a geometry, returns a list of partitions it overlaps.
|
equals, getDedupParams, numPartitions
getGrids, getGridType, getPartition
public IndexedGridPartitioner(GridType gridType, List<org.locationtech.jts.geom.Envelope> grids, Boolean preserveUncontainedGeometries)
public IndexedGridPartitioner(GridType gridType, List<org.locationtech.jts.geom.Envelope> grids)
public IndexedGridPartitioner(List<org.locationtech.jts.geom.Envelope> grids, Boolean preserveUncontainedGeometries)
public IndexedGridPartitioner(List<org.locationtech.jts.geom.Envelope> grids)
public STRtree getIndex()
public Iterator<scala.Tuple2<Integer,org.locationtech.jts.geom.Geometry>> placeObject(org.locationtech.jts.geom.Geometry spatialObject) throws Exception
SpatialPartitioner
For points, returns exactly one partition as long as grid type is non-overlapping. For other geometry types or for overlapping grid types, may return multiple partitions.
placeObject
in class FlatGridPartitioner
Exception
Copyright © 2025 The Apache Software Foundation. All rights reserved.