Matching school attendance boundaries with schools from CCD dataset.

Slides:



Advertisements
Similar presentations
Computer Science & Engineering 2111 Text Functions 1CSE 2111 Lecture-Text Functions.
Advertisements

NSF DUE ; Module 4.3. NSF DUE ; GeoTEd Partners Module name and number.
RGS-IBG Online CPD course in GIS Analysing Data in ArcGIS Session 6.
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
Vector-Based GIS Data Processing Chapter 6. Vector Data Model Feature Classes points lines polygons Layers limited to one class of data Figure p. 186.
Introduction to Structured Query Language (SQL)
Access Tutorial 3 Maintaining and Querying a Database
Introduction to Structured Query Language (SQL)
A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Microsoft Access 2010 Chapter 7 Using SQL.
Access Tutorial 3 Maintaining and Querying a Database
Advanced Tables Lesson 9. Objectives Creating a Custom Table When a table template doesn’t suit your needs, you can create a custom table in Design view.
Introduction to ArcGIS for Environmental Scientists Module 2 – Fundamentals Lecture 6 – Table Functions.
Using ESRI ArcGIS 9.3 Arc Tool Box 1 Data Management
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Maintaining and Querying a Database Microsoft Access 2010.
Selecting and Displaying Features. Why do you need to select features? Why do you need to select features? Selection methods Selection methods Select.
XP New Perspectives on Microsoft Access 2002 Tutorial 41 Microsoft Access 2002 Tutorial 4 – Creating Forms and Reports.
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 3-1 LINKS TO OBJECTIVES Save a Filter as a Query Save a Filter as a Query Parameter Query Inner, Left,
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
Preparing Data for Analysis and Analyzing Spatial Data/ Geoprocessing Class 11 GISG 110.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Working with a Database
Tutorial 11 Using and Writing Visual Basic for Applications Code
Importing your Own Data To display in GIS Lab 4a: (Table Join) Mapping By State, County, or Nation.
GIS 1 GIS Lecture 4 Geodatabases. GIS 2 Outline Administrative Data Example Data Tables Data Joins Common Datasets Spatial Joins ArcCatalog Geodatabases.
CARLSON SOFTWARE CONFERENCE DANIEL V. SYPERSMA VICTOR GRAPHICS.
Threats Database V4 Model Geodatabase Relation Class Creation and Data Population June 25, 2007 Marlene McKinnon, GIS Specialist.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Access 2003 Lab 3 Analyzing Data and Creating Reports.
Microsoft Access 2010 Building and Using Queries.
School of Geography FACULTY OF ENVIRONMENT Introduction to ArcToolbox and Geoprocessing.
Martin Dodge Practical 2, 24th March 2004, pm Social Science Research Methodologies.
Microsoft Access 2000 Presentation 2 Creating Databases Part I (Creating Tables)
Attributes in ArcGIS. ArcGIS Attributes FID – ESRI’s internal identifier Shape – Actual spatial data.
Introduction of Geoprocessing Topic 7a 4/10/2007.
Exploring ArcToolbox Presented by: Isaac Johnson.
Microsoft ® Access ® 2010 Training Create Queries for a New Database If a yellow security bar appears at the top of the screen in PowerPoint, click Enable.
Concepts of Database Management Seventh Edition
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 3 1 Integrating Microsoft Office XP Tutorial 3 – Integrating Word, Excel, Access, and PowerPoint.
ArcGIS: ArcMap Tables. Agenda Opening tables The interface Working with columns Working with records Making selections Advanced table tools ▫Add fields.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
® Microsoft Access 2010 Tutorial 3 Maintaining and Querying a Database.
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
GISMO/GEBndPlan Overview Geographic Information System Mapping Object.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Eight String Manipulation.
Introduction of Geoprocessing Lecture 9. Geoprocessing  Geoprocessing is any GIS operation used to manipulate data. A typical geoprocessing operation.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
NSF DUE ; Wen M. Andrews J. Sargeant Reynolds Community College Richmond, Virginia.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Eight String Manipulation.
Introduction of Geoprocessing Lecture 9 3/24/2008.
Geocoding Chapter 16 GISV431 &GEN405 Dr W Britz. Georeferencing, Transformations and Geocoding Georeferencing is the aligning of geographic data to a.
Introduction to GIS Programming Final Project Submitted by Todd Lenkin Geography 375 Spring of 2011 American River College.
Improving Georeferencing Workflow with Python
Objectives Query for top values Create a parameter query
Tan Hoang GEOG 362 – Final Project
Building and Using Queries
Preliminaries: -- vector, raster, shapefiles, feature classes.
Working Spatial Data File Geodatabase
Microsoft Official Academic Course, Access 2016
ESRM 250/CFR 520 Autumn 2009 Phil Hurvitz
Clip & Convert to ASCII Program Kelly Knapp Spring 2010
Assignment 3 Querying and Maintaining a Database
New Perspectives on Microsoft
Presentation transcript:

Matching school attendance boundaries with schools from CCD dataset

Datasets School attendance boundary: sdatt08.shp for MN (Shape file data) Census School district boundary: tl_2009_unsd_MN (shape file data) Census Blocks CCD data for your state: CCD200708MN (tabular data with lat, long fields) School attendance boundary data located at: School district boundary data located at: CCD data located at: Please copy data in your folder to work, keep base data in one folder, and processed data in another folder, so you can get started from the base datasets in case of a mistake.

Datasets: School Attendance Boundary

Datasets: Census Geography

Datasets: CCD data

Objective We would like to match one school attendance boundary polygon with one school record (point) from the CCD data. We can approach this with a spatial join of CCD points and school attendance boundary polygons, however in cases where multiple points (schools) fall within one school attendance boundary, each case will have to be reviewed individually to figure out which school should be associated with that school attendance boundary. Alternatively, we have names of schools recorded in the CCD data as well as in the school attendance boundary data, and therefore, we can join schools with school attendance boundaries based on names using a tabular join. Those schools that do not get joined based on name alone, can be joined using a spatial join. After performing the spatial join if there are any cases where more than one school falls within a single attendance boundary, then we will review those manually on a case by case basis. School attendance boundary CCD data Join of CCD with a boundary Tabular join  review cases with no tabular join  use spatial join on cases with no join  review cases with no spatial join  manually correct any errors that are found

Data Preparation: CCD data Obtain CCD data for your state, for the selected year from appropriate folder. Create shape files from the CCD data by adding XY data in the ArcMap. Select lat field for the Y axis and long field for the X axis, and the NAD 83 geographic projection. You could also import projection information from the CCD shape files used in my work. Divide CCD data by level (Elementary, Middle, High, Charter, Magnet schools) based on following criteria. Use Select by Attribute query for selection and export selected features to create new shape files. Magnet: MAGNET07 = 1 Charter: CHARTER07 = 1 Elementary: LEVEL07 = 1 Middle: LEVEL07 = 2 High: LEVEL07 = 3 ** Note that numbers “07” in the field names indicate year of the CCD data, which may vary for your particular case.

Data Preparation: Census Geography Obtain census geography district dataset for the entire nation, and create a subset of the data for your state, using a select by attributes query, on the field STATEFP. Ex. STATEFP = 27 for retrieving all the records for MN. Export selected features. To get census blocks do the same, filter out relevant blocks for your state by using a select by attributes query. Export selected features to form a new dataset.

Census Blocks (Poly) Feature to Point Census Block Pts (Pts) School Attendance Boundaries Spatial Join Census Blocks (Poly) Delete unnecessary fields & Attribute Join (join field census FID) Census Block Pts _SJOIN_ boundaries Output Export joined file Census Blocks w FID of school attendance boundaries (Poly) School Attendance Boundaries that conform to blocks Dissolve on FID_2 School Attendance Boundary FID is named FID_2 in joined table 0. Ensure that the school attendance boundaries conform to the census blocks Data Preparation: School Attendance Boundary

If you are following method 1, then dissolve school attendance boundary dataset on field “sdnum” or “School district name” to obtain school district boundary dataset.

CCD Data: School points School attendance boundaries Census school district dataset (has LEAID field) Tabular Join SchoolDistrictNumber_SchoolName (Join field) 1. Formation of the join field: SchoolDistrictNumber_SchoolName CCD data: Unique school district number field LEAID School attendance boundary data: Unique school district number field SDNUM ** Match SDNUM numbers with LEAID numbers. School attendance boundaries School districts dataset Dissolve SDNUM (Dissolve field) Tabular Join SchoolDistrictName: SDNAME, NAME (Join field) Use Script Export joined table, it has SDNUM and LEAID fields. School attendance boundaries Tabular Join SDNUM (Join field) School attendance boundaries : Elem (has LEAID field) Export CCD Data: Level 1 Tabular Join for elementary ~ level1 SchoolDistrictNumber(LEAID)_SchoolName (Join field) Use Script Method 1 Export 2. Segregate CCD data and School attendance boundary data by level. Elem, Mid, High ~ Level 1, 2, 3

Census school district polygons (has LEAID field) 1. Formation of the join field: SchoolDistrictNumber_SchoolName CCD data: Unique school district number field LEAID School attendance boundary data: Unique school district number field SDNUM ** Match SDNUM numbers with LEAID numbers. Census school district points (has LEAID field) School attendance boundaries Spatial Join School attendance boundaries_SJOIN_Census school district points (has LEAID) CCD Data (Level 1) with LEAID_SCHOOLNAME Calculate values in new field) Tabular Join for elementary ~ level1 SchoolDistrictNumber(LEAID)_SchoolName (Join field) Use Script 2. Segregate CCD data and School attendance boundary data by level with dissolve. Elem, Mid, High ~ Level 1, 2, 3 Feature to Points Census school district points (has LEAID field) Output Delete unnecessary fields, Add 3 fields, calculate in it values LEAID_SCHOOLNAME(ELE)… School Attendance Boundaries with LEAID_SCHOOLNAME School Attendance Boundaries Elementary with LEAID_SCHOOLNAME Method 2

3. Processing of the records that didn’t get joined in the tabular join CCD Data (Level 1) with LEAID_SCHOOLNAME Calculate values in new field) Tabular Join for elementary ~ level1 SchoolDistrictNumber(LEAID)_SchoolName (Join field) Use Script 2. Segregate CCD data and School attendance boundary data by level with dissolve. Elem, Mid, High ~ Level 1, 2, 3 School Attendance Boundaries Elementary with LEAID_SCHOOLNAME CCD dataset with tabular join from school attendance boundaries Export all records CCD dataset with tabular join from school attendance boundaries Export records with no join CCD dataset with no join records only Spatial join School attendance boundary dataset Spatial join CCD dataset with no join records only Spatial joins conducted both ways, let us examine join count values wrt each dataset, and overlaying one on top of another helps identify incorrect (join count 0 or more than 1) joins.

Field Calculator Select “Advanced” Select “Load” and open appropriate expression file (*.cal) Select “Save”, and save the expression for future reference Put the output variable name in this box. Select “OK” to execute the field calculation command.

Description of a VBA script dim curName as string curName = strConv([NAME], vbUpperCase) dim newName as string newName = replace (curName, "PUBLIC SCHOOL DISTRICT", "") curName = newName newName = replace (curName, "SCHOOL DISTRICT", "") curName = newName newName = replace (curName, "PUBLIC SCHOOLS", "") curName = newName newName = replace (curName, "AREA SCHOOLS", "") curName = newName newName = replace (curName, "AREA SCHOOL", "") curName = newName newName = replace (curName, "SCHOOLS", "") curName = newName newName = replace (curName, "AREA", "") newName = trim (newName) strConv Function curName = strConv([NAME], vbUpperCase) This function converts the selected string in the specified character case. In this case selected string is the value present in the [NAME] field, and the constant vbUpperCase specifies conversion of the string in Upper Case. Final value is stored in the curName variable. Value Assignment curName = newName In this line value in the variable newName is put in the variable curName. Replace Function Syntax: Replace(expression, find, replace) newName = replace (curName, "SCHOOL DISTRICT", "") In this line the replace function searches the string stored in variable curName, and if the specified find value “SCHOOL DISTRICT” is found, then the function replaces it with the specified replace value, which in this case is a null string “”. Trim Function newName = trim (newName) Trim function removes spaces from left and right side of the specified string. In this case the trim function removes any space characters present at the beginning or the end of string value stored in the variable newName. The final value is stored in the variable newName, and the old value present in variable newName is overwritten. Example of a script file executed on school district names (census) in the ZNAME field Variables dim curName as string curName and newName are variables used to contain text type of data. String word specifies text data type of the variable.

dim curName as string curName = StrConv([SCHNAM07], vbUpperCase) dim newName as string newName = replace ( curName, "ELEMENTARY SCHOOL", "") curName = newName newName = replace (curName, "ELEMENTARY", "") curName = newName newName = replace (curName, "TARGETED SERVICES", "") curName = newName newName = replace (curName, "TARGETED SEVCS", "") curName = newName newName = replace (curName, "TARGETED SERVCS.", "") curName = newName newName = replace (curName, "ELEM. TS.", "") curName = newName newName = replace (curName, "ELEM. TS", "") curName = newName newName = replace (curName, "ELEM TS", "") curName = newName newName = replace (curName, "EL. TS.", "") curName = newName newName = replace (curName, "EL. TS", "") curName = newName newName = replace (curName, "EL TS.", "") curName = newName newName = replace (curName, "EL TS", "") curName = newName VBA script used on the SCHNAM field in CCD data Level 1 newName = replace (curName, "TS.", "") curName = newName newName = replace (curName, "T.S.", "") curName = newName newName = replace (curName, "TS", "") curName = newName newName = replace (curName, "ELEM.", "") curName = newName newName = replace (curName, "ELEM", "") curName = newName newName = replace (curName, "EL.", "") curName = newName newName = replace (curName, "ELEM ENTARY", "") curName = newName newName = replace (curName, "PRIMARY SCHOOL", "") curName = newName newName = replace (curName, "PRIMARY", "") curName = newName newName = replace (curName, " - ", "") curName = newName newName = trim(curName) __esri_field_calculator_splitter__ newName