diff --git a/examples/command_line_interface.ipynb b/examples/command_line_interface.ipynb index ca4ab53..67ece1f 100644 --- a/examples/command_line_interface.ipynb +++ b/examples/command_line_interface.ipynb @@ -230,6 +230,13 @@ "During first execution, QuackOSM will cache three PBF files sources locally. This operation takes some time." ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Geocoding" + ] + }, { "cell_type": "code", "execution_count": null, @@ -243,6 +250,13 @@ "! QuackOSM --geom-filter-geocode 'Monaco-Ville, Monaco'" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### GeoJSON" + ] + }, { "cell_type": "code", "execution_count": null, @@ -256,6 +270,13 @@ "! 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\"}}'" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Geohash" + ] + }, { "cell_type": "code", "execution_count": null, @@ -269,6 +290,13 @@ "! QuackOSM --geom-filter-index-geohash spv2bcs" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### H3" + ] + }, { "cell_type": "code", "execution_count": null, @@ -282,6 +310,13 @@ "! QuackOSM --geom-filter-index-h3 893969a4037ffff" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### S2" + ] + }, { "cell_type": "code", "execution_count": null, @@ -295,6 +330,13 @@ "! QuackOSM --geom-filter-index-s2 12cdc28d" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### WKT" + ] + }, { "cell_type": "code", "execution_count": null, @@ -396,6 +438,13 @@ "- `--compact-tags` (or `--compact`): will always keep tags together as a single column." ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Separated tags (`explode`)" + ] + }, { "cell_type": "code", "execution_count": null, @@ -419,14 +468,14 @@ }, "outputs": [], "source": [ - "! QuackOSM andorra.osm.pbf --osm-tags-filter '{ \"amenity\": \"parking\", \"building\": \"office\" }' --compact --output files/andorra_filtered_compact.geoparquet" + "! ./duckdb :memory: \"FROM read_parquet('files/andorra_filtered_exploded.geoparquet')\"" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ - "Let's see the difference in the files structure." + "### Compact tags (`compact`)" ] }, { @@ -439,7 +488,7 @@ }, "outputs": [], "source": [ - "! ./duckdb :memory: \"FROM read_parquet('files/andorra_filtered_exploded.geoparquet')\"" + "! QuackOSM andorra.osm.pbf --osm-tags-filter '{ \"amenity\": \"parking\", \"building\": \"office\" }' --compact --output files/andorra_filtered_compact.geoparquet" ] }, { @@ -509,7 +558,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.7" + "version": "3.10.12" } }, "nbformat": 4,