Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,000 --> 00:00:03,870
I'd like to show you how to work with tables inside of ArcMap.
2
00:00:03,870 --> 00:00:05,740
This might be adding a new field,
3
00:00:05,740 --> 00:00:07,289
also known as a Column,
4
00:00:07,289 --> 00:00:09,970
it might be performing a calculation on that field,
5
00:00:09,970 --> 00:00:13,200
it might be calculating the geometry, in other words,
6
00:00:13,200 --> 00:00:15,510
the area or the perimeter of something,
7
00:00:15,510 --> 00:00:17,680
or it might be actually joining two tables together.
8
00:00:17,680 --> 00:00:19,715
So, let's have a look at how all that works.
9
00:00:19,715 --> 00:00:23,190
So, here I have a very basic map of North America,
10
00:00:23,190 --> 00:00:25,120
and I'm just going to add in two datasets,
11
00:00:25,120 --> 00:00:28,890
one of them is called Provinces which is actually provinces and territories,
12
00:00:28,890 --> 00:00:32,825
and a table here called Prov Pop
13
00:00:32,825 --> 00:00:37,115
which is the populations for those provinces and territories.
14
00:00:37,115 --> 00:00:39,380
So, you'll notice that, a couple of things,
15
00:00:39,380 --> 00:00:40,880
one is that it automatically gave
16
00:00:40,880 --> 00:00:44,100
my provinces and territories green color which is yeah, it's okay.
17
00:00:44,100 --> 00:00:46,440
It's not fantastic, but I guess we can live with it.
18
00:00:46,440 --> 00:00:53,980
Then secondly, because I added in a table that's not a GIS mappable file,
19
00:00:53,980 --> 00:00:59,280
it automatically switched to the list by Source View.
20
00:00:59,280 --> 00:01:03,570
So, you'll see here that the little icon indicates that this is a table.
21
00:01:03,570 --> 00:01:06,765
So, this table, if I go back to this side,
22
00:01:06,765 --> 00:01:08,460
you'll see that's the same table there.
23
00:01:08,460 --> 00:01:10,040
It is in fact,
24
00:01:10,040 --> 00:01:12,500
inside a file geodatabase.
25
00:01:12,500 --> 00:01:15,795
So, it is in a GIS file format,
26
00:01:15,795 --> 00:01:18,730
but there's nothing in that file,
27
00:01:18,730 --> 00:01:22,950
in that table, that allows the software to automatically map it.
28
00:01:22,950 --> 00:01:26,530
In other words, there are no coordinates associated with that dataset.
29
00:01:26,530 --> 00:01:30,435
It's literally just a table with some fields and records.
30
00:01:30,435 --> 00:01:33,680
So, one of the things we're going to do is map that by joining it
31
00:01:33,680 --> 00:01:38,360
to the provinces feature class that is mappable, but we'll get to that.
32
00:01:38,360 --> 00:01:40,195
Let's do this one thing at a time.
33
00:01:40,195 --> 00:01:43,065
So, one of the things I wanted to point out is that,
34
00:01:43,065 --> 00:01:44,480
in this list by Source View,
35
00:01:44,480 --> 00:01:48,460
you'll see that we have two file geodatabases being used.
36
00:01:48,460 --> 00:01:51,265
This is one I created with my data for Canada,
37
00:01:51,265 --> 00:01:56,770
and this is a separate file geodatabase I have with some base map data for the world.
38
00:01:56,770 --> 00:01:58,980
So, just country, graticule, or water.
39
00:01:58,980 --> 00:02:02,440
So, I just put that in a separate file geodatabase.
40
00:02:02,440 --> 00:02:04,785
You can have it in the same one. It doesn't really matter.
41
00:02:04,785 --> 00:02:07,250
But the main thing I wanted to point out here is that,
42
00:02:07,250 --> 00:02:09,600
often if you're new to the software,
43
00:02:09,600 --> 00:02:11,485
when you add a table in,
44
00:02:11,485 --> 00:02:13,720
you may not notice that it's not listed.
45
00:02:13,720 --> 00:02:20,405
If I go back to Listing by Drawing Order,
46
00:02:20,405 --> 00:02:22,970
you'll see that that table doesn't appear there
47
00:02:22,970 --> 00:02:25,430
because it's not something that can be drawn.
48
00:02:25,430 --> 00:02:27,835
It's a table. It's not something that's mappable.
49
00:02:27,835 --> 00:02:30,935
So, often people will add something and going to go, "Where to go?What happened to it?"
50
00:02:30,935 --> 00:02:33,910
Well, it is there. It's just not under that tab.
51
00:02:33,910 --> 00:02:37,160
But if you go to this one, List by Source, then you will see it.
52
00:02:37,160 --> 00:02:39,560
So, it's showing us that there's two different sources here,
53
00:02:39,560 --> 00:02:41,325
two different file geodatabases,
54
00:02:41,325 --> 00:02:44,530
and it's listing all of the tables, feature classes,
55
00:02:44,530 --> 00:02:45,590
et cetera that we have,
56
00:02:45,590 --> 00:02:47,660
based on where they're located,
57
00:02:47,660 --> 00:02:49,280
what source they are in.
58
00:02:49,280 --> 00:02:50,520
So, you'll see here,
59
00:02:50,520 --> 00:02:53,865
for example, that both of these are on my Z drive,
60
00:02:53,865 --> 00:02:55,775
just in the root folder,
61
00:02:55,775 --> 00:02:59,980
and it's listing them according to their location.
62
00:02:59,980 --> 00:03:01,800
Okay, so for example,
63
00:03:01,800 --> 00:03:05,145
we can open up the Attribute Table for provinces,
64
00:03:05,145 --> 00:03:10,065
and you'll see that we have some different fields here.
65
00:03:10,065 --> 00:03:13,920
So, the object ID field is added automatically by the software,
66
00:03:13,920 --> 00:03:16,430
that's something that the software uses to keep track of all of
67
00:03:16,430 --> 00:03:20,535
the objects or records or things inside a data file.
68
00:03:20,535 --> 00:03:23,190
I would highly recommend that you just ignore it.
69
00:03:23,190 --> 00:03:27,120
It's almost never going to be used by anything by you as a user.
70
00:03:27,120 --> 00:03:30,070
I'm honestly not even sure why they show that but they do.
71
00:03:30,070 --> 00:03:35,730
Then you see a column here that just says polygon or the name of the shape,
72
00:03:35,730 --> 00:03:39,320
that links to the actual coordinates for this feature class.
73
00:03:39,320 --> 00:03:40,970
You can't see them, you can't access them.
74
00:03:40,970 --> 00:03:43,100
Again, it's a column and I'm not sure why they show it to you,
75
00:03:43,100 --> 00:03:46,270
other than to state the obvious that these are polygons.
76
00:03:46,270 --> 00:03:49,245
Then we have the fields that belong to this table.
77
00:03:49,245 --> 00:03:52,030
So, we have province and code.
78
00:03:52,030 --> 00:03:54,950
Those are the two main ones, and then we have two fields here that are
79
00:03:54,950 --> 00:03:58,010
added automatically because it's inside a geodatabase.
80
00:03:58,010 --> 00:04:04,010
So, it's automatically calculating the perimeter and the area of each of these objects.
81
00:04:04,010 --> 00:04:06,175
You can see these are quite large numbers,
82
00:04:06,175 --> 00:04:07,740
and my guess is that,
83
00:04:07,740 --> 00:04:10,100
that these are in meters,
84
00:04:10,100 --> 00:04:14,660
and so they're not necessarily the most useful numbers for us.
85
00:04:14,660 --> 00:04:16,220
So, I'll actually show you how to calculate
86
00:04:16,220 --> 00:04:19,390
your own area values in the units that might be more useful for you.
87
00:04:19,390 --> 00:04:22,205
It's very easy to add a field to a table.
88
00:04:22,205 --> 00:04:25,190
You can just select here,
89
00:04:25,190 --> 00:04:27,125
in this little icon in the corner.
90
00:04:27,125 --> 00:04:30,410
Select Add Field, and then you'll be presented with
91
00:04:30,410 --> 00:04:33,510
this dialog box where you can name the field whatever you want.
92
00:04:33,510 --> 00:04:36,710
So, in this case, I will name it Area.
93
00:04:36,710 --> 00:04:40,625
You have to know the type of field that you want to create.
94
00:04:40,625 --> 00:04:42,190
There are different ones available.
95
00:04:42,190 --> 00:04:43,610
So, some of them,
96
00:04:43,610 --> 00:04:49,730
like the integer ones don't have space or storage space available for decimal places,
97
00:04:49,730 --> 00:04:52,040
other ones, like Float and Double do.
98
00:04:52,040 --> 00:04:55,360
So, in this case, I'm going to go with Double.
99
00:04:55,360 --> 00:04:57,800
It's a safe bet you usually use,
100
00:04:57,800 --> 00:05:00,375
and if you want you can use an alias.
101
00:05:00,375 --> 00:05:01,700
So, what that is, it's sort of
102
00:05:01,700 --> 00:05:04,350
a longer name that doesn't have as many restrictions on it.
103
00:05:04,350 --> 00:05:08,720
For the software, it's just a way of having a more user friendly name if you want.
104
00:05:08,720 --> 00:05:15,165
So, for example, here I could say area parentheses sq km parentheses.
105
00:05:15,165 --> 00:05:21,205
So, for example, those parentheses aren't allowed in the actual real field name,
106
00:05:21,205 --> 00:05:23,340
but they can be used in an alias.
107
00:05:23,340 --> 00:05:26,440
It's just the way the database is set up, so it's just a little tip.
108
00:05:26,440 --> 00:05:28,410
So, if I say Okay,
109
00:05:28,410 --> 00:05:32,145
you'll see that it's automatically using the alias as the header,
110
00:05:32,145 --> 00:05:36,180
but the actual technical real name for that field is just Area.
111
00:05:36,180 --> 00:05:38,070
You'll notice that it's filled with nulls.
112
00:05:38,070 --> 00:05:39,770
So, even though I said area,
113
00:05:39,770 --> 00:05:41,205
even though I said square kilometers,
114
00:05:41,205 --> 00:05:42,490
the software is not a mind reader.
115
00:05:42,490 --> 00:05:44,355
It doesn't know that that's what I want to calculate.
116
00:05:44,355 --> 00:05:47,610
So, I have to then tell it how to do that calculation.
117
00:05:47,610 --> 00:05:52,370
We can just right click on that and say Calculate Geometry.
118
00:05:52,370 --> 00:05:54,940
So, we can choose the property that we want to calculate.
119
00:05:54,940 --> 00:05:56,170
In this case, it could be Area,
120
00:05:56,170 --> 00:05:58,160
Perimeter or the Centroids which is
121
00:05:58,160 --> 00:06:01,415
the x and y coordinates for the center of each of the polygons.
122
00:06:01,415 --> 00:06:03,010
I'm just going to stay with the Area,
123
00:06:03,010 --> 00:06:06,080
and then it will ask me which coordinate system I want to use.
124
00:06:06,080 --> 00:06:08,030
Unfortunately, I've already chosen
125
00:06:08,030 --> 00:06:11,474
a projected coordinate system that's an equal area projection,
126
00:06:11,474 --> 00:06:13,160
so that when I calculate areas,
127
00:06:13,160 --> 00:06:17,480
they will be calculated correctly because I'm using one where there's
128
00:06:17,480 --> 00:06:19,580
less distortion and the areas are better
129
00:06:19,580 --> 00:06:23,985
maintained for the size of the area that I want to do the calculation for.
130
00:06:23,985 --> 00:06:27,270
So, then we can go down to the units and select those.
131
00:06:27,270 --> 00:06:29,360
I'm going to select Square Kilometers,
132
00:06:29,360 --> 00:06:30,925
and that's really all there is to it.
133
00:06:30,925 --> 00:06:33,000
So, now if I click Okay,
134
00:06:33,000 --> 00:06:36,720
it's actually calculating the area for every polygon.
135
00:06:36,720 --> 00:06:38,750
It's looking through all of the geometry,
136
00:06:38,750 --> 00:06:41,340
the vector, coordinates, doing that calculation.
137
00:06:41,340 --> 00:06:44,390
So, now we have our result down here where we
138
00:06:44,390 --> 00:06:49,870
have the area that I've calculated in square kilometers.
139
00:06:49,870 --> 00:06:52,175
So, you'll see here, for example, that this is,
140
00:06:52,175 --> 00:06:57,050
what is it, 663,196 square kilometers.
141
00:06:57,050 --> 00:06:59,600
So, I'm guessing that I was right that
142
00:06:59,600 --> 00:07:01,950
that's in square meters because the number is basically the same.
143
00:07:01,950 --> 00:07:03,665
It's just the decimal places moved
144
00:07:03,665 --> 00:07:06,625
because that's in square meters versus square kilometers.
145
00:07:06,625 --> 00:07:09,100
Okay. So, this is easier for us to work with,
146
00:07:09,100 --> 00:07:11,750
square kilometers is a more intuitive unit when
147
00:07:11,750 --> 00:07:15,070
you're talking about areas as large as these.
148
00:07:15,070 --> 00:07:18,600
So, now we figured out how to add a field and we've performed to
149
00:07:18,600 --> 00:07:23,754
Calculate Geometry functions so that we know the areas of the provinces and territories.
150
00:07:23,754 --> 00:07:25,940
Now, what if I'm interested in calculating
151
00:07:25,940 --> 00:07:29,540
population density or even knowing what the populations are for each of these?
152
00:07:29,540 --> 00:07:31,190
You'll notice that in this attribute table,
153
00:07:31,190 --> 00:07:32,890
I don't have population in there,
154
00:07:32,890 --> 00:07:36,260
but if I open up my Prov Pop table,
155
00:07:36,260 --> 00:07:38,930
as you may already have suspected,
156
00:07:39,580 --> 00:07:43,930
I do have population values going from 2001,
157
00:07:43,930 --> 00:07:47,090
2006, 2011, and I have a code
158
00:07:47,090 --> 00:07:51,610
here which corresponds to the code column in my provinces table.
159
00:07:51,610 --> 00:07:53,375
If I switch back to that,
160
00:07:53,375 --> 00:07:59,590
you'll see here, I've got a code field here,
161
00:08:00,680 --> 00:08:03,955
and the same code field here,
162
00:08:03,955 --> 00:08:08,440
and so I can actually use those to join those two tables together dynamically,
163
00:08:08,440 --> 00:08:10,900
and what that will basically do is,
164
00:08:10,900 --> 00:08:13,750
allow me to treat them as though it's one big table.
165
00:08:13,750 --> 00:08:16,010
It's not being stored permanently that way.
166
00:08:16,010 --> 00:08:18,800
It's just something that's being done on the fly.
167
00:08:18,800 --> 00:08:21,580
I'm telling it to treat those two tables as though they're joined
168
00:08:21,580 --> 00:08:24,925
together and then we can use the population data from
169
00:08:24,925 --> 00:08:27,475
my non-GIS table with
170
00:08:27,475 --> 00:08:33,020
the province geometry or the polygons for my provinces feature class,
171
00:08:33,020 --> 00:08:34,810
and then I'll be able to map the data from
172
00:08:34,810 --> 00:08:37,920
the non-GIS table into the one that is mappable.
173
00:08:37,920 --> 00:08:41,290
I'll show you how that works. So, I right-click
174
00:08:41,290 --> 00:08:45,580
on the table that I want to join, the table two.
175
00:08:45,580 --> 00:08:48,925
So, I'm going to select Joins and Relates, Join.
176
00:08:48,925 --> 00:08:54,335
I'm going to join based on the attributes from a table,
177
00:08:54,335 --> 00:08:58,880
and I'm going to use the code field for that and then I'm going to join
178
00:08:58,880 --> 00:09:03,825
the Prov Pop table to my provinces feature class,
179
00:09:03,825 --> 00:09:10,575
and it just so happens that I've named the field in the Prov Pop table the same thing.
180
00:09:10,575 --> 00:09:12,360
So, it's code. It doesn't have to be.
181
00:09:12,360 --> 00:09:15,940
As long as the entries correspond correctly, that's fine.
182
00:09:15,940 --> 00:09:17,470
I could've called it anything I want.
183
00:09:17,470 --> 00:09:19,650
I just made it simple so that they both match up.
184
00:09:19,650 --> 00:09:23,320
But just so you know, they don't have to match in terms of the field names.
185
00:09:23,320 --> 00:09:25,985
They do have to match in terms of the field type
186
00:09:25,985 --> 00:09:29,345
and the entry so that they match up correctly.
187
00:09:29,345 --> 00:09:33,685
I'm going to say keep all records and click Okay.
188
00:09:33,685 --> 00:09:36,960
So, now if I go back to my provinces table,
189
00:09:36,960 --> 00:09:40,370
you'll notice that not only do I have all the original data I had from
190
00:09:40,370 --> 00:09:44,775
the provinces feature class but it's added onto the end,
191
00:09:44,775 --> 00:09:49,790
the data from my Prov Pop table, okay?
192
00:09:49,790 --> 00:09:53,810
So, now that's not permanently attached to it.
193
00:09:53,810 --> 00:09:55,700
It's just there dynamically,
194
00:09:55,700 --> 00:09:57,720
is one way of thinking of it virtually,
195
00:09:57,720 --> 00:10:00,200
so that it's pretending if you want that that
196
00:10:00,200 --> 00:10:03,680
data is attached to that table but we now have access to it.
197
00:10:03,680 --> 00:10:09,870
So, let's see. If I go to Provinces and Properties,
198
00:10:09,870 --> 00:10:13,490
Quantities, Graduated colors, I now have access to that
199
00:10:13,490 --> 00:10:17,130
population data from my non-mappable table.
200
00:10:17,130 --> 00:10:18,720
So, now I can map it, which is great.
201
00:10:18,720 --> 00:10:19,920
This is a very common function.
202
00:10:19,920 --> 00:10:22,290
It's not the only time you want to join tables together,
203
00:10:22,290 --> 00:10:25,880
but it's a very common thing where you found data in an Excel table
204
00:10:25,880 --> 00:10:29,430
or a CSV file or some other format that's not a GIS format,
205
00:10:29,430 --> 00:10:32,780
and you want to be able to bring it in and then make use of it in your GIS software.
206
00:10:32,780 --> 00:10:35,935
So, joining tables is one way to be able to do that.
207
00:10:35,935 --> 00:10:39,640
Now, of course, I don't really want to make a choropleth map of just population.
208
00:10:39,640 --> 00:10:40,950
I want to normalize it,
209
00:10:40,950 --> 00:10:43,860
and so, I can under normalization,
210
00:10:43,860 --> 00:10:50,320
use the area that I already calculated and say Okay.
211
00:10:52,390 --> 00:11:00,810
So, now I have population density choropleth map done for the provinces and territories.
212
00:11:00,810 --> 00:11:03,000
So, I was able to use my Spatial Join,
213
00:11:03,000 --> 00:11:07,115
I added a field, I did field calculation,
214
00:11:07,115 --> 00:11:09,630
or Calculate Geometry, and so, now we have that.
215
00:11:09,630 --> 00:11:11,450
Actually, speaking of field calculations,
216
00:11:11,450 --> 00:11:12,850
let me just show you quickly how that would work,
217
00:11:12,850 --> 00:11:14,265
as if I wanted to,
218
00:11:14,265 --> 00:11:18,020
I could add a field, call it Density.
219
00:11:18,470 --> 00:11:20,880
Again, I'll make it a Double,
220
00:11:20,880 --> 00:11:22,860
and I'll just leave it at that.
221
00:11:22,860 --> 00:11:27,220
If I wanted to actually calculate density,
222
00:11:27,220 --> 00:11:29,040
I can say Field Calculator,
223
00:11:29,040 --> 00:11:36,540
and then you'll notice that it says provinces dot and then the name of the field, right?
224
00:11:36,540 --> 00:11:39,185
So, Provinces.Code and so on.
225
00:11:39,185 --> 00:11:43,660
That's telling you that those are fields that belong to the provinces feature class,
226
00:11:43,660 --> 00:11:45,990
and if I scroll down,
227
00:11:45,990 --> 00:11:50,680
you'll see that there are also fields that belong to the Prov Pop table.
228
00:11:50,680 --> 00:11:54,835
So, I'm able to access both sets of fields,
229
00:11:54,835 --> 00:11:59,145
and it's just indicating to me which fields belong to which table.
230
00:11:59,145 --> 00:12:04,625
So, I could say population 2011
231
00:12:04,625 --> 00:12:10,165
divided by area, say Okay.
232
00:12:10,165 --> 00:12:16,300
So, now that's going to do a calculation to populate the fields that I call density,
233
00:12:16,300 --> 00:12:18,140
sorry for the pun there I suppose.
234
00:12:18,140 --> 00:12:24,710
So, now I have a permanence calculation that's been done here,
235
00:12:24,710 --> 00:12:29,570
so that that's my population density values for each of the provinces and territories,
236
00:12:29,570 --> 00:12:32,435
and you'll see that it says Provinces.Density,
237
00:12:32,435 --> 00:12:35,120
so that it's indicating to me that that density calculation was
238
00:12:35,120 --> 00:12:38,060
done on the provinces feature class.
239
00:12:38,060 --> 00:12:40,550
Okay, so that's how you do a field calculation.
240
00:12:40,550 --> 00:12:42,040
So that's basically it.
241
00:12:42,040 --> 00:12:44,180
Just a quick overview of how to work with tables.
242
00:12:44,180 --> 00:12:45,280
So, joining them together,
243
00:12:45,280 --> 00:12:48,005
adding a field, doing a field calculation,
244
00:12:48,005 --> 00:12:50,480
and calculating geometry so that you can take
245
00:12:50,480 --> 00:12:54,070
data that's not mappable and turn it into something that is mappable,
246
00:12:54,070 --> 00:12:55,700
or maybe you want to do a calculation for
247
00:12:55,700 --> 00:12:58,820
any other reason but whatever it is, now you know how to do it.20779
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.