Skip to content

Commit

Permalink
fix: update command_line_interface.ipynb example
Browse files Browse the repository at this point in the history
  • Loading branch information
RaczeQ authored May 21, 2024
1 parent be28e4d commit 1d7e0bf
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions examples/command_line_interface.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
},
"outputs": [],
"source": [
"! QuackOSM --geom-filter-geocode 'Monaco-Ville, Monaco' --silent --output files/geocode_example.geoparquet"
"! QuackOSM --geom-filter-geocode 'Monaco-Ville, Monaco' --silent --output files/geocode_example.parquet"
]
},
{
Expand All @@ -273,7 +273,7 @@
},
"outputs": [],
"source": [
"! QuackOSM --geom-filter-geojson '{\"type\":\"Feature\",\"geometry\":{\"coordinates\":[[[7.416,43.734],[7.416,43.731],[7.421,43.731],[7.421,43.734],[7.416,43.734]]],\"type\":\"Polygon\"}}' --silent --output files/geojson_example.geoparquet"
"! QuackOSM --geom-filter-geojson '{\"type\":\"Feature\",\"geometry\":{\"coordinates\":[[[7.416,43.734],[7.416,43.731],[7.421,43.731],[7.421,43.734],[7.416,43.734]]],\"type\":\"Polygon\"}}' --silent --output files/geojson_example.parquet"
]
},
{
Expand All @@ -293,7 +293,7 @@
},
"outputs": [],
"source": [
"! QuackOSM --geom-filter-index-geohash spv2bcs --silent --output files/geohash_example.geoparquet"
"! QuackOSM --geom-filter-index-geohash spv2bcs --silent --output files/geohash_example.parquet"
]
},
{
Expand All @@ -313,7 +313,7 @@
},
"outputs": [],
"source": [
"! QuackOSM --geom-filter-index-h3 893969a4037ffff --silent --output files/h3_example.geoparquet"
"! QuackOSM --geom-filter-index-h3 893969a4037ffff --silent --output files/h3_example.parquet"
]
},
{
Expand All @@ -333,7 +333,7 @@
},
"outputs": [],
"source": [
"! QuackOSM --geom-filter-index-s2 12cdc28dc --silent --output files/s2_example.geoparquet"
"! QuackOSM --geom-filter-index-s2 12cdc28dc --silent --output files/s2_example.parquet"
]
},
{
Expand All @@ -353,7 +353,7 @@
},
"outputs": [],
"source": [
"! QuackOSM --geom-filter-wkt 'POLYGON ((7.414 43.735, 7.414 43.732, 7.419 43.732, 7.419 43.735, 7.414 43.735))' --silent --output files/wkt_example.geoparquet"
"! QuackOSM --geom-filter-wkt 'POLYGON ((7.414 43.735, 7.414 43.732, 7.419 43.732, 7.419 43.735, 7.414 43.735))' --silent --output files/wkt_example.parquet"
]
},
{
Expand All @@ -375,7 +375,7 @@
"\n",
"for idx, (geometry_type, geometry) in enumerate(zip(geometry_types, geometries)):\n",
" ax = axs[idx // 3, idx % 3]\n",
" gdf = gpd.read_parquet(f\"files/{geometry_type.lower()}_example.geoparquet\")\n",
" gdf = gpd.read_parquet(f\"files/{geometry_type.lower()}_example.parquet\")\n",
" gdf.plot(ax=ax, markersize=1, zorder=1, alpha=0.8)\n",
" gdf.boundary.plot(ax=ax, markersize=0, zorder=1, alpha=0.8)\n",
" gpd.GeoSeries([geometry], crs=4326).plot(\n",
Expand Down Expand Up @@ -496,7 +496,7 @@
},
"outputs": [],
"source": [
"! QuackOSM andorra.osm.pbf --osm-tags-filter '{ \"amenity\": \"parking\", \"building\": \"office\" }' --explode --output files/andorra_filtered_exploded.geoparquet --silent"
"! QuackOSM andorra.osm.pbf --osm-tags-filter '{ \"amenity\": \"parking\", \"building\": \"office\" }' --explode --output files/andorra_filtered_exploded.parquet --silent"
]
},
{
Expand All @@ -509,7 +509,7 @@
},
"outputs": [],
"source": [
"! ./duckdb :memory: \"FROM read_parquet('files/andorra_filtered_exploded.geoparquet')\""
"! ./duckdb :memory: \"FROM read_parquet('files/andorra_filtered_exploded.parquet')\""
]
},
{
Expand All @@ -529,7 +529,7 @@
},
"outputs": [],
"source": [
"! QuackOSM andorra.osm.pbf --osm-tags-filter '{ \"amenity\": \"parking\", \"building\": \"office\" }' --compact --output files/andorra_filtered_compact.geoparquet --silent"
"! QuackOSM andorra.osm.pbf --osm-tags-filter '{ \"amenity\": \"parking\", \"building\": \"office\" }' --compact --output files/andorra_filtered_compact.parquet --silent"
]
},
{
Expand All @@ -542,7 +542,7 @@
},
"outputs": [],
"source": [
"! ./duckdb :memory: \"FROM read_parquet('files/andorra_filtered_compact.geoparquet')\""
"! ./duckdb :memory: \"FROM read_parquet('files/andorra_filtered_compact.parquet')\""
]
},
{
Expand Down

0 comments on commit 1d7e0bf

Please sign in to comment.