Select by location arcgis

Selects features based on a spatial relationship to features in another dataset or the same dataset. Each feature in the Input Features parameter is evaluated using the features in the Selecting Features parameter.

This topic covers examples and expected results of the Relationship parameter options available in the Select Layer By Location tool as well as the Spatial Join tool. Within a distance geodesic. Within a distance 3D. Completely contains. Contains Clementini.

Select by location arcgis

The Select By Location tool lets you select features based on their location relative to features in another layer. For instance, if you want to know how many homes were affected by a recent flood, you could select all the homes that fall within the flood boundary. You can use a variety of selection methods to select the point, line, or polygon features in one layer that are near or overlap the features in the same or another layer. Use the following steps to apply the Select By Location tool. Note that you select features from a layer or a set of layers that have a spatial relationship with features from a source layer. For example, select features from USA Counties that touch the boundary of the features in the layer named "Texas. See Types of supported spatial queries below for an overview of the selection options. The following spatial query methods are supported using Select By Location. In these descriptions, the Target layer is the layer in which features are selected. The Source layer is the layer whose features are used to determine the selection based on its spatial relationship to the target. In the diagrams, selected features are highlighted in cyan where they intersect, touch, or are contained within the red source features, and so on. Intersect returns any feature that either fully or partially overlaps the source feature s. Here are some examples:. This operator creates buffers using the buffer distance around the source features and returns all the features intersecting the buffer zones.

The features that will be evaluated using the Selecting Features parameter values. Distance between features will be calculated using a geodesic formula that takes into account the curvature of the spheroid and correctly handles data near and across the dateline and poles. Feedback on this topic?

The Select By Location tool allows you to select features based on their location relative to features in another layer. For instance, you may want to know how many homes were affected by a recent flood, so you could select all the homes within the flood boundary. Remember that when you select features from a layer, they must have a spatial relationship with features from a source layer. For example, following the steps below, you will use the Select By Location tool to find all the features from the USA Counties layer that touch the boundary of the features in the layer named Texas. Feedback on this topic? Back to Top.

Selects features in a layer based on a spatial relationship to features in another layer. Each feature in the Input Feature Layer is evaluated against the features in the Selecting Features layer or feature class; if the specified Relationship is met, the input feature is selected. Graphic examples of relationships. The input must be a feature layer ; it cannot be a feature class. The coordinate system in which the spatial relationship is evaluated may affect the result. Features that intersect in one coordinate system may or may not intersect in another. This tool evaluates a spatial relationship in the coordinate system of the Input Feature Layer data source the feature class on disk.

Select by location arcgis

A useful application of this behavior is to select adjacent, connected, or nearby features within a layer. Different Relationship options can be used to generate the desired analysis or result. For details of how the Relationship options differ, see Select By Location: graphical examples. A loop inside a script or For and While iterators in ModelBuilder can be used in conjunction with this approach to expand a selection based on a number of iterations or until some criterion is met. One common criterion is expand until no new features are added to the selection. The Get Count tool can be used to establish when the number of selected features stops changing therefore stops growing. Below are some examples of analysis performed using this functionality with different types of data and relationship options. The following example expands the selection from a single county to select the adjacent counties, then the operation is repeated two times. The example below uses the Intersect relationship to expand a selection from two origin points.

Mixed wrestling and facesitting

For example, select cities within meters of a river or railroad. The Source layer is the layer whose features are used to determine the selection based on its spatial relationship to the target. Invert Spatial Relationship Optional. The graphics are labeled A, B, C, and so on. Contains Clementini. When the input features are lines or polygons, the boundary of the input feature can only touch the boundary of the selecting feature, and no part of the input feature can cross the boundary of the selecting feature. If there are multiple Input Features parameter values, the counts will be in the same order as the inputs. Here are some examples:. The selection will be applied to these features. Frequently asked question. The following spatial query methods are supported using Select By Location. The following stand-alone script shows how to use the SelectLayerByLocation function in a workflow to extract features to a new feature class based on location and an attribute query.

The Select By Location tool allows you to select features based on their location relative to features in another layer.

A, B, E. The Contains and Contains Clementini options produce identical results with point and multipoint input, and the selecting features are point or multipoint. The highlighted cyan features are selected because they share a line segment with a red feature. All records that were selected are removed from the selection, and all records that were not selected are added to the selection. The target feature must be a polygon. Use the following steps to apply the Select By Location tool. To be selected, all parts of the target features must fall inside the geometry of the source feature s and cannot touch the source's boundaries. The source feature must be a polygon or a buffer must be applied around point and line features to use this operator. For example, using this operator, the state of Montana is selected even if it shares boundaries with the United States. If the input is a feature class or dataset path, this tool will create and return a new layer with the result of the tool applied. Contains Clementini — This spatial relationship produces the same results as the Contains option except that if the selecting feature is entirely on the boundary of the input feature no part is properly inside or outside , the feature will not be selected. This is the inverse of the operator "Are Completely Within. In this case, using the Contain Clementini operator does not select the target feature, whereas the Contain operator does. Lines that cross at a point will be selected, not lines that share a line segment.

2 thoughts on “Select by location arcgis

Leave a Reply

Your email address will not be published. Required fields are marked *