Skip to content

Commit

Permalink
chore: change doctests outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
RaczeQ committed Jul 30, 2024
1 parent 6bc5057 commit 08e351a
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions quackosm/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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...
<BLANKLINE>
[7906 rows x 2 columns]
Expand All @@ -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...
<BLANKLINE>
[7906 rows x 2 columns]
"""
Expand Down

0 comments on commit 08e351a

Please sign in to comment.