-
Download the map sheets corresponding to the layer, using
mapwarperdownloader.py
. Each map will have aTIF
file named after itsid
(eg:21009.tif
) -
Group the sheets under a folder named after the
id
of the layer (eg:1148/21009.tif
) -
Calibrate the Map Vectorizer according to instructions in the README and save the parameters in a configuration file inside the sheet folder for safe keeping (eg:
1148/config-1148.txt
) -
Run the Map Vectorizer on the entire folder according to instructions:
./vectorize_map.py -p 1148/config-1148.txt 1148
-
Copy the resulting traced JSON output of each sheet to the Building Inspector
public/files/
folder:cp 1148/*/*.json /path/to/app/public/files
-
Run the
ingestor_config_builder.py
ingest configuration file creator on the sheets. IMPORTANT: Sometimes the original TIFFs contain weird bounding boxes that mess up the admin/progress views so make sure to test those and manually fix if necessary (you can tell by using the progress view to look for unevenly-placed markers):./ingestor_config_builder.py 1148
-
Add
year(s)
,description
,tileset_type
,tilejson
, andname
to the ingest configuration file -
Test the ingest process locally (
force=true
omitted from example to avoid copy/paste snafus):rake data_import:ingest_bulk id=1148
-
Commit and push the configuration and JSON files in the Building Inspector repository
-
Push the code to the staging server and run the ingest script (note
-a bistage
which specifies the staging instance):heroku run rake data_import:ingest_bulk id=1148 -a bistage
-
Test that everything works fine
-
Push the code to the production server and run the scripts
-
Profit!