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 CSVCSV, see https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Output_Format_.28out.29CUSTOMCustom, see https://overpass-api.de/output_formats.html#customOSM_JSONOSM JSON format (not GeoJson)OSM_XMLDefault output format: plain OSM XMLPBFPBF, see https://josm.openstreetmap.de/ticket/14653POPUPPopup, see https://overpass-api.de/output_formats.html#popup
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringdirective
-
Constructor Summary
Constructors Modifier Constructor Description privateOverpassOutputFormat(java.lang.String directive)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static OverpassDownloadReader.OverpassOutputFormatfrom(java.lang.String directive)Returns theOverpassOutputFormatmatching the given directive.java.lang.StringgetDirective()Returns the directive used in[out:<directive>]statement.static OverpassDownloadReader.OverpassOutputFormatvalueOf(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 theOverpassOutputFormatmatching the given directive.- Parameters:
directive- directive used in[out:<directive>]statement- Returns:
OverpassOutputFormatmatching the given directive- Throws:
java.lang.IllegalArgumentException- in case of invalid directive
-
-