Final Project Geog 375 Daniel Hewitt.

Slides:



Advertisements
Similar presentations
Restaurant Database Food across California Rebecca Flores GEOG 375.
Advertisements

Module 17 Tracing Access to SQL Server 2008 R2. Module Overview Capturing Activity using SQL Server Profiler Improving Performance with the Database Engine.
Moving Data Lesson 23. Skills Matrix Moving Data When populating tables by inserting data, you will discover that data can come from various sources.
 Workflow that manages concurrent multiuser editors on a single ArcSDE data source  Versions represent states or views of the geodatabase  Edits.
Chapter 8 Embedded SQL.
Taking Core Products a Step Further USG Software and Customized Applications.
ModelBuilder In ArcGIS 9.x By Tim Weigel GEOG 407/607 April 3 rd, 2006.
A Guide to SQL, Seventh Edition. Objectives Embed SQL commands in PL/SQL programs Retrieve single rows using embedded SQL Update a table using embedded.
Querying an Avian Inventory Database and Visualizing the Results GEORGE WASHINGTON BIRTHPLACE NATIONAL MONUMENT NATIONAL PARK SERVICE NR 595D Final Project.
Module 13 Automating SQL Server 2008 R2 Management.
Advance Model Builder Features. Advance Features Using Lists (also Batching) Iteration Feedback Model Only Tools Inline Variable Substitution Preconditions.
Module 12 Installing and Upgrading to SharePoint 2010.
╬Cory Vardaman Project Manager ╬Joe Clark Assistant Manager ╬Lisa Albanese GIS Technician, Web Master ╬Ethan Roberts GIS Analyst, Graphics Design.
Working with cursors in Python GISDE Python Workshop Qiao Li.
Database testing Prepared by Saurabh sinha. Database testing mainly focus on: Data integrity test Data integrity test Stored procedures test Stored procedures.
╬Cory Vardaman Project Manager ╬Joe Clark Assistant Manager ╬Lisa Albanese GIS Technician, Web Master ╬Ethan Roberts GIS Analyst, Graphics Design.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
18 Copyright © Oracle Corporation, All rights reserved. Workshop.
Siebel 8.0 Module 5: EIM Processing Integrating Siebel Applications.
Get your hands dirty cleaning data European EMu Users Meeting, 3rd June. - Elizabeth Bruton, Museum of the History of Science, Oxford
Microsoft Access Database Software.
LAT HSK Data Handling from B33 Cleanroom. ISOC Software Architecture.
Geog 375 Miguel Garcia May 16, Purpose The slowed rate of connectivity in the field for the CCTV inspection crews while using the city’s WiFi has.
WgScheduler Generic Task Scheduling Application. What Does It Do  Automates any task that may be scripted using VBScript  Triggers task execution (or.
Introduction of Geoprocessing Lecture 9. Geoprocessing  Geoprocessing is any GIS operation used to manipulate data. A typical geoprocessing operation.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Juanita Cano City of Sacramento Spring 2014 Geography 375.
Producing a Mail Merged Letter Step 1 Create an Access database for Names and Addresses you can use the ‘Customers’ template in Group Work. Enter the necessary.
GEO375 Final Project: From Txt to Geocoded Data. Goal My Final project is to automate the process of separating, geocoding and processing 911 data for.
SQL LOADER. SQL*Loader (sqlldr ) is the utility to use for high performance data loads. The data can be loaded from any text file and inserted into the.
Batch Jobs Using the batch job functions. Use [Bulk Changes][Batch Job Utility] to start. Read the information panel. Check with TAMS Technical Support.
Introduction to Geographic Information Systems Fall 2013 (INF 385T-28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin.
Maintenance Practices. Goal  Automate the necessary DBA chores to put organizations on the path of having healthier, consistent and more trustworthy.
William Perry U.S. Geological Survey Western Ecological Research Center Geography 375 Final Project May 22, 2013.
Basic Navigation in Oracle R12 BY: Muhammad Irfan.
Differential Leveling Conversion and Analysis Toolset Lisa Berry University of Redlands, MS GIS Program.
Outline of Script Import Modules Setup Workspace Environment and Assign Data Path Variables Summary of Script Title and Author Info.
Introduction to GIS Programming Final Project Submitted by Todd Lenkin Geography 375 Spring of 2011 American River College.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
1 Database Systems Introduction to Microsoft Access Part 1.
Managing, Storing, and Executing DTS Packages
IUIE Reporting Basics Workshop
XINFO – How to use XINFO in Development
A Guide to SQL, Seventh Edition
Improving Georeferencing Workflow with Python
Existing Perl/Oracle Pipeline
Attribute Extraction.
GLAST Release Manager Automated code compilation via the Release Manager Navid Golpayegani, GSFC/SSAI Overview The Release Manager is a program responsible.
Tan Hoang GEOG 362 – Final Project
Final Project: Read from a csv file and write to a database table
Attribute Extraction.
DOWNTOWN RESTAURANTS AND CRIME RELATIONSHIPS
Keyboard Input and Screen Display ––––––––––– Interactive Programming
Workflow Best Practices
Spatial Data Processing
Chapter Four UNIX File Processing.
Good Testing Practices
GIS Lecture: Geoprocessing
Reports and Forms Second Term,
Required queries FdSc inICT Module 107.
ITAS Risk Reporting Integration to an ERP
The Use of Looping Code in Map Production
Virginia Lenvik Geography 375 Spring 2013
Midwest-bound A Site Suitability Analysis of South Bend, Indiana for Relocation by Joi Misenti Geog 375--Spring 2016.
Improving workflow at CNDDB
Zoning Map Modernization with GIS
Ideal Parcels Locator Script
Geog 375 Individual Final Programming Project: Automated Thematic Maps
Presentation transcript:

Final Project Geog 375 Daniel Hewitt

Project Summary This script was designed to extract, at regular intervals, the newest records from a Police record management system, geocode and insert them into a production GIS police incident layer. Developing this script automates a process that without Python would be too time consuming to be practical. Python is especially useful in that the script is ran at regular intervals, in this case hourly, and then only processes those records from the last hour and inserts them into the production feature class. There were some challenges that were encountered in developing the script at all phases. These challenges included using time as a query variable, geocoding the raw data and creating the batch and task scheduler jobs.

Project Steps Select new records in the police SQL database from the last hour, this would be based on current time compared to a time stamp field in the table. The script then geocodes the selected records using a geocoder in our SDE database. Next, a spatial join is preformed to update a Reporting District field. An append would be used to then write the geocoded records to the production GIS layer. A log file is written to for auditing and troubleshooting should any issues arise and to provide a list of records that did not meet the geocoding standards. Lastly, the script is ran as a batch process and scheduled task that is to be ran at an hourly interval.

Workflow

Import modules & set variables All necessary Python modules are imported Variables are created providing a path to all necessary input and output data locations

Create log variables Log is written to at various phases of the script All print functions are mirrored in both Python Shell and in the log

Create table views & feature layers Table views and feature layers that are referenced are defined in this section of the script

Set time variables & query The time variables and query are established The first section is just for verification and printing to the log and Shell, the second section is the query

Select records using time variable A search cursor is run to write values to the Shell and log, then the selection set is made

Geocode records Geocode process is ran creating an interim feature class Job status information is printed and recorded in log

Spatial Join Spatial join is preformed in order to populate the Reporting Districts attribute field

Append & Summary Append is preformed and a final summary is sent to the log and Shell

Log & Shell Print Output

Batch & Schedule Batch file is created that executes the Python script Scheduled job is ran using Windows Task scheduler that executes batch file.