Outline of Script Import Modules Setup Workspace Environment and Assign Data Path Variables Summary of Script Title and Author Info.

Slides:



Advertisements
Similar presentations
CC SQL Utilities.
Advertisements

Why python? Automate processes Batch programming Faster Open source Easy recognition of errors Good for data management What is python? Scripting programming.
Recognize and Prevent Medication Diversion
CS Lecture 03 Outline Sed and awk from previous lecture Writing simple bash script Assignment 1 discussion 1CS 311 Operating SystemsLecture 03.
Python & ModelBuilder. Overview Python/ModelBuilder Concepts – The Geoprocessor – Checking some environment variables – Providing feedback from your model/script.
19 th Advanced Summer School in Regional Science An introduction to GIS using ArcGIS.
Programming in Matlab Day 1: Basics. Matlab as a calculator >> 2+2 ans = 4 >> 2^3 ans = 8 >> sqrt(2) ans = Command Window Basic operations Sum:
10 March Setup Users. 10 March Setup Users Window Allows you to perform several user tasks –Enroll users –Enable/disable users –Set user access.
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
Automated Integrations An End-to-End Solution August 15, 2008.
Inti Online Login Page (Lecturer/Student/Administrator View)
Python & ModelBuilder. Continuing Education Python and ModelBuilder Overview Python/ModelBuilder Concepts –The Geoprocessor –Checking some environment.
FireRMS SQL Audit, Archiving & Purging Presented by Laura Small FireRMS Quality Assurance.
The SAU Website Workshop. Using the site Website Management The Campus Directory Form Manager Other available resources.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Nightly Releases and Testing Alexander Undrus Atlas SW week, May
Mail merge I: Use mail merge for mass mailings Perform a complete mail merge Now you’ll walk through the process of performing a mail merge by using the.
Chapter 6 Generating Form Letters, Mailing Labels, and a Directory
Eurotrace Hands-On The Eurotrace File System. 2 The Eurotrace file system Under MS ACCESS EUROTRACE generates several different files when you create.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
1 Automatic Processing Pipelines with XNAT and REDCap Vanderbilt University Benjamin Yvernault, Bennett Landman, Brian Boyd,
National Sea Grant Library The New Library System and Publication Submittals Communications Staff Tutorial October 2014 National Sea Grant Library The.
What’s new in Kentico CMS 5.0 Michal Neuwirth Product Manager Kentico Software.
City of Richland Public Works GIS ESRI to CAD Script years experience in GIS industry Helped Launch (6) GIS programs  Civil Engineer Squadron /
Module 6: Geoprocessing Scripts. Processing loops and decisions.
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.
5 1 Data Files CGI/Perl Programming By Diane Zak.
DELETING TEMPORARY FILES 1.Click “Start” -> “Search” -> “All Files and Folder”. 2.In “All or Part of the file name” box enter “*.tmp” and click “Search”.
Feb. 8, 2008 UHCO Graduate Course in MATLAB Core Programming Module Best Practices Core Grant Programming Module Best Practices (Coding Conventions) General.
© 2006 Cisco Systems, Inc. All rights reserved.1.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
EGR 115 Introduction to Computing for Engineers Designing The Battleship Game in MATLAB Monday 22 Sept 2014 EGR 115 Introduction to Computing for Engineers.
Anritsu Automation Platform (AAP) AAP PC Connects to the system via IP connection (system switch) AAP was developed to add features that were requested.
Juanita Cano City of Sacramento Spring 2014 Geography 375.
Windows XP Lab 2 Organizing Your Work Competencies.
HYPACK PROJECTS HYPACK Projects What’s in a Project  ‘ A Project contains all of the information about a specific survey in a separate folder.
MINIX Presented by: Clinton Morse, Joseph Paetz, Theresa Sullivan, and Angela Volk.
1 Project 5: Leap Years. 222 Leap Years Write a program that reads an integer value from the user representing a year and determines if the year is a.
1 Project 4: Computing Distance. 222 Computing Distance Write a program to compute the distance between two points. Recall that the distance between the.
MI Pro Redistricting Tool Flagler County Darlene Walker.
Technical Workshops | Esri International User Conference San Diego, California Branching and Iteration in ModelBuilder Shitij Mehta July 24, :15.
Introduction to GIS Programming Final Project Submitted by Todd Lenkin Geography 375 Spring of 2011 American River College.
Microstation Configuration Variable Set-up January 2014.
Creative Create Lists Elizabeth B. Thomsen Member Services Manager
Presented by [Harshit Agrawal] 04/03/2017
Subversion Subversion is a brand of version control software that is frequently used to store the code and documentation of a project so as to permit.
CHAPTER 4 DECISIONS & LOOPS
eSchoolPLUS District Data Coordinator May Webex
Improving Georeferencing Workflow with Python
Get the Most Out of GoAnywhere: Advanced Workflows
Tan Hoang GEOG 362 – Final Project
Final Project: Read from a csv file and write to a database table
Position Control Fiscal Year End
Customization
User Defined Functions
JMP User Group Meeting JSL Scripting101
Programming Logic and Design Fourth Edition, Comprehensive
File IO and Strings CIS 40 – Introduction to Programming in Python
Chapter Four UNIX File Processing.
Good Testing Practices
3.1 Basic Concept of Directory and Sub-directory
CSCI N207 Data Analysis Using Spreadsheet
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.
Clip, Merge, Cluster, and Repeat
Clip & Convert to ASCII Program Kelly Knapp Spring 2010
Final Project Geog 375 Daniel Hewitt.
Position Control Fiscal Year End
Ideal Parcels Locator Script
Presentation transcript:

Outline of Script Import Modules Setup Workspace Environment and Assign Data Path Variables Summary of Script Title and Author Info

Setup Workspace Environment and Assign Data Path Variables

Add Error Handling Function and Variable for the Current Date and Time Add Error Handling Function and Variable for the Current Date and Time Assign a Variable to the Log File Location. Assign a Variable to Hold the Name for the Log File. Check for an Existing Log File of the Same Name, Delete It, and Open the Log File for Writing. Assign a Variable to the Log File Location. Assign a Variable to Hold the Name for the Log File. Check for an Existing Log File of the Same Name, Delete It, and Open the Log File for Writing.

Check for Existing Service Request and Work Order Shapefiles in Archive Folder, Delete Them & Copy Current Shapefiles to Archive Folder Check for Existing Search Folder in Workspace and Copy to Archive Folder Check for Existing Search Folder in Archive Folder, Delete it

Check for Existing Search Folder in Workspace, Delete it, and Create a New Empty One Check for Existing SR and WO Files in the Workspace and Delete Them Copy SR and WO Feature Classes from the SDE Connection to the Workspace

Assign a Variable to Hold the Correct Coordinate System Define the Projection of the Shapefiles Exported from SDE Check to See if the srwo_merge File Exists, if it Does, Delete it, and Merge the SR and WO Shapefiles

Use AddField Function to Add the BM Field. Create a Variable to Hold the Calculate Field Expression and Add the CalculateField Function. Create a List of Feature Classes

Assign a Value to the Counter and Use a While Loop to Loop Through the Feature Classes Using Counter Use a For Loop to Process the Features in the Features List. Assign a Variable for the Feature Layer and Assign the Variable for Each Shapefile that will be Created. Use a For Loop to Process the Features in the Features List. Assign a Variable for the Feature Layer and Assign the Variable for Each Shapefile that will be Created.

Variable to be Used in the SelectLayerByAttribute Routine Variable for SelectLayerByAttribute Function Variable for the GetCount Function SelectLayerByAttribute Function Check to See if Feature Layer Exists and Make a New Feature Layer

Check to See if the File Exists and Delete it. Copy Selected Features to New Shapefiles and Delete Unnecessary Fields. Check to See if Results are Greater Than 0, if They Aren’t, Then Delete the Shapefile.

Else is Used if the Results are Greater Than 0. Sort Variables are Assigned and the Sort Function is Used TableToTable Function is Used to Create Non-Spatial Tables

Counter Variable is Incremented by 1 Check for Intermediate Data and Delete Check for SR and WO Shapefiles in ArcPad Folder, Delete Them and Copy Updated Files Check for Search Folder in ArcPad Folder, Delete it and Copy Updated One

Close the Log File Log File Must Be Closed In Except Block Also Add the Except Block and Code for Error Handling

Python Shell Results

Log File Results

Data Before and After Data Origin (SDE) Updated Data (Local Directory) Updated Data (Directory for ArcPad) * Actual Working Files Will be Stored on a Separate Network Drive Updated Data (Directory for ArcPad) * Actual Working Files Will be Stored on a Separate Network Drive

Sorted Search Tables A Sorted Search Table is Created for Each Selection Containing Values

Using Windows Scheduler The Script is Scheduled to Run Monday – Friday and is Shown in the Task Scheduler Active Tasks Window