WinGapSQL and GIS Mark Lovett & Rusty Scoven

Slides:



Advertisements
Similar presentations
Week 1: Introduction to GIS
Advertisements

KEYS TO SUCCESS DATA PREPARATION AND ORGANIZATION
© Paradigm Publishing, Inc Access 2010 Level 1 Unit 1Creating Tables and Queries Chapter 2Creating Relationships between Tables.
1 After completing this lesson, you will be able to: Create a database. Create a table using the Table Wizard. Create and modify a table in Design view.
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Committed to Shaping the Next Generation of IT Experts. Exploring Microsoft Office Access.
Concepts of Maintaining Your Data Simple Ways to Edit Your Data By Lorne Woods.
RGS-IBG Online CPD course in GIS Analysing Data in ArcGIS Session 6.
The main tools and functions of the system can be accessed via this side bar Allometric equations editor can be accessed under utilities, and user.
Annotation & Nomenclature By Corey Fortezzo for PG&G GIS Workshop, 2010.
Access Lesson 2 Creating a Database
Introduction to the Architecture of Arc GIS
Chapter 1 Databases and Database Objects: An Introduction
Creating Custom Forms. 2 Design and create a custom form You can create a custom form by modifying an existing form or creating a new form. Either way,
Technical Support: (989) GIS and Mapping Procedures in ArcMap 9.x Creating an ArcMap Project Editing an ArcMap Project Printing an ArcMap Project.
Access Tutorial 1 Creating a Database
ArcGIS Extensions Expanding the Use of ArcGIS
Create Forms Lesson 5. Software Orientation Creating Forms A form is a database object –enter, edit, or display data from a table or query Providing.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Editing in ArcMap:
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.
Chapter 3 Maintaining a Database
Unit J: Creating a Database Microsoft Office Illustrated Fundamentals.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
Advanced Forms Lesson 10.
ASP.NET Programming with C# and SQL Server First Edition
Chapter 1 Databases and Database Objects: An Introduction
Miscellaneous Excel Combining Excel and Access. – Importing, exporting and linking Parsing and manipulating data. 1.
Introduction to ArcGIS for Environmental Scientists Module 2 – Fundamentals Chapter 7 – Queries.
Systems Module Slide 2 – Overview and Navigation
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with MSSQL Server Code:G0-C# Version: 1.0 Author: Pham Trung Hai CTD.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T6: Basic Skills and Tools Using.
Copyright © 2006 by Maribeth H. Price 2-1 Chapter 2 Working with ArcMap.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
CSC 240 (Blum)1 Forms and Importing Data in Access.
ArcGIS: ArcMap Tables. Agenda Opening tables The interface Working with columns Working with records Making selections Advanced table tools ▫Add fields.
Microsoft Access 2010 Chapter 10 Administering a Database System.
® Microsoft Office 2013 Access Creating a Database.
McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T6 Basic Skills Using Access.
Maintaining a Database Access Project 3. 2 What is Database Maintenance ?  Maintaining a database means modifying the data to keep it up-to-date. This.
ATN GIS Support ArcGIS: ArcCatalog.
LBR & WS LAB 1: INTRODUCTION TO GIS.
ArcGIS: ArcCatalog. Agenda The ArcCatalog Interface General ArcCatalog ▫Navigating directories ▫Preview data ▫View metadata Advanced ArcCatalog ▫Modifying.
Intermacs Form Download Excel Tutorial Pivot Tables, Graphic Tools, Macros By: Devin Koehl.
* DataSpace. * What is DataSpace * DataSpace is a third party add-on to ArcGIS Desktop * Developed by US Bureau of Reclamations * Allows the user to arrange.
1 11 Exploring Microsoft Office Access 2007 Chapter 6 Data Protection.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
A GIS Data Management GUI for ArcMap
Intermacs Form Download Excel Tutorial Pivot Tables, Graphic Tools, Macros By: Devin Koehl.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
When the program is first started a wizard will start to setup your Lemming App. Enter your company name and owner in the fields designated “Company Name”
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms.
Esri UC 2014 | Technical Workshop | Editing in ArcMap: An Introduction Lisa Stanners, Phil Sanchez.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
Coastal Applications Using ArcGIS eCoastal Database Model Data Management Introduction to eCoastal Part II Exercise A Finding Coastal Data Exercise B Creating.
Unit 9 Seminar. Starting Reporting Services Reporting Service Started.
Relationship Class What is a Relationship Class (3)
Tutorial 1 Creating a Database
A Look at Creating & Updating Point Files
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.
Access Tutorial 1 Creating a Database
Chapter 4 MS ACCESS DATABASE.
Access Tutorial 1 Creating a Database
MODULE 7 Microsoft Access 2010
Access: Queries I Participation Project
Access Tutorial 1 Creating a Database
Access Tutorial 1 Creating a Database
Unit J: Creating a Database
Presentation transcript:

WinGapSQL and GIS Mark Lovett & Rusty Scoven 2015 WinGap Conference WinGapSQL and GIS Mark Lovett & Rusty Scoven

2018 V3 (DBF) Official Support Ends

Managing GIS data using database connections ArcMap for Desktop Basic License SSMS (Sequel Server Management Studio)

ArcMap Query Layer Stand alone table created from a connected database Provides for live updates from the database directly to the map project Must have a database connection in order to be created Utilizes SQL syntax in order to create the stand alone table Works much like a SQL view query Only exists within the map project it was created in Are read only Editable when accessed via certain types of services/licenses

From the catalogue tree create a database connection Double click Add Database Connection

Database Connection window will appear and be blank Must add the SQL Instance and the Authentication Type The Instance can be found within SSMS (see next slide) The Authentication Type for Windows Authentication will be Operating system authentication Those users that use password protected authentication will select Database Authentication and enter the user name and password

SQL Instance name as seen from SSMS

Back to the Database Connection window The Database can either be keyed or as a test to see if you entered the correct Instance and Authentication Type, you can click the drop down arrow and select the database you wish to query from. The Query Layer will only pull from that database

Once the database connection is established it will display in the Catalogue tree You can rename it by right clicking on it if you prefer or take the default It will default to being disconnected (appear with a red x beside it) To connect it double click the connection you created (red x will disappear and a + will appear to the left

Once connected you will be able to see all of the WinGap dbo tables within the database These dbo tables cannot and should not be renamed, deleted, copied, cut, changed or manipulated in any shape form or fashion Any manipulation of these tables could result in WinGap SQL malfunctioning If you are an individual that is click happy DO NOT click the + symbol

To create the Query Layer Go to: File>>>>>Add Data>>>>>Add Query Layer

The New Query Layer window opens

Select your database connection by clicking the drop down arrow A list of all the dbo tables within the database will appear

First give the query layer a name on the Name line As for the query, a couple of ways to skin this cat You can build the query by navigating through the list of dbo tables, selecting the table and then selecting the field names from the columns box OR you can use SSMS to build your query and copy and paste

After you have built your query you can click Validate to ensure it is correct and then click Finish

After you click finish the new Query Layer table will appear in the Table of Contents window

To view the table, right click on the table, and select Open

The attribute table will display showing the columns you selected in the query

The table will update as changes are made in WinGap SQL Example is Realkey 2, lets remove the Homestead Code in WinGap SQL

Once the change is made in WinGap SQL you must refresh the data so that it can update in ArcMap Refreshing the data can be done in two ways, closing the table and reopening it OR by selecting Reload Cache from the table while it is open

After performing either option to refresh the table will update

The Query Layer can be edited or changed to fit the user’s needs To edit the Query Layer, right click on the table, select properties

From the Source tab select Change Query

The Edit Query Layer will open You can now add or subtract from the original query

The Query Layer also allows for pulling data from multiple tables using SQL join commands For these types of queries I prefer SSMS but you can use the query window within ArcMap as well

Major benefit in using Query Layer is on the fly updates from WinGAP SQL Another PLUS is not having to maintain a bunch of fields within shapefile or geodatabase The Query Layer can be joined to spatial layers and as updates are made in WinGap SQL they will be reflected in the map

Attribute table from parcel data

To perform the join, right click on the shapefile, select Joins and Relates, the select Join

Join Data window appears Select the primary key to join the data on, click OK

Message below may appear Select Perform Join Now Without Index

Join occurs Open attribute table to review the joined data

For the update example lets look at Realkey 5723 Acreage discrepancy requires an update

Refresh the attribute table using the same method

Table updates

Can be used with symbology and thematic mapping updates To use symbology, right click on the layer you want to symbolize, then click properties

The Layer Properties window will appear Click on the Symbology tab, select categories, then select the field you wish to symbolize on followed by add all values

The example I am using is the Taxdistrict field from WinGapSQL The example shows a parcel that appears to be in the wrong Tax District

Click the refresh button from the map to see the update.

Using a SQL View with ARCGIS

SQL Views Creating SQL Views Joining SQL views with ARCGIS

Query from SSMS: Lets say you have a complex query, and you would like to use those results with your parcel data This a query that compares data from two different data years

CREATING A VIEW IN SIMPLE FORM CREATE VIEW view_name AS SELECT column_name(s) FROM table_name WHERE condition

CREATING A VIEW FROM THE SSMS QUERY CREATE VIEW view_name AS SELECT column_name(s) FROM table_name WHERE condition

Where does my VIEW live?

Adding the VIEW to ARCGIS

Joining the View to the Parcel Layer

Now Lets Display the Queried Parcels

Visual display of our data may indicate incorrect Neighborhood changes

Using joined data for analysis

Example: You want to determine if parcels are more valuable within a one mile radius of a school

In our example you have joined a Query Layer or a View to your Parcel Layer

Select by Location from PARCELS that are within a distance of 5,280 feet (1 mile) from SCHOOLS

Now you have selected all of the parcels within a one mile radius of the schools

Now you have your selection, lets move it to a usable report

Now you have a usable spreadsheet to use for analysis

What if you have a spreadsheet of information that you would like to Map and Analyze with your Parcel Data?

Example: You have been given a list of parcels that should have been combined. You want to determine if these combinations have been completed.

First you will add your Excel data to ARCGIS

Next step: Joining to our Parcel Layer

Now that you have joined the combination list to the parcel data you can select parcels by attributes from the Excel data. Using SELECT BY ATTRIBUTES You can select any parcel that was supposed to be Deleted as a result of a combination by selecting any parcel that has a Realkey from the Deleted Parcel

Now you have a visual representation of the parcels that should have been deleted per a combination with another parcel

WinGAPSQL + ARCGIS = Time Saving Analysis This is just a sampling of the many things that can be accomplished by using these two powerful tools! WinGAPSQL + ARCGIS = Time Saving Analysis