- All Known Implementing Classes:
SpatialIndexAdapterV1,SpatialIndexPerGraph
public interface SpatialIndex
-
Method Summary
Modifier and TypeMethodDescriptionlonggetSize()Returns the number of items in the index.booleanisEmpty()Collection<org.apache.jena.graph.Node>query(org.locationtech.jts.geom.Envelope searchEnvelope, org.apache.jena.graph.Node graph) Query the index for all matching items in the given graph.voidsetLocation(Path location)
-
Method Details
-
getSrsInfo
SRSInfo getSrsInfo()- Returns:
- Information about the SRS used by the SpatialIndex.
-
isEmpty
boolean isEmpty()- Returns:
- True if the SpatialIndex is empty.
-
getSize
long getSize()Returns the number of items in the index. -
query
Collection<org.apache.jena.graph.Node> query(org.locationtech.jts.geom.Envelope searchEnvelope, org.apache.jena.graph.Node graph) Query the index for all matching items in the given graph. The default graph can be referenced with null or any value for whichQuad.isDefaultGraph()returns true. The union graph (= all named graphs but not the default graph) can be referenced withQuad.unionGraph.- Parameters:
searchEnvelope- The bounding box for which to find overlapping items.graph- The graph to which to restrict the query.- Returns:
- The collection of nodes whose envelopes overlap with the search envelope.
-
getLocation
Path getLocation() -
setLocation
-