Skip to content

Commit

Permalink
Merge pull request CodeForPhilly#955 from CodeForPhilly/lebovits/upda…
Browse files Browse the repository at this point in the history
…te-docs

update docs to reflect conversion from pmtiles to geojson
  • Loading branch information
nlebovits authored Oct 17, 2024
2 parents c13fec8 + 2781fd2 commit cb31eb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/SETUP/BACK_END.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ GOOGLE_CLOUD_BUCKET_NAME=your-bucket-name-here

The python script loads the tiles to Google Cloud as `vacant_properties_tiles_staging.pmtiles`. You can check this tileset by changing the config setting on the frontend `useStagingTiles` to `true`. If the tiles look OK, manually change the name in Google Cloud to remove the `_staging` and archive the previous copy.

##### Converting PMTiles to Vector Data

Pmtiles stored in the cloud or locally can be converted back to a vector dataset (e.g., GeoJson) by using [tippecanoe](https://github.com/mapbox/tippecanoe) in the terminal: `tippecanoe-decode -c vacant_properties_tiles.pmtiles > vacant_properties_tiles.geojson`. (Note that this can likely be done in the Docker container to avoid installing a local copy of tippecanoe, but we haven't explored this yet.)

#### Google Streetview

To update streetview images, after running the full data script run:
Expand Down

0 comments on commit cb31eb2

Please sign in to comment.