public class TDWay
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
LINE
Represents a line.
|
static byte |
MULTI_POLYGON
A simple closed polygon with holes.
|
static byte |
SIMPLE_POLYGON
A simple closed polygon.
|
| Constructor and Description |
|---|
TDWay(long id,
byte layer,
java.lang.String name,
java.lang.String houseNumber,
java.lang.String ref,
java.util.Map<java.lang.Short,java.lang.Object> tags,
byte shape,
TDNode[] wayNodes)
Constructor.
|
TDWay(long id,
byte layer,
java.lang.String name,
java.lang.String houseNumber,
java.lang.String ref,
TDNode[] wayNodes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static TDWay |
fromWay(org.openstreetmap.osmosis.core.domain.v0_6.Way way,
NodeResolver resolver,
java.util.List<java.lang.String> preferredLanguages)
Creates a new TDWay from an osmosis way entity using the given NodeResolver.
|
java.lang.String |
getHouseNumber() |
long |
getId() |
byte |
getLayer() |
byte |
getMinimumZoomLevel() |
java.lang.String |
getName() |
java.lang.String |
getRef() |
byte |
getShape() |
java.util.Map<java.lang.Short,java.lang.Object> |
getTags() |
TDNode[] |
getWayNodes() |
int |
hashCode() |
boolean |
hasTags() |
boolean |
isCoastline() |
boolean |
isForcePolygonLine() |
boolean |
isInvalid() |
boolean |
isPartElement() |
boolean |
isRenderRelevant() |
boolean |
isReversedInRelation() |
boolean |
isRootElement() |
boolean |
isValidClosedLine() |
void |
mergeRelationInformation(TDRelation relation)
Merges tags from a relation with the tags of this way and puts the result into the way tags of this way.
|
void |
setInvalid(boolean invalid) |
void |
setName(java.lang.String name) |
void |
setRef(java.lang.String ref) |
void |
setReversedInRelation(boolean reversedInRelation) |
void |
setShape(byte shape) |
void |
setTags(java.util.Map<java.lang.Short,java.lang.Object> tags) |
java.lang.String |
toString() |
public static final byte LINE
public static final byte MULTI_POLYGON
public static final byte SIMPLE_POLYGON
public TDWay(long id,
byte layer,
java.lang.String name,
java.lang.String houseNumber,
java.lang.String ref,
java.util.Map<java.lang.Short,java.lang.Object> tags,
byte shape,
TDNode[] wayNodes)
id - the idlayer - the layername - the name if existenthouseNumber - the house number if existentref - the ref if existenttags - the tags (tag map contains optional values)shape - the shapewayNodes - the way nodespublic TDWay(long id,
byte layer,
java.lang.String name,
java.lang.String houseNumber,
java.lang.String ref,
TDNode[] wayNodes)
id - the idlayer - the layername - the name if existenthouseNumber - the house number if existentref - the ref if existentwayNodes - the way nodespublic static TDWay fromWay(org.openstreetmap.osmosis.core.domain.v0_6.Way way, NodeResolver resolver, java.util.List<java.lang.String> preferredLanguages)
way - the wayresolver - the resolverpreferredLanguages - the preferred language(s) or null if no preferencepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getHouseNumber()
public long getId()
public byte getLayer()
public byte getMinimumZoomLevel()
public java.lang.String getName()
public java.lang.String getRef()
public byte getShape()
public java.util.Map<java.lang.Short,java.lang.Object> getTags()
public TDNode[] getWayNodes()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean hasTags()
public boolean isCoastline()
public boolean isForcePolygonLine()
public boolean isInvalid()
public boolean isPartElement()
public boolean isRenderRelevant()
public boolean isReversedInRelation()
public boolean isRootElement()
public boolean isValidClosedLine()
public void mergeRelationInformation(TDRelation relation)
relation - the relationpublic void setInvalid(boolean invalid)
invalid - the invalid to setpublic void setName(java.lang.String name)
name - the name to setpublic void setRef(java.lang.String ref)
ref - the ref to setpublic void setReversedInRelation(boolean reversedInRelation)
reversedInRelation - set the flag that indicates whether the order of the way nodes are reversed by a particular relationpublic void setShape(byte shape)
shape - the shape to setpublic void setTags(java.util.Map<java.lang.Short,java.lang.Object> tags)
tags - the tags to setpublic java.lang.String toString()
toString in class java.lang.Object