Package org.wololo.flatgeobuf
Class PackedRTree
java.lang.Object
org.wololo.flatgeobuf.PackedRTree
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeItemcalcExtent(List<? extends PackedRTree.Item> items) static longcalcSize(int numItems, int nodeSize) static longstatic List<? extends PackedRTree.Item> hilbertSort(List<? extends PackedRTree.Item> items, NodeItem extent) voidinit(int nodeSize) static long[]readFeatureOffsets(com.google.common.io.LittleEndianDataInputStream data, long[] fids, HeaderMeta headerMeta) static PackedRTree.SearchResultsearch(InputStream stream, int start, int numItems, int nodeSize, org.locationtech.jts.geom.Envelope rect) static ArrayList<PackedRTree.SearchHit> search(ByteBuffer bb, int start, int numItems, int nodeSize, org.locationtech.jts.geom.Envelope rect) voidwrite(OutputStream outputStream)
-
Field Details
-
nodeItems
-
-
Constructor Details
-
PackedRTree
-
-
Method Details
-
init
public void init(int nodeSize) -
hilbertSort
public static List<? extends PackedRTree.Item> hilbertSort(List<? extends PackedRTree.Item> items, NodeItem extent) -
hibert
public static long hibert(NodeItem nodeItem, int hilbertMax, double minX, double minY, double width, double height) -
calcExtent
-
write
-
calcSize
public static long calcSize(int numItems, int nodeSize) -
search
public static ArrayList<PackedRTree.SearchHit> search(ByteBuffer bb, int start, int numItems, int nodeSize, org.locationtech.jts.geom.Envelope rect) -
search
public static PackedRTree.SearchResult search(InputStream stream, int start, int numItems, int nodeSize, org.locationtech.jts.geom.Envelope rect) throws IOException - Throws:
IOException
-
readFeatureOffsets
public static long[] readFeatureOffsets(com.google.common.io.LittleEndianDataInputStream data, long[] fids, HeaderMeta headerMeta) throws IOException - Throws:
IOException
-