Package org.openstreetmap.josm.io
Enum OverpassDownloadReader.OverpassOutputFormat
- java.lang.Object
-
- java.lang.Enum<OverpassDownloadReader.OverpassOutputFormat>
-
- org.openstreetmap.josm.io.OverpassDownloadReader.OverpassOutputFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OverpassDownloadReader.OverpassOutputFormat>
- Enclosing class:
- OverpassDownloadReader
public static enum OverpassDownloadReader.OverpassOutputFormat extends java.lang.Enum<OverpassDownloadReader.OverpassOutputFormat>
Possible Overpass API output format, with the[out:<directive>]
statement.- Since:
- 11916
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CSV
CSV, see https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Output_Format_.28out.29CUSTOM
Custom, see https://overpass-api.de/output_formats.html#customOSM_JSON
OSM JSON format (not GeoJson)OSM_XML
Default output format: plain OSM XMLPBF
PBF, see https://josm.openstreetmap.de/ticket/14653POPUP
Popup, see https://overpass-api.de/output_formats.html#popup
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
directive
-
Constructor Summary
Constructors Modifier Constructor Description private
OverpassOutputFormat(java.lang.String directive)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static OverpassDownloadReader.OverpassOutputFormat
from(java.lang.String directive)
Returns theOverpassOutputFormat
matching the given directive.java.lang.String
getDirective()
Returns the directive used in[out:<directive>]
statement.static OverpassDownloadReader.OverpassOutputFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OverpassDownloadReader.OverpassOutputFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OSM_XML
public static final OverpassDownloadReader.OverpassOutputFormat OSM_XML
Default output format: plain OSM XML
-
OSM_JSON
public static final OverpassDownloadReader.OverpassOutputFormat OSM_JSON
OSM JSON format (not GeoJson)
-
CSV
public static final OverpassDownloadReader.OverpassOutputFormat CSV
CSV, see https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Output_Format_.28out.29
-
CUSTOM
public static final OverpassDownloadReader.OverpassOutputFormat CUSTOM
Custom, see https://overpass-api.de/output_formats.html#custom
-
POPUP
public static final OverpassDownloadReader.OverpassOutputFormat POPUP
Popup, see https://overpass-api.de/output_formats.html#popup
-
PBF
public static final OverpassDownloadReader.OverpassOutputFormat PBF
PBF, see https://josm.openstreetmap.de/ticket/14653
-
-
Field Detail
-
directive
private final java.lang.String directive
-
-
Constructor Detail
-
OverpassOutputFormat
private OverpassOutputFormat(java.lang.String directive)
-
-
Method Detail
-
values
public static OverpassDownloadReader.OverpassOutputFormat[] 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 (OverpassDownloadReader.OverpassOutputFormat c : OverpassDownloadReader.OverpassOutputFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OverpassDownloadReader.OverpassOutputFormat valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getDirective
public java.lang.String getDirective()
Returns the directive used in[out:<directive>]
statement.- Returns:
- the directive used in
[out:<directive>]
statement
-
from
static OverpassDownloadReader.OverpassOutputFormat from(java.lang.String directive)
Returns theOverpassOutputFormat
matching the given directive.- Parameters:
directive
- directive used in[out:<directive>]
statement- Returns:
OverpassOutputFormat
matching the given directive- Throws:
java.lang.IllegalArgumentException
- in case of invalid directive
-
-