Ideal Parcels Locator Script

Slides:



Advertisements
Similar presentations
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.
Advertisements

Why python? Automate processes Batch programming Faster Open source Easy recognition of errors Good for data management What is python? Scripting programming.
GIS Level 2 MIT GIS Services
Wildcare Ongoing Project Log. 10/09/2012  I spent this lesson getting to grips with the project and starting to complete my plan. I created the folders.
Querying an Avian Inventory Database and Visualizing the Results GEORGE WASHINGTON BIRTHPLACE NATIONAL MONUMENT NATIONAL PARK SERVICE NR 595D Final Project.
Technical Workshops | Esri International User Conference San Diego, California ArcMap: Tips and Tricks Miriam Schmidts Jorge Ruiz-Valdepena July 23 – 27,
2005 Ohio GIS Conference September 21-23, 2005 Marriott North Hotel Columbus, Ohio Geoprocessing for Animal Premises ID Luanne Hendricks State of Ohio.
Network Analysis with Python
Introduction to ArcPy. Topics What is ArcPy? Accessing geoprocessing tools using ArcPy Writing scripts using ArcPy.
General Programming Introduction to Computing Science and Programming I.
Exploring ArcToolbox Presented by: Isaac Johnson.
WinGapSQL and GIS Mark Lovett & Rusty Scoven
After this class, you will be able to:  Use Quick Queries  Understand how alerts work and what triggers them  Identify various searching methods  Do.
Automating Processes with ArcPy to do work so I don’t have to Joe Guzi GIS Systems Analyst Stark County GIS Department 2015 Ohio GIS Conference September.
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.
Daniel Gagnon’s Final Project Number Guessing Game Widget By: Daniel Gagnon.
Queries Select by Attribute Select by Location. What is a Query? A query extracts information from a data table for further use –Once extracted you can:
Introduction of Geoprocessing Lecture 9. Geoprocessing  Geoprocessing is any GIS operation used to manipulate data. A typical geoprocessing operation.
School of Geography FACULTY OF ENVIRONMENT Querying with ArcGIS.
Agenda Computer Languages How to Write a Simple C Program
Juanita Cano City of Sacramento Spring 2014 Geography 375.
Database to HTML and Back again A programmers tale.
Basic Navigation in Oracle R12 BY: Muhammad Irfan.
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.
Perform a complete mail merge Lesson 14 By the end of this lesson you will be able to complete the following: Use the Mail Merge Wizard to perform a basic.
PROBLEM SOLVING WARM-UP Fill in the spaces using any operation to solve the following (!, (), -/+,÷,×): = 6.
Introduction to Computing Science and Programming I
Fundamentals of Python: First Programs
GIS Institute Center for Geographic Analysis
Vector Analysis Ming-Chun Lee.
Improving Georeferencing Workflow with Python
This shows the user interface and the SQL Select for a situation with two criteria in an AND relationship.
Inside Module 10 Editing TurboIMAGE Datasets Page
Lecture 22: Using ArcToolbox Tools in Python
Chapter Topics 11.1 Introduction to Menu-Driven Programs
Tan Hoang GEOG 362 – Final Project
Final Project: Read from a csv file and write to a database table
DOWNTOWN RESTAURANTS AND CRIME RELATIONSHIPS
High Frequency Words. High Frequency Words a about.
Preliminaries: -- vector, raster, shapefiles, feature classes.
Writing Functions( ) (Part 5)
Geography 375 Introduction to Python May 15, 2015
File Handling Programming Guides.
Guide To UNIX Using Linux Third Edition
Ryan Dudschus, Alex Wallace, Zachary Lentz
Code Analysis, Repository and Modelling for e-Neuroscience
Python 21 Mr. Husch.
GIS Lecture: Geoprocessing
GIS Institute Center for Geographic Analysis
Data Management – Processing
Vector Geoprocessing.
Best Practice for Geoprocessing Service
12th Computer Science – Unit 5
Chapter 1: Programming Basics, Python History and Program Components
GIS Institute Center for Geographic Analysis
Code Analysis, Repository and Modelling for e-Neuroscience
Introduction to Python
WEEK 8 COURSE PROJECT PRESENTATION NAME: ALEXANDER WEISS CLASS: CIS115.
Using Origin-Destination Data to Determine Possible Carpools
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.
Starter Which of these inventions is: Used most by people in Britain
Clip, Merge, Cluster, and Repeat
Shawn Stiver ARC Fall Semester, 2016 Geography 385 GIS For The Web
Automating Student Yield Data Extraction
Final Project Geog 375 Daniel Hewitt.
Presentation transcript:

Ideal Parcels Locator Script By Heather Dean hgdean@hotmail.com I am pretending like I am looking for a home to buy, and would like to generate a list of ideal parcels that I can keep an eye on in case they come up for sale. My requirements are that they are in the RP Sports Complex neighborhood, that they are within ½ mile of a light rail station so I can walk to the train quickly in the morning, and within ¼ mile of a park so I can take my dog to play. I will perform a count on the number of parcels and list them out, trying to exclude the ones without both street number and street address, and write these out to a separate text file.

General Script Processes I started the script by defining the workspace and creating variables for my next step. I put print statements at the end of each step so I could monitor the progress of the script as I went along. Python Shell

General Script Processes Geoprocessing tasks can only be run on feature layers, but I had shapefiles! Before I could create feature layers out of the shapefiles, I put in code to delete any pre-existing layers of the same name. I then created the feature layers.

General Script Processes Next, I wanted to select all of the parcels in my desired neighborhood. I did this by creating a query that indicated my desired neighborhood, which I then used in a SelectLayerByAttribute script on the neighborhoods layer. To transfer this selection to the parcels layer, I used an ‘intersect’ type SelectLayerByLocation script. I received errors when I left the search distance field blank, so I just put in ‘0 FEET’. That seemed to work fine.

General Script Processes After creating a selection of the parcels in my desired neighborhood, I performed two SelectLayerByLocation scripts to narrow the selection to parcels within ½ mile of a lightrail station and ¼ mile of a park. The programmer can select from currently selected features using the “SUBSET_SELECTION” method. Just for fun, I threw in a “GetCount” script. The count, 91, matched the count that I got when I performed the same process in ArcMap.

General Script Processes Now that all of the ideal parcels have been selected, I want to be able to view their addresses. I accomplished this with a search cursor that would list them out for me. I wrote this search cursor script from the example script in the textbook.

General Script Processes As you can see in a selection of the result of the script in my python shell on the right, some of the street address fields didn’t show up. I tried rewriting my query several times without an improved result. The next step would be to move the list to a text file.

General Script Processes First, I had to create a file that the resulting text file would be written to. I took this code snippet from ArcGIS Help and played with it until I got it to do what I wanted.

General Script Processes On the right is the output text file opened in Notepad. All of the pesky addresses without street numbers are there, but the data is in a format that is manageable by any non-GIS user.