# Path: mapchete/formats/default/_fiona_base.py
# class OutputDataReader(base.TileDirectoryOutputReader):
# class OutputDataWriter(base.TileDirectoryOutputWriter, OutputDataReader):
# class InputTile(base.InputTile):
#     def read(self, output_tile, **kwargs):
#     def is_valid_with_config(self, config):
#     def empty(self, process_tile=None):
#     def for_web(self, data):
#     def open(self, tile, process):
#     def write(self, process_tile, data):
#     def __init__(self, tile, process):
#     def read(self, validity_check=True, no_neighbors=False, **kwargs):
#     def is_empty(self, validity_check=True):
#     def _from_cache(self, validity_check=True):
#     def __enter__(self):
#     def __exit__(self, t, v, tb):


from mapchete.formats.default import _fiona_base
"""
Handles writing process output into a pyramid of GeoJSON files.

This output format is restricted to the geodetic (WGS84) projection because it
is the only projection the GeoJSON spec supports.

output configuration parameters
-------------------------------

output type has to be ``geodetic``

mandatory
~~~~~~~~~

path: string
    output directory
schema: key-value pairs
    the schema is passed on to fiona
    - properties: key-value pairs (fields and field types, like "id: int" etc.)
    - geometry: output geometry type (Geometry, Point, MultiPoint, Line, MultiLine,
    Polygon, MultiPolygon)
"""


METADATA = {"driver_name": "GeoJSON", "data_type": "vector", "mode": "rw"}



# Path: mapchete/formats/default/_fiona_base.py
# class OutputDataReader(base.TileDirectoryOutputReader):
# class OutputDataWriter(base.TileDirectoryOutputWriter, OutputDataReader):
# class InputTile(base.InputTile):
#     def read(self, output_tile, **kwargs):
#     def is_valid_with_config(self, config):
#     def empty(self, process_tile=None):
#     def for_web(self, data):
#     def open(self, tile, process):
#     def write(self, process_tile, data):
#     def __init__(self, tile, process):
#     def read(self, validity_check=True, no_neighbors=False, **kwargs):
#     def is_empty(self, validity_check=True):
#     def _from_cache(self, validity_check=True):
#     def __enter__(self):
#     def __exit__(self, t, v, tb):


# Path: mapchete/formats/default/geojson.py
from mapchete.formats.default import _fiona_base

"""
Handles writing process output into a pyramid of GeoJSON files.

This output format is restricted to the geodetic (WGS84) projection because it
is the only projection the GeoJSON spec supports.

output configuration parameters
-------------------------------

output type has to be ``geodetic``

mandatory
~~~~~~~~~

path: string
    output directory
schema: key-value pairs
    the schema is passed on to fiona
    - properties: key-value pairs (fields and field types, like "id: int" etc.)
    - geometry: output geometry type (Geometry, Point, MultiPoint, Line, MultiLine,
    Polygon, MultiPolygon)
"""


METADATA = {"driver_name": "GeoJSON", "data_type": "vector", "mode": "rw"}



class OutputDataReader(_fiona_base.OutputDataReader):