public class HilbertPartitioning extends Object implements Serializable
| Modifier and Type | Field and Description | 
|---|---|
protected int[] | 
splits
The splits. 
 | 
| Constructor and Description | 
|---|
HilbertPartitioning(List<org.locationtech.jts.geom.Envelope> samples,
                   org.locationtech.jts.geom.Envelope boundary,
                   int partitions)
Instantiates a new hilbert partitioning. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static int | 
computeHValue(int n,
             int x,
             int y)
Compute H value. 
 | 
protected void | 
createFromHValues(int[] hValues,
                 int partitions)
Creates the from H values. 
 | 
List<org.locationtech.jts.geom.Envelope> | 
getGrids()
Gets the grids. 
 | 
int[] | 
getPartitionBounds()
Gets the partition bounds. 
 | 
static int | 
gridID(org.locationtech.jts.geom.Envelope boundary,
      org.locationtech.jts.geom.Envelope spatialObject,
      int[] partitionBounds)
Grid ID. 
 | 
static int | 
locationMapping(double axisMin,
               double axisLocation,
               double axisMax)
Location mapping. 
 | 
static org.locationtech.jts.geom.Envelope | 
updateEnvelope(org.locationtech.jts.geom.Envelope envelope,
              org.locationtech.jts.geom.Envelope spatialObject)
Update envelope. 
 | 
public HilbertPartitioning(List<org.locationtech.jts.geom.Envelope> samples, org.locationtech.jts.geom.Envelope boundary, int partitions) throws Exception
samples - the sample listboundary - the boundarypartitions - the partitionsException - the exceptionpublic static int computeHValue(int n,
                                int x,
                                int y)
n - the nx - the xy - the ypublic static int locationMapping(double axisMin,
                                  double axisLocation,
                                  double axisMax)
axisMin - the axis minaxisLocation - the axis locationaxisMax - the axis maxpublic static int gridID(org.locationtech.jts.geom.Envelope boundary,
                         org.locationtech.jts.geom.Envelope spatialObject,
                         int[] partitionBounds)
                  throws Exception
boundary - the boundaryspatialObject - the spatial objectpartitionBounds - the partition boundsException - the exceptionpublic static org.locationtech.jts.geom.Envelope updateEnvelope(org.locationtech.jts.geom.Envelope envelope,
                                                                org.locationtech.jts.geom.Envelope spatialObject)
                                                         throws Exception
envelope - the envelopespatialObject - the spatial objectException - the exceptionprotected void createFromHValues(int[] hValues,
                                 int partitions)
hValues - the h valuespartitions - the partitionspublic int[] getPartitionBounds()
public List<org.locationtech.jts.geom.Envelope> getGrids()
Copyright © 2023 The Apache Software Foundation. All rights reserved.