This project contains code for converting data from property appraiser's office into .shp files that contains market value and tax value for n number of years
####DATA PREP
- Copy the data into ./valuedata//
- Open sql folder and for each year of data, create a copy of the following files
createtables_XX.sql importdata_XX.sql createrollup_xx.sql
- In the files created in the step above, search and replace _ with the correct one.
- Open filelist.csv and remove all existing lines except header line
- Add the new text files in the following format
fullpath to the current filename, fullpath to the output csv, fileformat (10,35, 40), name of the table the data belongs to
TIP: We only care about files 10,35 and 40
6. Open setup.ps1
and add a line for cerate tables and importdata referencing the sql files that were created in step 2
TIP: look for the following runway markers in the scripts for indication on where to add the files
@@@@@@@@@@@@@@@@ ADD A LINE here @@@@@@@@@@@@@@@@
7. Open createrollups.ps1
and add a line for calling the createrollup sql script created in step 2
8. open ./parcelshape
folder and replace the shapefiles with the new ones. name it parcels.shp
, parcels.dbf
etc if it isnt named that
9. Delete parcels.sql
####RUNNING SCRIPTS
- Open powershell window
- Navigate to the scripts folder
- run the following
./setup.ps1
- If there is no new shp file to import, skip this step. Else once the above process exits, run the following
./shpFileSetup.ps1
- Once the above process exits, run the following
./createrollups.ps1
####EXPORTING SHAPE FILES
- Update the script as required in ExportShp.ps1
- Run the following
./exportshp.ps1
No you are not done.
open each of the .ps1 files you created and move the new lines inside the '$nuke'
context
- open
./parcelshape
folder and replace the shapefiles with the new ones. name itparcels.shp
,parcels.dbf
etc if it isnt named that - Delete
parcels.sql
- Open powershell window
- Navigate to the scripts folder
- run the following
./shpFileSetup.ps1
- Once the above process exits, run the following
./createrollups.ps1 -nuke 1