Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,com.vividsolutions.jts.geom.Geometry> |
index |
Constructor and Description |
---|
OSMMemoryIndex()
Constructor
|
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.
|
private java.util.Map<java.lang.String,com.vividsolutions.jts.geom.Geometry> index
public void put(java.lang.String k, com.vividsolutions.jts.geom.Geometry g)
public com.vividsolutions.jts.geom.Geometry get(java.lang.String k)
public void clear()
public int size()
public boolean containsKey(java.lang.String k)
containsKey
in interface OSMIndex
k
- A key value to check with the index contents.public void putAll(java.util.Map<java.lang.String,com.vividsolutions.jts.geom.Geometry> m)