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_fieldsmodel_configConfiguration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
model_extraGet extra fields set during validation.
model_fieldsmodel_fields_setReturns the set of fields that have been explicitly set on this model instance.
namesupports_writingMethods
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.