Package org.openstreetmap.josm.io
Enum Class OverpassDownloadReader.OverpassOutputFormat
java.lang.Object
java.lang.Enum<OverpassDownloadReader.OverpassOutputFormat>
org.openstreetmap.josm.io.OverpassDownloadReader.OverpassOutputFormat
- All Implemented Interfaces:
Serializable,Comparable<OverpassDownloadReader.OverpassOutputFormat>,Constable
- Enclosing class:
- OverpassDownloadReader
public static enum OverpassDownloadReader.OverpassOutputFormat
extends Enum<OverpassDownloadReader.OverpassOutputFormat>
Possible Overpass API output format, with the
[out:<directive>] statement.- Since:
- 11916
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCSV, see https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Output_Format_.28out.29Custom, see https://overpass-api.de/output_formats.html#customOSM JSON format (not GeoJson)Default output format: plain OSM XMLPBF, see https://josm.openstreetmap.de/ticket/14653Popup, see https://overpass-api.de/output_formats.html#popup -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static OverpassDownloadReader.OverpassOutputFormatReturns theOverpassOutputFormatmatching the given directive.Returns the directive used in[out:<directive>]statement.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OSM_XML
Default output format: plain OSM XML -
OSM_JSON
OSM JSON format (not GeoJson) -
CSV
CSV, see https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Output_Format_.28out.29 -
CUSTOM
Custom, see https://overpass-api.de/output_formats.html#custom -
POPUP
Popup, see https://overpass-api.de/output_formats.html#popup -
PBF
PBF, see https://josm.openstreetmap.de/ticket/14653
-
-
Field Details
-
directive
-
-
Constructor Details
-
OverpassOutputFormat
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getDirective
Returns the directive used in[out:<directive>]statement.- Returns:
- the directive used in
[out:<directive>]statement
-
from
Returns theOverpassOutputFormatmatching the given directive.- Parameters:
directive- directive used in[out:<directive>]statement- Returns:
OverpassOutputFormatmatching the given directive- Throws:
IllegalArgumentException- in case of invalid directive
-