Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Making selections

From: Up and Running with ArcGIS

Video: Making selections

It's fairly common for geospatial datasets to include lots of Now what if I wanted to go through it and add in a couple of other Airports.

Making selections

It's fairly common for geospatial datasets to include lots of features that are outside of the scope of our specific needs. In the case of our map, we have a global collection of airport locations when we might only be interested in the United States locations. Getting comfortable with the selection tool will help us get a collection or subset of this data. That is easier for us to manage, and better suited for the map that we want to make. Now, all of the selection tools are here, on the toolbar called Select Features. going to go ahead and select it. And before we get started, let's go into our Bookmarks and zoom into the United States.

Now, when I use the Select Features tool and click on a State, you'll see that it gets a bright blue border to indicate that it's selected. If I click on a different State, it'll deselect the first one and select the second one. As I click around on different States, you'll that each one gets selected and it de-selects the others. If I want to make a selection of multiple states, I'll just hold down the Shift key. And now, when I click on the States, it'll add them to a global selection of States. Now, what happens if I want to select one of the airports? If I click on this airport, here, in Salt Lake City, you'll notice that it selects the airport and it also selects the State.

Now we can control which layers of our map get selections over here in the Table Of Contents. I'll click on this button here that says List by Selection. And when I do that I can see that in my selected group I have Airports and I have States and Provinces. In my No Features selected section I've got Time Zones. And in Not Selectable, I've got Gradicules and Bounding Boxes. Now, within the selected group, I can see that I have one Airport and one State and Providence selected. I've got two buttons here this one here will toggle a selectable State. If I turn it off it will make it Not Selectable, so I can no longer select airports.

If I turn it on, now I can select Airports. And then this button here will clear the features in that group that are currently selected. So if I just wanted that Airport, what I can do is clear the States and Province selection from my selection group. And now I can see that I have one Airport selected, and no States and Provinces selected. Now what if I wanted to go through it and add in a couple of other Airports. We'll hold down the Shift key and click on the Next Airport and while it adds that Airport to the group, it also selected the State again. So what I can do is turn off the selection ability of my States and Provinces, and now that no longer will happen.

If I hold down the Shift key and click on an Airport, it won't add the State to my group. Now I still have that one State selected, so once again I'll go to States and Provinces. And clear the selection from that group. Now, let's go through a couple of exercises. What if I wanted to select all of the airports that match a certain type? For instance, I'm going to use the identify tool here, and select the Sky Harbor International Airport. And you'll notice that, in the identify window. I'm going to drag that, and put it here in the middle of the screen, that Sky Harbor International is of the Type, Major. So what if I wanted to find all of the airports in the whole world, that were of the same type? They were all major airports.

Well, I can make use of this attribute here, in a selection. I'm going to go ahead and close the Identify box. And up on the Selection menu, we've got two options: Select By Attributes and Select By Location. Let's first take a look at Select By Attributes. The Select By Attributes window asks me which layer I want to make a selection from. I'm going to choose the Airports layer to make selections from. And then down below, I have all the different fields that have data in them from the Airports group. I'm going to scroll down until I find Type, and I'm going to double-click on it. And when I do, it adds that text down into this box down here.

And essentially what I'm doing is creating a SQL select statement to query the database. So saying select star from my airports file where type, and I just need to finish this statement, is equal to, now I need to type in the word major. And a shortcut way of doing that is to say Get All Unique Values, and that'll give me all of the values that are within that type feature. and I'll double-click on the word major. So I'm going to select everything, for my airports where, the type is equal to major. I'll say Apply, and you'll see all of my points show up at our major airports.

All the minor airports and everything that's below a major airport won't show up in the selection. And if I zoom back out to the whole world, you'll see that it makes that global selection. Okay, so that's how I can select features by their attributes. I'm going to press this button here in the toolbar to clear the selected features. One of the other things that we can do is make a selection by location. So one of the other things that we can do is select features based off of their location. At the beginning of this movie I suggested that we might want to select all of the airports that are within the United States, so let's go ahead and see how we can do that.

First I need to select all of the United States, and we just saw how to do that. I'll use my identify tool. I'll choose one of the states to see what its attributes are, and here if I scroll down the list, I can find something that'll be useful to us. This admin field is set to United States of America, so the administrator for this particular state is the United States. So I'll make use of that in the selection. Close identify. I'll go up to the selection window and I'll say select my attributes. This time, instead of selecting from the Airports, I'm going to select from the states and provinces.

I'm going to scroll down the list until I get to Admin, I'll double click on it, and I'll say equals, get unique values, and this time I'll scroll down the list until I find United States of America. And I'll double-click on that. So now I'm selecting everything, or star, from the admin, states, and provinces geodatabase where the admin code is equal to United States of America. I'll say apply, and you'll see that all of my US states get selected and we'll say OK. So now we've made a selection of all the states and now I want to select all of the airports that fall within those states.

This time I'm going to go up to the selection menu and I'm going to choose Select by Location. The Select by Location window asks me how I want to select features. I can select Features From a Particular Area, or it can add to a current selection, or it can remove from a current selection, or it can select from the currently selected features in and make another further subset of features within something I've already got selected. I'm going to choose to select features from, and the target layer is going to be my airport. So I'm going to select features from the airports group. The source layer is how they are going to interact.

So from the source layer, I'm going to choose my states and provinces, and I'm going to make sure that this check box here, to use selected features is on. So essentially what I'm saying is, I'm going to make a selection by location. I'm going to select features from the Airports group, that are within the selected States and Provinces. We'll go ahead and say OK, and we'll see all of my airports that are within the United States get added to the selection. Now all I need to do is deselect my states in order to get the airports isolated by themself. Now, it looks like I had accidentally turned off my table of contents along the way. So, I'm going to come back up here to the Toolbar and choose Table of Contents and I'm going to re-dock it on the left-hand side.

Let's also go to Bookmarks and zoom into the United States, here. Now in order to deselect all of my states, in the table of contents. I'll go to List by Selection. Underneath states and provinces, I'll click the clear selection from the States and Grovinces group. So now I'm left with the selection of just the airports that fall within in the United States. Now it might be useful to save this selection. So in order to do that, I'll go back to my table of contents. And I'll list them by drawing order. I'll right-click on the Airport feature, I'll come down to the Selection Group, and inside the Selection Group I can choose to create a layer from the selected features.

When I choose that, I get a new layer in my table of contents called airport selection, and I can turn off now my global airports here, and I'm left with only the airports that fall within the United States. At this point it's probably a good idea to rename it, so I'll click on it, pause and then click again, and I'll call it US airports and press enter. And now if I go to my Global view you'll see that I no longer have airports throughout the world, I just have the airports that fall within the United States. So by using the Identify tool, we were able to identify a couple of the attributes of our particular features that we were interested in. And once we know those attributes, we can use the Select by Location and Select by Attributes tools to easily find features that share common traits, and even export that selection to a new layer.

Show transcript

This video is part of

Image for Up and Running with ArcGIS
Up and Running with ArcGIS

36 video lessons · 4261 viewers

Adam Wilbert
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Up and Running with ArcGIS.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.