Improving Georeferencing Workflow with Python

Slides:



Advertisements
Similar presentations
SolidWorks Enterprise PDM Data Loading Strategies
Advertisements

Database management system (DBMS)  a DBMS allows users and other software to store and retrieve data in a structured way  controls the organization,
Importing GPS Data Lecture 13. EasyGPS  Free software for downloading waypoints  EasyGPS ( EasyGPS  Free software for downloading.
Creating a County ArcMap with Fiscal Year Conservation Practice Locations David Hoover ASTC, Idaho 2007 DC Meeting.
NSF DUE ; Module 4.3. NSF DUE ; GeoTEd Partners Module name and number.
Protocol: How to Derive Gradient from GIS Outline: 1)Add X,Y site points, using GPS-collected UTM coordinates. 2)Create “routed” streams, with linear distance.
Why python? Automate processes Batch programming Faster Open source Easy recognition of errors Good for data management What is python? Scripting programming.
Visualizing Multiple Physician Office Locations Exercise 9 GIS in Planning and Public Health Wansoo Im, Ph.D.
Technical Support: (989) GIS and Mapping Procedures in ArcMap 9.x Creating an ArcMap Project Editing an ArcMap Project Printing an ArcMap Project.
2015/6/301 TransCAD Managing Data Tables. 2015/6/302 Create a New Table.
Rebecca Boger Earth and Environmental Sciences Brooklyn College.
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
Advance Model Builder Features. Advance Features Using Lists (also Batching) Iteration Feedback Model Only Tools Inline Variable Substitution Preconditions.
Gadgets & More…. “Date Range” Gadgets Allows you to choose a specific date, before or after a date or a range of dates using the Workflows calendar.
The Attribute Table! Without the attribute table, a polygon is just a polygon, a point is a point The attribute table defines what points, lines, or polygons.
2005 Ohio GIS Conference September 21-23, 2005 Marriott North Hotel Columbus, Ohio Geoprocessing for Animal Premises ID Luanne Hendricks State of Ohio.
CE 525. Grading GIS Proficiency Exam 10% Attendance 10% 90–100 = A Pop Quiz Questions 10% 80 – 89 = B Homework/Certifications 20% 70 – 79 = C Midterm.
Matching school attendance boundaries with schools from CCD dataset.
Importing your Own Data To display in GIS Lab 4a: (Table Join) Mapping By State, County, or Nation.
Overview Cursors arcpy.da module Geometrys Arrays SpatialReferences
Exercise 1: Creating GIS data—points lines and polygons A very common method of creating vector data is to physically create these files through on-screen.
Martin Dodge Practical 2, 24th March 2004, pm Social Science Research Methodologies.
Attributes in ArcGIS. ArcGIS Attributes FID – ESRI’s internal identifier Shape – Actual spatial data.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Data Queries Selecting features in ArcMap Data queries  Important part of a GIS project Can be a part of your data preparation or final analysis  Data.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Data Creation and Editing Based in part on notes by Prof. Joseph Ferreira and Michael Flaxman Lulu Xue | Nov. 3, :A Workshop on Geographical.
School of Geography FACULTY OF ENVIRONMENT Querying with ArcGIS.
Selecting features in ArcMap
Sequential Processing to Update a File Please use speaker notes for additional information!
Paper 2 Exam Tips Guidance: 1.Evidence Document 2.Unit 9: – Communication ( ) 3.Unit 10: - Document Production (Word) 4.Unit 16: PowerPoint 5.Unit.
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.
Advanced Informer Features
A Look at Creating & Updating Point Files
Mail Merge for Lotus Notes and Excel User Guide
DRAWING LINES To draw lines click View in the Main Menu Toolbar -> Toolbars and check the Editor option. The Editor toolbar will appear amongst the toobars.
INTRODUCTION TO GEOGRAPHICAL INFORMATION SYSTEM
Mail Merge for Lotus Notes and Excel User Guide
BASIC INFORMATION ABOUT DATABASE MANAGEMENT SOFTWARE
processing tabular data
GEOG 375 Final Project Robert Abbotts Spring 2013.
Demo #5: creating a point shapefile from Excel tables
Modeling Unordered Point Data for 3D GIS Mapping
Mastering ArcGIS Attribute Data (Continued)
Tan Hoang GEOG 362 – Final Project
Data File Import / Export
Final Project: Read from a csv file and write to a database table
DOWNTOWN RESTAURANTS AND CRIME RELATIONSHIPS
Hazards Planning and Risk Management
Customization
Preliminaries: -- vector, raster, shapefiles, feature classes.
Nicholas A. Procopio, Ph.D, GISP
Hazards Planning and Risk Management
Hazards Planning and Risk Management
ciBioBase Data Use in ArcGIS 10x
EndNote What is EndNote? EndNote Library, how to manage?
Why Projections Matter in an Active Horizontal Drilling Program
Spreadsheets, Modelling & Databases
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.
GregWroblicky_script_Part01.py Source Datasets.
Processing Well Data Points to be Used in Google Earth
Clip & Convert to ASCII Program Kelly Knapp Spring 2010
Final Project Geog 375 Daniel Hewitt.
Ideal Parcels Locator Script
Geog 375 Individual Final Programming Project: Automated Thematic Maps
MODULE 5: CREATING GOOD THEMATIC MAPS
Presentation transcript:

Improving Georeferencing Workflow with Python GEOG 375 Final Project Tammy Dong Email: tammyMdong@gmail.com

Purpose Automate data processing involved with georeferencing data from the Consortium of California Herbaria Separate “bad” data to be processed and checked manually Create point and error radius shapefiles of the “good data”

Consortium Data Comes in a table with various information Table needs to be cleaned up in excel and ArcMap to prevent errors lat/long, datum, error radius field will be the focus of this script

Import modules and set datapaths This is where data that needs to be manually processed go

Part 1: Separate Data Based on Datum -Each entry has a unique datum - some datums are blank (unknown) -in order to process them, must separate

Part 1: Separate Data Based on Datum Create table view for search cursor Use Search Cursor to access table in order to loop through rows for the Select By Attribute Routine. Query tells Select By Attribute routine to select by unique datum in datum field If-then statement names output tables by datum and blank entry as unknown Copy Rows saves tables for each datum selection

Part 1: Separate Data Based on Datum Output tables: Note the inconsistent datum field resulted in “WGS84” and “WGS 84” table. This will be addressed later.

Part 2: Separate Data Further by Coordinate Precision -Sometimes the data collector unintentionally rounds or truncates coordinate points -Truncation/low precision leads to less accurate localities -For this project, defined as 3 decimal places or less

Part 2: Separate Data Further by Coordinate Precision Add field routine to create new fields Loop interates through new fields to give them values using update cursor Create Loop to iterate through tables with known datums add 3 fields, 1 will be for the buffer later, the other 2 will contain corresponding lat/long data as text this will make the subsequent query possible

Part 2: Separate Data Further by Coordinate Precision Create table view for search cursor Use Search Cursor to access table in order to loop through rows for the Select By Attribute Routine. Query tells Select By Attribute routine to select truncated coordinates from lat/long text field previously created Copy Rows exports selected truncated data to manual folder Switch selection and export via copy rows to display folder (tables to be converted to shapefile)

Part 2: Separate Data Further by Coordinate Precision Output table results:

Part 3: Convert non-truncated data to shapefiles Loop through tables in folder If-Elif statements sets spatial reference based on file name to be used for Make XY Event routine fnmatch module sees if “table” matches a string. Wild card values are used to account for possible spaces in between name and date such as the “WGS84” and “WGS 84” mentioned previously Make XY Event displays table as points at lat/long input Copy Features saves event layer

Part 3: Convert non-truncated data to shapefiles Results:

Part 4: Project shapefiles to Teale Albers Loop through tables in folder fnmatch module is used again to match file name to transformation needed for Projecting Project management is used to project shapefiles

Part 5: Merge and buffer Input: points projected in teale albers. List Features creates List of shapefiles Merge tool merges all shapefiles in list Buffer analysis tool uses previously created merged shapefile

Part 5: Merge and buffer Results: merged shapefile Buffer error radius

All Data Results Optional: Delete unwanted intermediate data