Automatically loading permit application data into Scott
How to use
Parse a listing, and upload it.
listing [listing file]
Parse a public notice; convert it to text and then read the text.
# Convert to text translate [public notice file] # Parse and upload public_notice [public notice file].txt
Take a picture of the first page of the public notice and the second page of the drawings. XXX: We're not doing this anymore because it doesn't always work.
convert -geometry 1200 public_notice.pdf public_notice.jpg convert -geometry 1200 drawings.pdf drawings.jpg
Run everything, including the download from the Army corps and the upload to the data hub site.
Batch loading data from raw files (Deprecated after March 7, 2013)
All source files are saved, so you can rebuild the database from them.
. activate batch_listings batch_public_notices
The source files were previously downloaded, and they have been named in the new format, which isn't that different from the old one. These batch scripts were useful for loading those data.
Batch loading data from history
In order to avoid adding extra records to the history, the
script should be replaced somewhat with a history loader.