6

we can do a selection by "select by Attribute" and using RtClick on layer --> Data-->Export Data-->Export Selected Features output the selected as .shp format file. Now I am trying to do this in ModelBuilder (Using the NEW_SELECTION type of selection) like :

enter image description here

But I couldn't figure it out what tool I should use to export ONLY the selected part in ModelBuilder.

Can you please let me know what should I use here?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Aug 18, 2015 at 10:50
1
  • 3
    You can just use a single tool called Select (Analysis) to do this. Commented Aug 18, 2015 at 10:56

2 Answers 2

12

As PolyGeo indicated in the comments, Select will do this in one step. Otherwise, use Copy Features to copy the selected features.

Copies features from the input feature class or layer to a new feature class. If the input is a layer which has a selection, only the selected features will be copied. If the input is a geodatabase feature class or shapefile, all features will be copied.

In this example, it is assumed you dragged the feature layer from the table of contents into your model--otherwise, you will need to incorporate the Make Feature Layer (Data Management) tool.

enter image description here

answered Aug 18, 2015 at 11:22
0

If you're doing a SQL select the above is fine. If you want to do a Spatial select, for example give me all the roads that intersect with this county polygon (i.e. I'm not wanting to clip the data), then the basic recipe for this not uncommon task:

Data Mgmt Tools> Layers and Table Views> Make Feature Layer Tool (e.g County)

Data Mgmt Tools> Layers and Table Views> Make Feature Layer Tool (e.g Roads)

link those 2 outputs with this next one

Data Mgmt Tools> Layers and Table Views> Select Layer By Location Tool

link selection output to this one

Data Mgmt Tools> Features> Copy Features (e.g. Cnty_Rds)

Reading this back, I missed where Aaron said to use Copy Features. I thought he was saying Copy_management. Anyway..

answered Jul 28, 2017 at 15:48

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.