mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-28 08:31:17 -07:00
Starting etl for score (#141)
* starting etl for score * projection fix * projection flags
This commit is contained in:
parent
6f568b0e20
commit
244b3663d1
7 changed files with 385 additions and 7 deletions
|
@ -22,8 +22,6 @@ for file in os.listdir(geojson_path):
|
|||
if file.endswith(".json"):
|
||||
geojson_list += f"/home/data/census/geojson/{file} "
|
||||
|
||||
breakpoint()
|
||||
|
||||
if geojson_list == "":
|
||||
print("No GeoJson files found. Please run download_cbg.py first")
|
||||
|
||||
|
@ -35,7 +33,7 @@ else:
|
|||
cmd = (
|
||||
'docker run --rm -it -v "'
|
||||
+ pwd
|
||||
+ '"/:/home klokantech/tippecanoe tippecanoe -zg -o /home/data/tiles/block2010.mbtiles --drop-densest-as-needed --extend-zooms-if-still-dropping -l cbg2010 '
|
||||
+ '"/:/home klokantech/tippecanoe tippecanoe -s_srs EPSG:4269 -t_srs EPSG:4326 --drop-densest-as-needed -zg -o /home/data/tiles/block2010.mbtiles --drop-densest-as-needed --extend-zooms-if-still-dropping -l cbg2010 -s_srs EPSG:4269 -t_srs EPSG:4326 '
|
||||
+ geojson_list
|
||||
)
|
||||
print(cmd)
|
||||
|
@ -51,7 +49,7 @@ else:
|
|||
cmd = (
|
||||
'docker run --rm -it -v "'
|
||||
+ pwd
|
||||
+ '"/:/home klokantech/tippecanoe tippecanoe --no-tile-compression -zg -e /home/data/tiles/mvt /home/data/census/geojson/01.json '
|
||||
+ '"/:/home klokantech/tippecanoe tippecanoe --drop-densest-as-needed --no-tile-compression -zg -e /home/data/tiles/mvt '
|
||||
+ geojson_list
|
||||
)
|
||||
print(cmd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue