Top Banner
1 Chapter 6 CITYDATA & chmond’s Data Disseminatio Strategy
65

1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

Apr 01, 2015

Download

Documents

Porter Yule
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

1

Chapter 6

CITYDATA &Richmond’s Data Dissemination

Strategy

Page 2: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

2

What is CITYDATA?

• It is a City of Richmond Standard for distributing GIS data and functionality.

• It is an ArcMap Extension.

• It makes accessing information easier and faster!

Page 3: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

3

Geodatabase Data Warehouse

PersonalGeodatabase

We combine spatial and tabular data.

copytransformregistersummarizeindexbuild relationshipsset attribute domainspost to \\gis1\gisdata

Page 4: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

4

The Richmond GIS Team will install the CITYDATA .dll for you when we install or upgrade ArcGIS software.

At that point, you can access the CITYDATA application in ArcMap!

Page 5: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

5

Turn the extension on to load the CityData toolbar.

Load Layers

Query ParcelFeatures

Apply Template

Print From Template

Update C:\CityData

Page 6: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

6

Instructor led exercise - Begin

1) Turn on the CityData Extension.

2) Dock the toolbar to a command bar at the top of the GUI.

3) Click the LoadLayers command.

4) The LoadLayers form appears.

Page 7: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

7

4) Let’s examine how to load Parcel data into your map document. There are two pre-defined layers for doing this:

1. Parcels - Single Scale This is a single layer based on the Parcel feature class.

2. ParcelsThis is a group layer containing multiple references to the Parcel feature class and other sources.

Page 8: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

8

5) A closer look at the Parcel Group Layer:

If you zoom in close enough, then labels will appear.

Parcel layers are provided for optimal map display at three different scales. The ratio displayed here is the minimum viewable scale.

Scale-dependent layers may be identified by gray check boxes when the current map extent is outside the selected scale range.

Page 9: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

9

You may view or change the scale dependency settings by opening Layer Properties.

Page 10: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

10

Switching to “Source”will show you moreinformation about howthe data is organized.

Page 11: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

11

6) Try “Loading” 2 more layers. Example: Water and Census

Notes: • Census adds Tracts, Block Groups, & Block data.• Water loaded two types of hydro features.• What happens when you zoom in close to Census Blocks?

More about this later.

Page 12: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

12

7) The QueryParcel command is enabled when a valid Parcel source is found in the Document’s Table of Contents.

You can:• Use <Space> key for a wildcard character• Search by Address• Search by PIN (map reference number)• Automatically label property when located• Pick from multiple query results when more than one address is found.

Page 13: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

13

8) Assume that you want to print a map. The Apply Template and Print From Template commands are used to make this task easy.

You have a variety ofchoices for template size

Print command is enabledin Layout View only.

Page 14: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

14

9) After you ‘click’ apply, you need to tell ArcMap where to display

a) b)

c)

Page 15: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

15

10) Templates will automatically include an inset map. You must provide information about the name of data frame that should go inside of which area of the map.

Use the “Move Up” or “Move Down” buttons to assign.

Page 16: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

16

11) At this point, CityData knows you are creating a map for hardcopy output. It is likely that you need to establish a printer/plotter and that you should save your ArcMap Document (*.mxd).

12) You are prompted to add a title

13) Save your ArcMap Document

Page 17: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

17

Notes about Templates:

• Automatically switched to “Layout” view.• The location of the file is always tracked in the document!• Scale and scale bar is automatically generated.

Page 18: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

18

Notes about Templates:

• Automatically switched to “Layout” view.• The location of the file is always tracked in the document!• Scale and scale bar is automatically generated.

Page 19: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

19

Instructor led exercise - End

Page 20: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

20

Chapter 6

Exercise

Page 21: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

21

Chapter 7

Geodatabase

Page 22: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

22

• You need to understand how information is stored in ArcGIS Geodatabase.

• “CityData” is both an ArcGIS extension and application for ArcMap and what is referred to as a “Personal Geodatabase”

• In this chapter, we will also look at what is maintained under your C:\CityData\ directory on your PC.

What’s in store this chapter?

Page 23: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

23

Windows Explorer ArcCatalog

Page 24: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

24

Windows Explorer ArcCatalog

Page 25: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

25

When you use “Load Layers,” thereis code that accesses information fromone of three Geodatabases.

Page 26: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

26

What is a Geodatabase

A Geodatabase is a store of geographic data implemented withThe relational database of your choice.

• The City maintains a central Geodatabase in SQLServer, which is used to edit, maintain and process data.

• If you are not a custodian who is editing a geographic layer, then you are using the Personal Geodatabase, which is delivered as a Microsoft Access database.

Page 27: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

27

DB_REALESTATE contains:

Feature Data Set

Feature Class(es)

Table(s)

Relationship Class(es)

• Topology• Geometric Networks• Domains• Metadata

Page 28: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

28

What comprises a Geodatabase?

• Feature Data Set

• Feature Class

Contains spatially related feature classes together withthe topology and network objects that bind them.feature classes in a feature data set share a spatial reference.

A table with a shape field containing point, line, or polygon geometries for geographic features.

• Table A collection of rows, each containing the same fields. Tables represent non-geographicobjects. (You can think of these as the“attributes”)

• Relationship Classes• Topology• Geometric Networks• Domains• Metadata

Page 29: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

29

What is a Relationship?

In a RDBMS, there are many tables with primary and foreign key fields, which contain values that “relate” associated information.

Example:CUSTOMER_NUMBER NAME ADDRESS

112 JOE BLOW 111 ELM ST113 JUNE JACOBS 23 PINE ST114 STEVE WALDRON 901 HERBERT ST

CUSTOMER_NUMBER ORDER112 3444112 3445112 3446113 3447114 3448114 3449114 3450114 3451

ORDER BOOK3444 Novel 13444 Novel 23445 Novel 3

Page 30: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

30

CityData example:

PARCELE0030202001E0030202002E0030202003E0030202004E0030202005

PARCEL ST_DIR ST_DIR ST_NAME ST_TYPEE0030202001 123 E MAIN STE0030202002 125 E MAIN STE0030202003 127 E MAIN STE0030202004 129 E MAIN STE0030202005 131 E MAIN STE0030202005 133 E MAIN ST

PARCEL OWNER MAIL ADDRESS STATE VALUEE0030202001 David Troutman 123 E MAIN ST VA $200,000E0030202002 Matt Stover 125 E MAIN ST VA $170,000E0030202003 Doug Adams & Susan 127 E MAIN ST VA $210,000E0030202004 Joe Smith & Sally 129 E MAIN ST VA $70,000E0030202005 XYZ Corporation 1600 MCDERMOTT FWY TX $1,200,000

CENTRAL ADDRESSPROVAL (CAMA)

We will discuss Relationship Classes in next chapter

Page 31: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

31

Geodatabase Data Warehouse

PersonalGeodatabase

In a perfect world, all City information is tracked inside one holistic database, that would include the Geodatabase modeledfeatures.

• Reality = Many Systems, many formats, many RDBMSs.

• Our Solution = Data Warehouse, SQLServer Geodatabase; Personal Geodatabase distribution.

Page 32: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

32

Instructor led exercise - Begin

Browsing Geodatabases.

Instructor led exercise - End

Page 33: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

33

Chapter 8

Joins & Relates

Page 34: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

34

Tables can be added to ArcMap just like geographic data.

• Tables contain attributes• We attempt to deliver most things you’ll need from the data warehouse with “CityData,” but we can’t predict all your needs• You may have your own data that you want to load into ArcMap in order to map and analyze.

First, you will observe an Instructor-led demo.

Second, you will perform a scripted class exercise.

Page 35: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

35

• In GIS you do NOT usually store all attributes you know about feature classes as part of the feature.

• Attributes are stored separately, in other DBMS or file(s).

• You add data from DBMS or file(s) into ArcMap and then Relate, or Join that information to the feature class to use the data.

Scenario: Someone has given you some Census 2000 Housing Unit information. You know that CityData already contains the Census data. Therefore, you can load Census2000 from CityData and add the attribute data from the data file into ArcMap.

Page 36: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

36

Steps: 1) Load Census2000 Feature Dataset from CityData

a.

b.

c.

Page 37: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

37

2) Add data table into ArcMap

Page 38: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

38

Visualize how a “Join” works:

Housing Units data table

Page 39: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

39

How to “Join”

3) Right-click on feature class layer you with to Join data “to”:

• Select “Joins and Relates”• Select “Join”

Page 40: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

40

4) Fill out the “Join Data” dialog box to define data tables to be used and which fields are to be used in the join.

Page 41: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

41

Be sure to click “Advanced” and select the “Keep only matching records”Option (if you are certain that you have complete data).

• Will ensure faster queries and thematic mapping

Page 42: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

42

Notice that “housing.field” now appears for mapping andother ArcMap activities.

Page 43: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

43

Chapter 8

Exercise

Page 44: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

44

Chapter 9

Joins & CityData

Page 45: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

45

70

Entity Relationship Design

One of the more difficult things to do is research how tablesare relating to one another, via the primary and foreign keys.

With the data warehouse and CityData, we are predefining howCity Government databases are joined to properties!

Page 46: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

46

Relationship Classes

A relationship class associates objects from afeature class or table to objects in anotherfeature class or table. Relationship classescan optionally have user-defined fields.

Page 47: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

47

We have predefined the relationships betweenthe Parcel Feature Class and data from the data warehouse.

• Records highlighted in green are of interest to users.

• Blue records illustrate cases where feature classes are actually related to other feature classes, not separate tables.

FCLASS RELATIONSHIP CLASS TABLE WAREHOUSE SOURCE

Parcel Parcel_AddressLabel AddressLabel Central Address

Parcel Parcel_Asr Asr ProVal

Parcel Parcel_AssessmentSum AssessmentSum ProVal/Geodatabase

Parcel Parcel_CA1 CA1 Central Address

Parcel Parcel_GPIN GPIN (FCLASS) Geodatabase

Parcel Parcel_LandUseSum LandUseSum ProVal/DCD look-up

Parcel Parcel_PIN PIN ProVal/ (MRN)

Parcel Parcel_PINLabel PINLabel Geodatabase

Parcel Parcel_Sale Sale ProVal

ParcelHistory ParcelHistory_PIN ParcelHistory (FCLASS) Geodatabase

Page 48: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

48

Instructor led exercise - Begin

Instructor Led Demonstration

Instructor led exercise - End

(ArcMap “Identify” tool illustratesRelationship Classes.)

Page 49: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

49

So how do I perform joining of data tables to feature classes in CityData?

When joining data to parcels, we have already predefined how data is supposed to relate.

You simply choose the Relationship Class that you want to use.

• As of the Fall, 2002, CityData only contains data from Assessor’s data marts and Central Address for Joins.

Note:

Page 50: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

50

When joining data to parcels for mapping values, you should try to use the “Single Scale” version of properties.

(Or, if you use “Parcels,” try to use lower scale layers)

Page 51: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

51

Notice when you right-click, the Join Data dialog box automaticallyrecognizes the fact that a Relationship Class exists.

All you have to do ischoose the RelationshipClass that relates the data you want to map oranalyze.

Page 52: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

52

There is a scrolling list of available Relationship Classes.

When you have a 1-many relationship, you cannot perform a join using Relationship Classes.You will have to use “Relates” (later Chapter)

Page 53: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

53

You must know the business logic or details of the informationyou are trying to use!

Page 54: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

54

1-many relationships 1-1 relationships

“Asr” – A property canhave more than one PIN.(e.g. Condos, Industry Sites, Commercial Sites)

“AssessmentSum” – solves the1-many problem in “Asr,” becausewe have summed up the valueswhere there were multiple PINs(or what you may call map reference numbers)“CA1” – A property can

have more than on addresson it. (e.g. strip mall, multi-housing)

“LandUseSum” – each propertyis identified by Assessor OfficeProperty Classification Codes.

“PropClass” – does not actuallyrelate straight to parcel featureclass. Rather, this is used to assign a general land use type toProperty Class Code values.

“Sales” – A property shouldhave more than one salesdata event.

“PIN” – A property can have more than one PIN,or you may call it a map reference number.

Page 55: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

55

Notice that after a “Join” is made using Relationship Class, thatthe “RelationshipClassName.Field” is available for things such asmapping.

Page 56: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

56

Chapter 9

Exercise

Page 57: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

57

Chapter 11

Relates(Dealing with 1-Many Relationships)

Page 58: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

58

Relationship Classes know how to work with a 1-1 or 1-many.

Relate lets you associate data with this layer. The associateddata isn’t appended into this layer’s attribute table like it is in a Join. Rather, you access related data through attributetables.

• You can work with CityData, predefined relationship classes. or• You can load in your own table and establish a relate.

Page 59: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

59

Instructor led exercise - Begin

1) Load Parcels from CityData

2) Right-click on Parcels and navigate to “Open Attribute Table”

Demonstrate with Sales and parcels

Page 60: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

60

Always establish the CityData predefined Parcel ‘Relates’ from the ‘Attributes of Parcels’ table. (Do not establish by right clicking on layer and going directly to ‘Relates’)

Page 61: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

61

3) Click on ‘Options’ to access predefined ‘Relates’

4) Choose ‘Sale’

Page 62: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

62

5) Notice that ‘Sale’ table is automatically loaded into ArcMap

Notice how PINscan repeat (many sales)

You can now perform queries on either the parcels feature classor on the ‘Sale’ table. The relating records in both tables can behighlighted following queries.

Instructor led exercise - End

Page 63: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

63

Instructor will continue to illustrate how ‘Relates’ can be used for analysis/querying.

6) Selection of 7 parcels does grab 7 records in ‘Attributes of Parcels’

Note: ThereAre no selectedCorrespondingRecords in ‘Sale’Table.

Page 64: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

64

7) After queries are made on Parcel feature class or ‘Sale’ table, you must refresh the ‘Relate’ to show highlighted records in related table.

Page 65: 1 Chapter 6 CITYDATA & Richmond’s Data Dissemination Strategy.

65

8) Finally, you may want to take your results and either:• Create a ‘Layer’ from selected features that resulted from

query in ‘many’ table.• Export selected records to be used in reporting capabilities.