Automation Using Python for WVDOT GIS Data Management Yueming Wu, Ph.D., GISP GIS Manager May 9, 2012.

Slides:



Advertisements
Similar presentations
Mapping With Mobile Devices
Advertisements

New Release Announcements and Product Roadmap Chris DiPierro, Director of Software Development April 9-11, 2014
JTX Overview Overview of Job Tracking for ArcGIS (JTX)
Yueming Wu, Ph.D., GISP GIS Manager May 9, 2012 WVDOT GIS Strategic & Business Plan and Its Implementation.
-Roadway Inventory Data Processing and Maintenance -Roadway Statistics -Public Certified Mileage -Highway Performance Monitoring System -Centralized Roadway.
Geospatial Transportation Information Section Program Planning & Administration Division Division of Highways West Virginia Department of Transportation.
Esri UC 2014 | Technical Workshop | ArcGIS for Water Utilities: An Overview Howard Crothers Mike Miller.
Fulton County GIS Overview. Fulton County GIS  Division of Economic & Community Development  Heavy reliance on open- source software  Self-supported.
Digital Data and Modeling Repository ASFPM - May 22, 2012.
May 2014 Operations Planning Construction Design VISION Process 1.Receive design files from Projectwise -Create Maps to determine ownership and maintenance.
June 11, 2008West Virginia GIS Conference 2008 Integration of Mobile GIS Technologies in the West Virginia Department of Environmental Protection Bond.
Department of Environmental Protection DEP Enterprise GIS Portal One stop shop for Enterprise GIS data at DEP Latest version of Mapdirect Other web mapping.
SOFTWARE PRESENTATION ODMS (OPEN SOURCE DOCUMENT MANAGEMENT SYSTEM)
Esri UC 2014 | Technical Workshop | Automating Cache Workflows and Tile Usage Heat Maps Eric J. Rodenberg.
WisFIRS Wisconsin Forest Inventory & Reporting System
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Configuring ArcGIS.
WVDOT GTI SECTION Status Update for Districts. AGENDA Introduction. Introduction. Status Update. Status Update. How to Spatially Enable Database. How.
WVDOT Transportation Roadway Network and ERP Overview, Deployment, and Application In The District and Central Offices Hussein S. El Khansa Geospatial.
Prepared by: Jennifer McKee With support from: in partnership with: Introduction to ArcPad NSF DUE
Sharing Geographic Content
ETL for GIS - What's it all about? 2009 Ohio GIS Conference September 16-18, 2009 Crowne Plaza North Hotel Columbus, Ohio 2009 Ohio GIS Conference September.
WVDOT GTI SECTION Status Update for Miss Utility.
ArcGIS Workflow Manager An Introduction
National Park Service U.S. Department of the Interior Resource Information Management Division National Information Services Center Office of the Chief.
The West Virginia Trail Inventory Application Ryan Stanley, Graduate Research Assistant West Virginia GIS.
Technical Workshops | Esri International User Conference San Diego, California ArcGIS for Local Government’s Address Maps and Apps Scott Oppmann Allison.
Feasibility Study of Integrating WVDOT LRS Centerline With Statewide Addressing And Mapping Data.
CALIFORNIA DEPARTMENT OF WATER RESOURCES GEOSPATIAL TECHNICAL SUPPORT MODULE 2 ARCHITECTURE OVERVIEW AND DATA PROMOTION FEBRUARY 20, 2013.
Network Analysis with Python
Esri UC 2015 | Technical Workshop | Land Records Maps and Apps for State and Local Governments Chris Buscaglia Scott Oppmann.
Enterprise GIS Benchmark Update Presented by David James, Business Technology Services EGIS Committee Meeting7 th July 2011 Enterprise GIS Steering Committee.
Lucity GIS and IT Services. Lucity IT Services.
Geospatial Technical Support Module 2 California Department of Water Resources Geospatial Technical Support Module 2 Architecture overview and Data Promotion.
Enterprise GIS Planning and Framework Jennifer Reek GIS Coordinator City of Brookfield, WI.
ArcGIS for Local Government’s Capital Project Planning Maps and Apps Scott Oppmann.
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Migrating your Data.
Address Maps and Apps for State and Local Governments
Publishing to ArcGIS for Server
An Exploratory Approach to Geographic Multimedia Data Management for Bond Forfeiture Program in West Virginia Yueming Wu, Ph.D., GISP Sarah Clapham West.
Esri UC 2014 | Technical Workshop | Esri Roads and Highways: Integrating and Developing LRS Business Systems Tom Hill.
Esri Roads and Highways: An Introduction to Roadway Reporter
Geocaching and the North Dakota GIS Hub Bob Nutsch GIS Coordinator State of North Dakota GIS Day 2004.
Esri Production Mapping: Automate Map Production With ArcGIS Workflow Manager Joe Sheffield.
Enterprise Data Model for Transportation Planning Presentation to 2009 TRB Planning Application Conference Minhua Wang, Ph.D. Citilabs, Inc.
ArcGIS Workflow Manager Introduction
Report by WVDOT Yueming Wu GIS Unit Leader, GTI Section Program Planning & Administration Division WVDOT-Highways May 13, 2013.
Adding ArcGIS Online to Your GIS Curriculum
ArcGIS for Local Government: Public Works Maps and Apps
Esri UC 2014 | Technical Workshop | ArcGIS for Public Works: An Overview Lindsay Thomas Scott Oppmann.
Jessica D. Perkins GIS Programmer Analyst 2 Geospatial Transportation Information Section Program Planning & Administration Division of Highways West Virginia.
N ORTHWEST GIS U SERS G ROUP C ONFERENCE – O CTOBER 20, 2011 Post Falls Empowers the Water Dept. with GIS and Spatial IM.
GIS at Ohio EPA Bridget Simpson GIS Program Manager Ohio EPA 2014 Ohio GIS Conference September , 2014 | Hyatt Regency Columbus| Columbus, Ohio.
Esri UC 2015 | Technical Workshop | Community Parcels Chris Buscaglia.
Authors Marshall Burgess, Everett Perry, and Kyle Weatherholt West Virginia Department of Transportation Progress of the Railroad Crossings Project at.
Esri UC 2015 | Technical Workshop | Community Addresses Chris Buscaglia.
State and Local Project Planning – GIS is the Key to Success West Virginia GIS 2016 Dr. Yueming Wu, GIS Manager West Virginia DOT Nate Reck, Gov’t Solutions.
Esri UC 2015 | Technical Workshop | Land Records Public Access Applications Chris Buscaglia.
State Government Session West Virginia GIS Conference.
Esri UC 2014 | Technical Workshop | Address Maps and Apps for State and Local Government Allison Muise Nikki Golding Scott Oppmann.
Roadway Center Line and Feature Extraction Remote Sensing in Transportation August 2001 HSA Consulting Group, Inc. Presentation to the National Consortium.
WV DOT Scanning Project
ArcGIS Workflow Manager: Advanced Workflows and Concepts
Introduction to Fire Incident Maps
Automating Geodatabase Administration with Python
Report by West Virginia Department of Transportation
ArcGIS for Land Records: Configuring
ArcGIS for Local Government’s Address Maps and Apps
Esri Production Mapping: An Introduction
Presentation transcript:

Automation Using Python for WVDOT GIS Data Management Yueming Wu, Ph.D., GISP GIS Manager May 9, 2012

Agenda  Introduction  WVDOT Geospatial Data Repository  Automation Implementation  Key Issues & Solutions  Future Work  Questions & Answers

Introduction

History Historically the West Virginia Department of Transportation (WVDOT) has been utilizing geospatial (GIS, Remote Sensing, & GPS) technology for planning, analysis, and mapping purposes ever since the technology became available. In 2005 the WVDOT GIS Section was created to meet the growing needs for geospatial data and services in transportation. In 2007 the GIS Section was renamed as the GIS Unit and merged with the Highway Data Services (HDS) Unit, a program responsible for processing changes in roadway information, and the update and maintenance of the Roadway Inventory Log, to form the current Geospatial Transportation Information (GTI) Section.

-Roadway Inventory Log -Roadway Statistics -Public Certified Mileage - Geospatial Data Management -Geospatial Services Geospatial Transportation Information (GTI) Section Program Planning & Administration Division Highway Data Services Unit GIS Unit

GTI Mission & Vision Statements  Mission Statement To improve customer service to the citizens of West Virginia by supplying the latest geospatial transportation information.  Vision Statement The West Virginia Department of Transportation Geospatial Transportation Information (GTI) Section is committed to managing an enterprise Geospatial Information System that will improve the productivity of the West Virginia Department of Transportation, meet growing customer needs, and play a leading role in West Virginia’s geospatial community.

GIS Implementation  Esri Shop  Enterprise License Agreement (ELA)  Esri Technology  Staff  7 GIS Professionals  2 Cartographers  1 GIS Coordinator at District 7  Enterprise GIS  WVDOT Enterprise GIS Roadmap  Enterprise Resource Planning (ERP)/Asset Management System

Major GIS Projects in 2012  Enterprise GIS Implementation  New Transportation GIS Data Model  District Level GIS Implementation  Workflow Manager  Transportation GIS Data Collection (MS4, Railroad Crossings, Landslides, Outdoor Advertising, Right-of-Way, Trails, Meta Data, etc.)  Highway Map Reproduction  Web Mapping Applications (STIP, Park & Ride, Functional Classifications, etc.)  Mobile GIS Applications (MS4, etc.)  3D GIS Application Development  GIS Portal Upgrade  ProjectWise Implementation  ERP/Asset Management System Implementation

WVDOT Geospatial Data Repository

Export Reproject Upload Update Store Download &Add Metadata Version - Edit GTI_EDITING TRANSPORTATION GIS DATA Commissioner Orders Paper Maps Field Data Consultant Reports Etc. TRANSPORTATION GIS DATA Commissioner Orders Paper Maps Field Data Consultant Reports Etc. GTI_PUB_WM GTI_PUB_UTM Upload REFERENCE GIS DATA WV GIS Tech Center WVGES USGS Esri Etc. REFERENCE GIS DATA WV GIS Tech Center WVGES USGS Esri Etc. IMAGERY Aerial Photos Shade Relief Hillshade Topo Etc. IMAGERY Aerial Photos Shade Relief Hillshade Topo Etc. Editing Publication Source Data Shapefiles Imagery GIS Services Shapefiles for Download Store Download & Add Metadata Version - Edit Update Geospatial Analysis Map Production Web Apps Reproject Export WVDOT Geospatial Data Repository

Automation Implementation

 Four Automated Data Management Operations  GTI_EDITING GDB  GTI_PUB_UTM GDB  Shapefiles  GTI_PUB_UTM GDB  GTI_PUB_UTM GDB  GTI_PUB_WM GDB  GTI_PUB_UTM GDB  Shapefiles for Publications GP1 GP2 GPn GP … Data Model ArcGIS Model Builder Python Script Pythonwin Task Windows Scheduler ExportDeploy Improve

Key Issues & Solutions

Database Lock  When a GDB is updated, it’s been accessed by clients (ArcGIS Desktop, ArcGIS Server, etc.). Database locks are created accordingly. #Remove Database Locks on GTI_PUB_WM Import pyodbc cnxn = pyodbc.connect('DRIVER={SQL Server};SERVER=dotarcgis02;DATABASE=GTI_PUB_UTM;UID=xxxxx;PWD=xxx') cursor = cnxn.cursor() cursor.execute("delete FROM [GTI_PUB_UTM].[dbo].[SDE_process_information]" ) cnxn.commit()

Scheduled Task  After a Python script passes test, use Windows Scheduler to create a task so the script would run on a regular basis.  Make the task independent to individual’s login

Notification?  If a task fails, notify the data repository manager by # import smtplib, MIMEText try: … except: sender = receivers = msg = MIMEText("The GTI_PUB_UTM_2_Web_Shapefiles script failed. Please check!") msg['Subject'] = 'Python Script Failed' msg['From'] = msg['Reply-to'] = "GTI Core Team" msg['To'] = smtpObj = smtplib.SMTP('localhost') smtpObj.sendmail(sender, receivers, msg.as_string())

or Log  After a task is created, use a log file to track. #Log Import os, sys, time rootFolder = r"C:\Geoprocessing Scripts\\" # This is where the log file is located text_file = open(rootFolder + "PScriptLogFile.txt", "a") text_file.write("\n\n") text_file.write("Running GTI_EDITING_2_GTI_PUB_UTM.py began at " + str(time.strftime('%X %x %Z')) + ".\n\n") try: … text_file.write("Running GTI_EDITING_2_GTI_PUB_UTM.py successfully ended at " + str(time.strftime('%X %x %Z')) + ".") except: text_file.write("Running GTI_EDITING_2_GTI_PUB_UTM.py failed at " + str(time.strftime('%X %x %Z')) + ".") text_file.close()

Future Work

Export Reproject Upload Update Store Download &Add Metadata Version - Edit GTI_EDITING TRANSPORTATION GIS DATA Commissioner Orders Paper Maps Field Data Consultant Reports Etc. TRANSPORTATION GIS DATA Commissioner Orders Paper Maps Field Data Consultant Reports Etc. GTI_PUB_WM GTI_PUB_UTM Upload REFERENCE GIS DATA WV GIS Tech Center WVGES USGS Esri Etc. REFERENCE GIS DATA WV GIS Tech Center WVGES USGS Esri Etc. IMAGERY Aerial Photos Shade Relief Hillshade Topo Etc. IMAGERY Aerial Photos Shade Relief Hillshade Topo Etc. Editing Publication Source Data Shapefiles Imagery GIS Services Shapefiles for Download Store Download &Add Metadata Version - Edit Update Geospatial Analysis Map Production Web Apps Reproject Export WVDOT Geospatial Data Repository Replicate

Reproject Upload Update GTI_EDITING GTI_PUB_WM GTI_PUB_UTM Upload Editing Publication Shapefiles Update Reproject Headquarters Replicate Districts GTI_PUB_UTM FGDB GTI_PUB_UTM FGDB Publication Replicate WVDOT Geospatial Data Repository Imagery

Yueming Wu GIS Manager WVDOT (304)