public class PackedRTree extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PackedRTree.FeatureItem |
static class |
PackedRTree.Item |
static class |
PackedRTree.SearchHit |
static class |
PackedRTree.SearchResult |
| Constructor and Description |
|---|
PackedRTree(List<? extends PackedRTree.Item> items,
short nodeSize) |
| Modifier and Type | Method and Description |
|---|---|
static NodeItem |
calcExtent(List<? extends PackedRTree.Item> items) |
static long |
calcSize(int numItems,
int nodeSize) |
static long |
hibert(NodeItem nodeItem,
int hilbertMax,
double minX,
double minY,
double width,
double height) |
static List<? extends PackedRTree.Item> |
hilbertSort(List<? extends PackedRTree.Item> items,
NodeItem extent) |
void |
init(int nodeSize) |
static long[] |
readFeatureOffsets(com.google.common.io.LittleEndianDataInputStream data,
long[] fids,
HeaderMeta headerMeta) |
static ArrayList<PackedRTree.SearchHit> |
search(ByteBuffer bb,
int start,
int numItems,
int nodeSize,
org.locationtech.jts.geom.Envelope rect) |
static PackedRTree.SearchResult |
search(InputStream stream,
int start,
int numItems,
int nodeSize,
org.locationtech.jts.geom.Envelope rect) |
void |
write(OutputStream outputStream) |
public NodeItem[] nodeItems
public PackedRTree(List<? extends PackedRTree.Item> items, short nodeSize)
public void init(int nodeSize)
public static List<? extends PackedRTree.Item> hilbertSort(List<? extends PackedRTree.Item> items, NodeItem extent)
public static long hibert(NodeItem nodeItem, int hilbertMax, double minX, double minY, double width, double height)
public static NodeItem calcExtent(List<? extends PackedRTree.Item> items)
public void write(OutputStream outputStream)
public static long calcSize(int numItems,
int nodeSize)
public static ArrayList<PackedRTree.SearchHit> search(ByteBuffer bb, int start, int numItems, int nodeSize, org.locationtech.jts.geom.Envelope rect)
public static PackedRTree.SearchResult search(InputStream stream, int start, int numItems, int nodeSize, org.locationtech.jts.geom.Envelope rect) throws IOException
IOExceptionpublic static long[] readFeatureOffsets(com.google.common.io.LittleEndianDataInputStream data,
long[] fids,
HeaderMeta headerMeta)
throws IOException
IOExceptionCopyright © 2025. All rights reserved.