diff --git a/quackosm/functions.py b/quackosm/functions.py index 9b4c72e..b2413b6 100644 --- a/quackosm/functions.py +++ b/quackosm/functions.py @@ -937,6 +937,7 @@ def convert_geometry_to_geodataframe( filter_osm_ids=filter_osm_ids, ) + def convert_osm_extract_to_geodataframe( osm_extract_query: str, osm_extract_source: Union[OsmExtractSource, str] = OsmExtractSource.any, @@ -1018,19 +1019,19 @@ def convert_osm_extract_to_geodataframe( ... "monaco", osm_extract_source="geofabrik" ... ) # doctest: +IGNORE_RESULT >>> gdf.sort_index() - tags geometry + tags geometry feature_id - node/10005045289 {'shop': 'bakery'} POINT (7.42245 43.73105) - node/10020887517 {'leisure': 'swimming_pool', ... POINT (7.41316 43.73384) - node/10021298117 {'leisure': 'swimming_pool', ... POINT (7.42777 43.74277) - node/10021298717 {'leisure': 'swimming_pool', ... POINT (7.42630 43.74097) - node/10025656383 {'ferry': 'yes', 'name': 'Qua... POINT (7.42550 43.73690) - ... ... ... - way/990669427 {'amenity': 'shelter', 'shelt... POLYGON ((7.41461 43.7338... - way/990669428 {'highway': 'secondary', 'jun... LINESTRING (7.41366 43.73... - way/990669429 {'highway': 'secondary', 'jun... LINESTRING (7.41376 43.73... - way/990848785 {'addr:city': 'Monaco', 'addr... POLYGON ((7.41426 43.7339... - way/993121275 {'building': 'yes', 'name': ... POLYGON ((7.43214 43.7481... + node/10005045289 {'shop': 'bakery'} POINT (7.42245 43.73105) + node/10020887517 {'leisure': 'swimming_pool', 's... POINT (7.41316 43.73384) + node/10021298117 {'leisure': 'swimming_pool', 's... POINT (7.42777 43.74277) + node/10021298717 {'leisure': 'swimming_pool', 's... POINT (7.4263 43.74097) + node/10025656383 {'ferry': 'yes', 'name': 'Quai ... POINT (7.4255 43.7369) + ... ... ... + way/990669427 {'amenity': 'shelter', 'shelter... POLYGON ((7.41461 43.73388, 7.4... + way/990669428 {'highway': 'secondary', 'junct... LINESTRING (7.41366 43.73344, 7... + way/990669429 {'highway': 'secondary', 'junct... LINESTRING (7.41376 43.73343, 7... + way/990848785 {'addr:city': 'Monaco', 'addr:h... POLYGON ((7.41426 43.73396, 7.4... + way/993121275 {'building': 'yes', 'name': 'Re... POLYGON ((7.43214 43.74813, 7.4... [7906 rows x 2 columns] @@ -1040,19 +1041,19 @@ def convert_osm_extract_to_geodataframe( ... "geofabrik_europe_monaco" ... ) # doctest: +IGNORE_RESULT >>> gdf.sort_index() - tags geometry + tags geometry feature_id - node/10005045289 {'shop': 'bakery'} POINT (7.42245 43.73105) - node/10020887517 {'leisure': 'swimming_pool', ... POINT (7.41316 43.73384) - node/10021298117 {'leisure': 'swimming_pool', ... POINT (7.42777 43.74277) - node/10021298717 {'leisure': 'swimming_pool', ... POINT (7.42630 43.74097) - node/10025656383 {'ferry': 'yes', 'name': 'Qua... POINT (7.42550 43.73690) - ... ... ... - way/990669427 {'amenity': 'shelter', 'shelt... POLYGON ((7.41461 43.7338... - way/990669428 {'highway': 'secondary', 'jun... LINESTRING (7.41366 43.73... - way/990669429 {'highway': 'secondary', 'jun... LINESTRING (7.41376 43.73... - way/990848785 {'addr:city': 'Monaco', 'addr... POLYGON ((7.41426 43.7339... - way/993121275 {'building': 'yes', 'name': ... POLYGON ((7.43214 43.7481... + node/10005045289 {'shop': 'bakery'} POINT (7.42245 43.73105) + node/10020887517 {'leisure': 'swimming_pool', 's... POINT (7.41316 43.73384) + node/10021298117 {'leisure': 'swimming_pool', 's... POINT (7.42777 43.74277) + node/10021298717 {'leisure': 'swimming_pool', 's... POINT (7.4263 43.74097) + node/10025656383 {'ferry': 'yes', 'name': 'Quai ... POINT (7.4255 43.7369) + ... ... ... + way/990669427 {'amenity': 'shelter', 'shelter... POLYGON ((7.41461 43.73388, 7.4... + way/990669428 {'highway': 'secondary', 'junct... LINESTRING (7.41366 43.73344, 7... + way/990669429 {'highway': 'secondary', 'junct... LINESTRING (7.41376 43.73343, 7... + way/990848785 {'addr:city': 'Monaco', 'addr:h... POLYGON ((7.41426 43.73396, 7.4... + way/993121275 {'building': 'yes', 'name': 'Re... POLYGON ((7.43214 43.74813, 7.4... [7906 rows x 2 columns] """