hydromt_fiat.drivers.OSMDriver#

class hydromt_fiat.drivers.OSMDriver(*, filesystem: ~typing.Annotated[~fsspec.spec.AbstractFileSystem, ~pydantic.functional_validators.PlainValidator(func=~hydromt._typing.fsspec_types.validate_filesystem, json_schema_input_type=~typing.Any), ~pydantic.functional_serializers.PlainSerializer(func=~hydromt._typing.fsspec_types.serialize_filesystem, return_type=PydanticUndefined, when_used=always)] = <factory>, options: ~typing.Dict[str, ~typing.Any] = <factory>)[source]#

Driver to read OSM data with the OSMnx API.

Attributes

model_computed_fields

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_extra

Get extra fields set during validation.

model_fields

model_fields_set

Returns the set of fields that have been explicitly set on this model instance.

name

supports_writing

Methods

get_osm_data(polygon, tag, geom_type)

Retrieve OSM data with the OSMnx api.

read(uris, mask, *[, tags, geom_type])

Read OSM data with the OSMnx API.

write(path, gdf, **kwargs)

Write OSMNx data to file.