ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Select

Available with Advanced license.

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Extracts selected features from an input coverage and stores them in the output coverage.

Features are selected for extraction based on logical expressions or by applying the criteria contained in a selection file. Any item, including redefined items, in the specified feature attribute table of the Input coverage can be used.

Usage

  • When using the same input coverage and output coverage for feature classes Anno, Section, Route, or Region, the output feature class subclass name must be different from the input feature class subclass name.

  • Use of indexed items can speed up the logical selection process. You can use the Index Item tool to create an attribute index.

  • The same subclass names may be specified when the Output Coverage is not the same as the Input Coverage.

  • Learn more about How to Build an INFO Query

Syntax

arcpy.arc.Reselect(in_cover, out_cover, info_express, {in_feature_type}, {selection_file}, {out_feature_type})
ParameterExplanationData Type
in_cover

The input coverage containing the features that will be selected.

Coverage
out_cover

The output coverage containing the selected features.

Coverage
info_express
[info_express,...]

Write a query that contains one or more logical expressions to select features from the input coverage. Each expression takes one of the following forms:

  • RESELECT <expression>—Reduces the selected set of records with a selection expression to those that meet its criteria. If no selection expression follows, the selected set will be empty.
  • ASELECT <expression>—Adds unselected records that meet the selection expression criteria to the currently selected set. If no selection expression follows, the selected set will contain all features.
  • NSELECT—Reverses the current selection to the unselected set.
INFO Expression
in_feature_type
(Optional)

The feature class to select:

  • POLY —Polygons are reselected using PAT item values.
  • LINE —Arcs are reselected using AAT item values.
  • POINT —Points are reselected using PAT item values.
  • ANNO.<subclass> —Annotation from the specified subclass is reselected using TAT subclass item values.
  • ROUTE.<subclass> —Routes from the specified subclass are reselected using RAT subclass item values.
  • SECTION.<subclass> —Sections from the specified subclass are reselected using SEC subclass item values.
  • REGION.<subclass> —Regions from the specified subclass are reselected using the region PAT subclass item values.
String
selection_file
(Optional)

A preexisting file that identifies the features to select.

File
out_feature_type
(Optional)

The feature class in the output coverage. This must be the same as that of the input feature class, with this exception: When the input feature class is an Anno, Route, Section, or Region subclass and the output coverage is the same as the Input coverage, the output feature class must have a different subclass name.

String

Code sample

Reselect example (stand-alone script)

The following stand-alone script demonstrates how to select features from a coverage.

# Name: Reselect_Example.py
# Description: Selects streams of interest from a larger stream coverage
# Requirements: ArcInfo Workstation

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inCover = "stream"
outCover = "C:/output/studystreams"
infoExpress = ["RESELECT stream_name CN 'AQUEDUCT'",
               "NSELECT",
               "RESELECT stream_order > 3",
               "ASELECT length > 10000"]
inFeatureType = "LINE"

# Execute Reselect
arcpy.Reselect_arc(inCover, outCover, infoExpress, inFeatureType, "", "")

Environments

  • Current Workspace
  • Level Of Comparison Between Projection Files
  • Precision For Derived Coverages
  • Precision For New Coverages
  • Scratch Workspace

Licensing information

  • Basic: No
  • Standard: No
  • Advanced: Requires ArcInfo Workstation installed

Related topics

  • An overview of the Extract toolset
  • An overview of the Extract toolset
  • How to build an INFO query

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal