Enum GeometryTypes
- java.lang.Object
-
- java.lang.Enum<GeometryTypes>
-
- org.openstreetmap.josm.data.imagery.vectortile.mapbox.GeometryTypes
-
- All Implemented Interfaces:
Serializable
,Comparable<GeometryTypes>
public enum GeometryTypes extends Enum<GeometryTypes>
Geometry types used by Mapbox Vector Tiles- Since:
- 17862
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeometryTypes.Ring
Rings used byPOLYGON
-
Enum Constant Summary
Enum Constants Enum Constant Description LINESTRING
May be a line or a multiline geometry.POINT
May be a point or a multipoint geometry.POLYGON
May be a polygon or a multipolygon.UNKNOWN
May be ignored
-
Constructor Summary
Constructors Modifier Constructor Description private
GeometryTypes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeometryTypes
valueOf(String name)
Returns the enum constant of this type with the specified name.static GeometryTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final GeometryTypes UNKNOWN
May be ignored
-
POINT
public static final GeometryTypes POINT
May be a point or a multipoint geometry. Uses onlyCommand.MoveTo
. MultipleCommand.MoveTo
indicates that it is a multi-point object.
-
LINESTRING
public static final GeometryTypes LINESTRING
May be a line or a multiline geometry. Each lineCommand.MoveTo
and one or moreCommand.LineTo
.
-
POLYGON
public static final GeometryTypes POLYGON
May be a polygon or a multipolygon. Each ring uses aCommand.MoveTo
, one or moreCommand.LineTo
, and oneCommand.ClosePath
command. SeeGeometryTypes.Ring
s.
-
-
Constructor Detail
-
GeometryTypes
private GeometryTypes()
-
-
Method Detail
-
values
public static GeometryTypes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GeometryTypes c : GeometryTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeometryTypes valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-