Scarc2014

240 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Scarc2014

  1. 1. FINDING VBA REPLACEMENTS ROBBIE ERVIN FLORENCE COUNTY GIS 19 SLIDES! 1
  2. 2. PRESENTATION OBJECTIVES 1. Discuss challenge of adjusting to changing technology in ArcGIS, particularly doing away with VBA and the programs that we had that were written in VBA 2. Demonstrate to people new to arcpy and Python, what it can accomplish 3. Possibly, show experienced arcpy users some new things that can be done with it 2
  3. 3. PROGRAM GOALS 1. Automate creation of maps and mailing labels for Planning Commission and Board of Zoning meetings to 1. allow non-GIS staff to create maps 2. Cut down on time-consuming redundant work 3. Cut down on errors from extra data entry 3
  4. 4. PROGRAM STEPS 1. User enter Meeting item into db, includes a link of the meeting to each of its items to each of its parcels involved 2. At command line prompt user enters meeting date 3. Python selects all of the items for that meeting 1. Creates a folder for the item 2. Creates a shapefile for the item parcel(s) 3. Buffers the parcel(s) and creates a buffer shapefile 4. Copies mxd’s for each of the maps needed for the item 5. Adds the parcel data source to Aerials, Zoning, Land Use, Vicinity, and the buffer shapefile to the Buffer mxd 6. Zooms to the parcel 7. Exports jpg of each of the maps to folder created 4. Loops through parcel owner names of parcel file and buffer file and updates a csv file 5. Opens Word document for mail merge which is linked to csv file 6. Improves the information from tax parcel data to make it look better on the labels 7. Creates labels for each item 4
  5. 5. TIME CONSUMING PROCESS 5
  6. 6. VBA IS NO MORE 6
  7. 7. DB FOR MAPS – SIDE BENEFITS 7
  8. 8. EASY TO SEARCH FOR ARCPY CODE 8
  9. 9. FREE IMPORTS IN ADDITION TO VAST FUNCTIONALITY OF BASIC PYTHON 9
  10. 10. SIMPLE COMMAND LINE INPUT GET MEETING DATA FROM SQL 10
  11. 11. Automate Folder Creation 11
  12. 12. Get Parcels ID for each Meeting Item Select Parcel From Parcel Map Layer 12
  13. 13. Buffer each Parcel in Item and add to Layer to be used in Generating Mailing Labels for surrounding owners 13
  14. 14. Cleaning up strings to make the Mailing Labels look better Writing the parcel data to a csv file to be used in the mailing labels and as a record of parcel owners 14
  15. 15. Using MSWord to do a mail merge 15
  16. 16. Pointing the data source of the layer Zooming to the extent of the layer 16
  17. 17. Manipulating elements on your layout Easy to export layout to a pdf A multi-page pdf docment A jpg 17
  18. 18. Text Automated by Process 18
  19. 19. Label sheet ready for printing with data cleaned up by Python Label data straight From Parcel attributes 19

×