Enum OverpassDownloadReader.OverpassOutputFormat

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      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
      OSM_JSON
      OSM JSON format (not GeoJson)
      OSM_XML
      Default output format: plain OSM XML
      PBF
      PBF, see https://josm.openstreetmap.de/ticket/14653
      POPUP
      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)  
    • Field Detail

      • directive

        private final 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 name
        java.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 the OverpassOutputFormat 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