For new datasets: Add the dataset's information as a new row in the recipes.csv
eg. dcp_mappluto
dstSRS | srcSRS | schema_name | version_name | geometryType | layerCreationOptions | metaInfo | path | srcOpenOptions | newFieldNames |
---|---|---|---|---|---|---|---|---|---|
EPSG:4326 | EPSG:2263 | dcp_mappluto | 18v2_1 | POLYGON | ['OVERWRITE=YES', 'PRECISION=NO'] | bytes | https://www1.nyc.gov/assets/planning/download/zip/data-maps/open-data/nyc_mappluto_18v2_1_shp.zip/MapPLUTO.shp | [] | [] |
-
curl --location --request POST 'https://api.github.com/repos/NYCPlanning/recipes/dispatches?Accept=application/vnd.github.v3+json&Content-Type=application/json' \ --header 'Authorization: Bearer {token goes here} \ --header 'Content-Type: text/plain' \ --data-raw '{"event_type" : "run", "client_payload": {"recipes": "recipe1 recipe2 recipe3"}}'
-
- Document in the log below
- Commit to master using [ztl]
-
- Intialize a docker container
docker run -itd\ --name=recipes\ -v `pwd`:/home/recipes\ -w /home/recipes\ --env-file .env\ nycplanning/cook:latest bash -c 'pip3 install -r requirements.txt; pip3 install -e .; bash'
- Load a dataset into recipe postgres database
docker exec recipes cook run <schema_name>
updating GIS zoning shapefiles and get ready for zoningtaxlots [ztl]
updating GIS zoning shapefiles and get ready for zoningtaxlots [ztl] The e-designation file has not been updated yet -- pending schema change
updating GIS zoning shapefiles and get ready for zoningtaxlots [ztl]
updating GIS zoning shapefiles and get ready for zoningtaxlots (DTM was not ready for update on 09/08) [ztl]
updating GIS zoning shapefiles and get ready for zoningtaxlots [ztl]
updating GIS zoning shapefiles and get ready for zoningtaxlots
reloading May address points data because of incorrect spatial transform
updating GIS zoning shapefiles and get ready for zoningtaxlots
updating GIS zoning shapefiles and get ready for zoningtaxlots
updating GIS zoning shapefiles and get ready for zoningtaxlots
pulling the latest dpr_capitalprojects
updating GIS zoning shapefiles and get ready for zoningtaxlots
Reloading GIS zoning shapefiles and get ready for zoningtaxlots