Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
bdon committed May 30, 2024
1 parent 2a26d0e commit 35c7440
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
1. Copy the Overture Parquet dataset to your local machine to `overture` dir:
[Use these docs](https://github.com/OvertureMaps/data/blob/main/README.md#how-to-access-overture-maps-data). You don't need Microsoft Synapse or AWS Athena.
2. Install DuckDB and run this script:
```sql
LOAD spatial;

COPY ( SELECT
json_extract_string(names, '$.common[0].value') as name,
json_extract_string(categories, '$.main') as category_main,
round(confidence,2) as confidence,
st_geomfromwkb(geometry)
from read_parquet('overture/theme=places/type=place/*')) TO 'places.geojsonseq' WITH (FORMAT gdal, DRIVER 'geojsonseq');
```
3. Feed the `geojsonseq` into [felt/tippecanoe](https://github.com/felt/tippecanoe):

```sh
tippecanoe -o overture-pois.pmtiles places.geojsonseq --force --read-parallel -j '{ "*": [ "attribute-filter", "name", [ ">=", "$zoom", 9 ] ] }' -l pois -rg --drop-densest-as-needed
```

Bob's your uncle!
2. Install DuckDB and [felt/tippecanoe](https://github.com/felt/tippecanoe)
3. Run [places.sh places.pmtiles](scripts/2024-05-16-beta.0/places.sh) replacing `read_parquet(...)` with the path to your Overture copy. This streams GeoParquet into tippecanoe without any intermediate file.

0 comments on commit 35c7440

Please sign in to comment.