$schema: https://json-schema.org/draft/2020-12/schema
title: water
description: Physical representations of inland and ocean marine surfaces. Translates
  `natural` and `waterway` tags from OpenStreetMap.
type: object
properties:
  id:
    $ref: https://ogcincubator.github.io/bblocks-overturemaps/build/annotated/overturemaps/schemas/definitions/schema.yaml#/$defs/propertyDefinitions/id
  geometry:
    unevaluatedProperties: false
    oneOf:
    - $ref: https://geojson.org/schema/Point.json
    - $ref: https://geojson.org/schema/LineString.json
    - $ref: https://geojson.org/schema/Polygon.json
    - $ref: https://geojson.org/schema/MultiPolygon.json
  properties:
    unevaluatedProperties: false
    allOf:
    - $ref: https://ogcincubator.github.io/bblocks-overturemaps/build/annotated/overturemaps/schemas/definitions/schema.yaml#/$defs/propertyContainers/overtureFeaturePropertiesContainer
    - $ref: https://ogcincubator.github.io/bblocks-overturemaps/build/annotated/overturemaps/schemas/definitions/schema.yaml#/$defs/propertyContainers/levelContainer
    - $ref: https://ogcincubator.github.io/bblocks-overturemaps/build/annotated/overturemaps/schemas/definitions/schema.yaml#/$defs/propertyContainers/namesContainer
    - $ref: https://ogcincubator.github.io/bblocks-overturemaps/build/annotated/overturemaps/schemas/base/definitions/schema.yaml#/$defs/propertyContainers/osmPropertiesContainer
    required:
    - theme
    - type
    - subtype
    - class
    properties:
      theme:
        const: base
      type:
        const: water
      subtype:
        description: The type of water body such as an river, ocean or lake.
        default:
        - water
        type: string
        enum:
        - canal
        - human_made
        - lake
        - ocean
        - physical
        - pond
        - reservoir
        - river
        - spring
        - stream
        - wastewater
        - water
      class:
        description: Further description of the type of water
        default:
        - water
        type: string
        enum:
        - basin
        - bay
        - blowhole
        - canal
        - cape
        - ditch
        - dock
        - drain
        - fairway
        - fish_pass
        - fishpond
        - geyser
        - hot_spring
        - lagoon
        - lake
        - moat
        - ocean
        - oxbow
        - pond
        - reflecting_pool
        - reservoir
        - river
        - salt_pond
        - sea
        - sewage
        - shoal
        - spring
        - strait
        - stream
        - swimming_pool
        - tidal_channel
        - wastewater
        - water
        - water_storage
        - waterfall
      is_salt:
        description: Is it salt water or not
        type: boolean
      is_intermittent:
        description: Is it intermittent water or not
        type: boolean
