public class OSMRecord
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
category |
private com.vividsolutions.jts.geom.Geometry |
geometry |
private java.lang.String |
id |
private java.lang.String |
name |
private java.util.Map<java.lang.String,java.lang.String> |
tags |
private java.lang.String |
type |
| Constructor and Description |
|---|
OSMRecord() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCategory()
Provides the category assigned to an OSM feature (node, way, or relation).
|
com.vividsolutions.jts.geom.Geometry |
getGeometry()
Provides the geometry representation of the OSM feature.
|
java.lang.String |
getID()
Provides the identifier of an OSM feature (node, way, or relation).
|
java.lang.String |
getName()
Provides the name of an OSM feature (node, way, or relation).
|
java.util.Map<java.lang.String,java.lang.String> |
getTagKeyValue()
Provides a dictionary with all OSM tags and their respective values for an OSM feature.
|
java.lang.String |
getType()
Provides the type of an OSM feature (node, way, or relation).
|
void |
setCategory(java.lang.String category)
Sets or updates the category assigned to an OSM feature (node, way, or relation).
|
void |
setGeometry(com.vividsolutions.jts.geom.Geometry geometry)
Sets or updates the geometry of an OSM feature (node, way, or relation).
|
void |
setID(java.lang.String id)
Sets or updates the identifier of the OSM feature.
|
void |
setName(java.lang.String name)
Sets or updates the name of an OSM feature (node, way, or relation).
|
void |
setTagKeyValue(java.lang.String tagKey,
java.lang.String tagValue)
Sets or updates the value of a specific tag for an OSM feature (node, way, or relation).
|
void |
setTags(java.util.Map<java.lang.String,java.lang.String> tags)
Sets or updates all tags associated with an OSM feature (node, way, or relation).
|
void |
setType(java.lang.String type)
Sets or updates the type of an OSM feature (node, way, or relation).
|
private java.lang.String id
private java.lang.String name
private java.lang.String type
private java.lang.String category
private com.vividsolutions.jts.geom.Geometry geometry
private final java.util.Map<java.lang.String,java.lang.String> tags
public java.lang.String getID()
public java.lang.String getName()
public java.lang.String getType()
public java.lang.String getCategory()
public com.vividsolutions.jts.geom.Geometry getGeometry()
public java.util.Map<java.lang.String,java.lang.String> getTagKeyValue()
public void setID(java.lang.String id)
id - The identifier to be assigned.public void setName(java.lang.String name)
name - A string to be assigned as name.public void setType(java.lang.String type)
type - A string to be assigned as type.public void setCategory(java.lang.String category)
category - A string to be assigned as category.public void setGeometry(com.vividsolutions.jts.geom.Geometry geometry)
geometry - The geometry representation to be assigned.public void setTagKeyValue(java.lang.String tagKey,
java.lang.String tagValue)
tagKey - The name of the tag.tagValue - The value to be assigned to this tag.public void setTags(java.util.Map<java.lang.String,java.lang.String> tags)
tags - Key-value pairs to be assigned as tags to the OSM feature.