|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SupportedTagKeys>
org.ka2ddo.yaac.osm.SupportedTagKeys
public enum SupportedTagKeys
This enum defines the names of OpenStreetMap tags the OSMLayer renderer might care about, which therefore should be saved in the imported tile files. Other tags present in the raw OSM XML file will be discarded during import, as they are not considered relevant to actually plotting a map for the user.
OsmXmlSegmenter
,
OSMLayerEnum
Enum Constant Summary | |
---|---|
admin_level
Specifies the level of administrative control associated with a boundary or border_type . |
|
aeroway
|
|
amenity
|
|
area
Indicates that this Way is an enclosed area rather than an open polyline. |
|
border_type
|
|
boundary
|
|
bridge
Indicates that this Way is a bridge above some other feature. |
|
building
Indicates that this Way is a building rather than an open space. |
|
craft
|
|
emergency
|
|
fixme
Flag indicating this OpenStreetMap record is defective and needs updating. |
|
hazmat
Specifies if there are restrictions on transporting Hazardous Materials along this Way. |
|
highway
|
|
historic
|
|
icao
ICAO or IATA abbreviation for an airport. |
|
internet_access
Indicates that this Way or Node provides public Internet access. |
|
island
Indicates that the specified Way (probably an area) is an island within a body of water. |
|
landuse
|
|
lanes
Number of traffic lanes upon a Way (such as a divided highway). |
|
layer
Specifies the Z-order of this Way relative to other Ways. |
|
leisure
|
|
lit
Indicates that this Way or Node has artificial illumination. |
|
man_made
|
|
maxheight
Specifies the maximum passage height for this Way (restrictions on over-size vehicles). |
|
maxspeed
Specifies the maximum speed of travel along a Way. |
|
maxweight
Specifies the maximum permitted vehicle weight for this Way (restrictions on over-size vehicles). |
|
name
Human-readable name of this Node or Way. |
|
name_en
English-language human-readable name of the Node or Way. |
|
natural
|
|
office
|
|
old_ref
alternate Highway route number or abbreviation. |
|
oneway
Indicates this Way has traffic in only one direction. |
|
place
|
|
power
|
|
railway
|
|
ref
Highway route number or abbreviation. |
|
religion
|
|
shop
|
|
subway
Indicates that this Node or Way is an underground train rather than a surface one. |
|
toll
Indicates that some organization charges a toll or fee to travel on the Way. |
|
tourism
|
|
tunnel
Indicates that this Way is a tunnel below some other feature. |
|
type
specifies the type of a Relation member. |
|
waterway
|
|
width
Width of a Way in LengthUnits. |
Field Summary | |
---|---|
short |
flags
The set of flags associated with this tag name. |
boolean |
isAmenityOrWay
Flag indicating whether the osmEnumType is for a OSM enumeration that can be translated into either a WayType or an AmenityType, depending on the specific value of the enumeration. |
OSMLayerEnum |
logicalEnum
The encoding enum value for keying the value of this tag in the YAAC compressed map data format. |
static short |
M_ALTERNATE
Specify that any value associated with this element should only be used for the specified YAAC attribute if a higher-priority type isn't specified. |
static short |
M_LOCALIZABLE
Specify that the value of this tag can be localized. |
static short |
M_NODE_ONLY
Specify that this tag applies to Nodes. |
static short |
M_RELATION_ONLY
Specify that this tag applies to Relations. |
static short |
M_WAY_ONLY
Specify that this tag applies to Ways. |
static short |
M_YES_NO_ONLY
This tag only has "yes" or "no" values. |
static short |
MASK_CLASS_SPECIFIC
Specify the set of flags that indicate a record-type specific tag. |
java.lang.Class<? extends java.lang.Enum> |
osmEnumType
The data type for the enumeration used for the value of this tag, or null if not an enumerated value or multiple possible types. |
Method Summary | |
---|---|
java.lang.Object |
decodeValue(java.lang.String value)
Translate the specified key's value to the appropriate data type. |
static void |
initValueMap()
Load the hashmap that translates string into enum value instances, including using aliases for the official enums. |
boolean |
supports(GenericTaggedNode obj)
Report whether this tag key applies to this class of GenericTaggedNode. |
static SupportedTagKeys |
value(java.lang.String name)
Get the SupportedTagKey enum corresponding to the specified name. |
static SupportedTagKeys |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SupportedTagKeys[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SupportedTagKeys highway
Highway
public static final SupportedTagKeys waterway
Waterway
public static final SupportedTagKeys railway
Railway
public static final SupportedTagKeys aeroway
Aeroway
public static final SupportedTagKeys power
Power
public static final SupportedTagKeys amenity
AmenityType
public static final SupportedTagKeys craft
AmenityType
public static final SupportedTagKeys office
AmenityType
public static final SupportedTagKeys shop
AmenityType
public static final SupportedTagKeys emergency
AmenityType
public static final SupportedTagKeys historic
AmenityType
public static final SupportedTagKeys boundary
Boundary
public static final SupportedTagKeys internet_access
public static final SupportedTagKeys area
public static final SupportedTagKeys building
public static final SupportedTagKeys subway
public static final SupportedTagKeys bridge
public static final SupportedTagKeys lit
public static final SupportedTagKeys tunnel
public static final SupportedTagKeys oneway
public static final SupportedTagKeys toll
public static final SupportedTagKeys name
public static final SupportedTagKeys name_en
public static final SupportedTagKeys ref
public static final SupportedTagKeys old_ref
public static final SupportedTagKeys border_type
BorderType
public static final SupportedTagKeys natural
Natural
public static final SupportedTagKeys man_made
Man_Made
public static final SupportedTagKeys landuse
LandUse
public static final SupportedTagKeys icao
public static final SupportedTagKeys leisure
Leisure
public static final SupportedTagKeys fixme
public static final SupportedTagKeys width
public static final SupportedTagKeys lanes
public static final SupportedTagKeys island
public static final SupportedTagKeys place
Place
public static final SupportedTagKeys layer
public static final SupportedTagKeys admin_level
boundary
or border_type
.
public static final SupportedTagKeys type
public static final SupportedTagKeys maxspeed
public static final SupportedTagKeys maxheight
public static final SupportedTagKeys maxweight
public static final SupportedTagKeys hazmat
public static final SupportedTagKeys religion
Religion
public static final SupportedTagKeys tourism
AmenityType
,
Tourism
Field Detail |
---|
public static final short M_LOCALIZABLE
public static final short M_WAY_ONLY
public static final short M_NODE_ONLY
public static final short M_YES_NO_ONLY
public static final short M_RELATION_ONLY
public static final short M_ALTERNATE
public static final short MASK_CLASS_SPECIFIC
public final short flags
M_LOCALIZABLE
,
M_NODE_ONLY
,
M_RELATION_ONLY
,
M_WAY_ONLY
,
M_YES_NO_ONLY
public final OSMLayerEnum logicalEnum
public final java.lang.Class<? extends java.lang.Enum> osmEnumType
public final boolean isAmenityOrWay
osmEnumType
,
WayType
,
AmenityType
,
AmenityOrWay
Method Detail |
---|
public static SupportedTagKeys[] values()
for (SupportedTagKeys c : SupportedTagKeys.values()) System.out.println(c);
public static SupportedTagKeys valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static void initValueMap()
public static SupportedTagKeys value(java.lang.String name)
name
- String name or alias of SupportedTagKey to find
public final boolean supports(GenericTaggedNode obj)
obj
- GenericTaggedNode to test
public java.lang.Object decodeValue(java.lang.String value)
value
- String attribute value from the XML file
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |