public interface OSMIndex
Modifier and Type | Method and Description |
---|---|
void |
clear()
Erases all contents of the index.
|
boolean |
containsKey(java.lang.String k)
Checks whether the index contains an entry with the given key value.
|
com.vividsolutions.jts.geom.Geometry |
get(java.lang.String k)
Provides the geometry indexed under the given (unique) key value.
|
void |
print()
Print the contents of the index to standard output.
|
void |
put(java.lang.String k,
com.vividsolutions.jts.geom.Geometry g)
Inserts (or updates) an entry into the index with the given key value and geometry.
|
void |
putAll(java.util.Map<java.lang.String,com.vividsolutions.jts.geom.Geometry> m)
Inserts a collection of geometries into the index.
|
int |
size()
Provides the count of entries in the index.
|
void put(java.lang.String k, com.vividsolutions.jts.geom.Geometry g)
k
- The key value of the entry.g
- The geometry of the entry.com.vividsolutions.jts.geom.Geometry get(java.lang.String k)
k
- The key value to find.void clear()
boolean containsKey(java.lang.String k)
k
- A key value to check with the index contents.void putAll(java.util.Map<java.lang.String,com.vividsolutions.jts.geom.Geometry> m)
m
- Collection of geometries with their keys (string values).int size()
void print()