public class TDWay extends 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,
String name,
String houseNumber,
String ref,
short[] tags,
byte shape,
TDNode[] wayNodes)
Constructor.
|
TDWay(long id,
byte layer,
String name,
String houseNumber,
String ref,
TDNode[] wayNodes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static TDWay |
fromWay(org.openstreetmap.osmosis.core.domain.v0_6.Way way,
NodeResolver resolver,
String preferredLanguage)
Creates a new TDWay from an osmosis way entity using the given NodeResolver.
|
String |
getHouseNumber() |
long |
getId() |
byte |
getLayer() |
byte |
getMinimumZoomLevel() |
String |
getName() |
String |
getRef() |
byte |
getShape() |
short[] |
getTags() |
TDNode[] |
getWayNodes() |
int |
hashCode() |
boolean |
hasTags() |
boolean |
isCoastline() |
boolean |
isForcePolygonLine() |
boolean |
isInvalid() |
boolean |
isRenderRelevant() |
boolean |
isReversedInRelation() |
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(String name) |
void |
setRef(String ref) |
void |
setReversedInRelation(boolean reversedInRelation) |
void |
setShape(byte shape) |
void |
setTags(short[] tags) |
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,
String name,
String houseNumber,
String ref,
short[] tags,
byte shape,
TDNode[] wayNodes)
id - the idlayer - the layername - the name if existenthouseNumber - the house number if existentref - the ref if existenttags - the tagsshape - the shapewayNodes - the way nodespublic static TDWay fromWay(org.openstreetmap.osmosis.core.domain.v0_6.Way way, NodeResolver resolver, String preferredLanguage)
way - the wayresolver - the resolverpreferredLanguage - the preferred language or null if no preferencepublic String getHouseNumber()
public long getId()
public byte getLayer()
public byte getMinimumZoomLevel()
public String getName()
public String getRef()
public byte getShape()
public short[] getTags()
public TDNode[] getWayNodes()
public boolean hasTags()
public boolean isCoastline()
public boolean isForcePolygonLine()
public boolean isInvalid()
public boolean isRenderRelevant()
public boolean isReversedInRelation()
public boolean isValidClosedLine()
public void mergeRelationInformation(TDRelation relation)
relation - the relationpublic void setInvalid(boolean invalid)
invalid - the invalid to setpublic void setName(String name)
name - the name to setpublic void setRef(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(short[] tags)
tags - the tags to setCopyright © 2014 mapsforge.org