Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [select-by-location]

Select features based on their geographic position relative to features in another layer

Filter by
Sorted by
Tagged with
3
votes
1answer
3k views

Deleting selected features with ArcPy?

I am having trouble deleting the features I have selected using 'arcpy.SelectLayerByLocation_management' tool. To use the select layer by location tool, you much pass in a .lyr file. My script ...
0
votes
2answers
117 views

update cursor based on location

I'm working on a python script for ArcGIS 10.2/10.3. What I want is to automatically fill in a field of a point layer based on the location of that point in relation to a polygon layer. Say I have a ...
1
vote
2answers
60 views

arcpy select points - chessboard style

Could you please help with selection problem. I have about 1000 of shapefiles. Each shapefile has points located in a rectangular net. But size of that nets (and as a result number of points) differ ...
6
votes
1answer
432 views

Getting different results using Select by Location with ArcPy vs ArcMap?

I have two different layers. One layer contains features that are supposed to sit directly on top of features in the other layer. With ArcPy I'm doing a SelectLayerByLocation with "ARE_IDENTICAL_TO" ...
4
votes
2answers
8k views

Using Select By Location in ArcPy?

How do you create a new feature class from the select by location tool in python? This is my script that works but I just don't know what the next step is. arcpy.SelectLayerByLocation_management("...
1
vote
1answer
298 views

QGIS Lyon 2.12, select by location tool crash

I'm trying to select points from a vector point layer (quite big ~2 million points), that are within a coastline polygon for the gulf of california. The area is in the south with quite a complex ...
1
vote
1answer
319 views

Python code to select streamlines within selected watershed

I'm trying to calculate total stream length for multiple, overlapping watersheds (i.e., each watershed contains the watersheds upstream of it). I have a flowline layer that I've run through the ...
2
votes
0answers
66 views

Why does my Validation Script continue to run when adding the result to the map? [closed]

I am in the process of developing a python script that creates a list available imagery for our project areas that would then allow the user to choose which imagery source they would like to add to a ...
-1
votes
2answers
680 views

Select adjacent polygons using ArcGIS modelbuilder

I made a model which exports polygons to a new layer within a loop (FOR iterator: from value 1614 to 1654, by value 10). Nr. 1 is the first shapefile, Nr. 2 is the second shapefile. I only want to ...
9
votes
3answers
3k views

Performing a Spatial Query in a loop in PyQGIS

What I am trying to do: loop through a point shapefile and select each point that falls into a polygon. The following code is inspired by a spatial query example I found in a book: mitte_path = r"D:\...
3
votes
1answer
2k views

Understanding target layer and source layer in Select By Location of ArcGIS for Desktop?

I have a lab assignment that i would need some help with. I have a 25km buffer that's in a circle. Within that i am supposed to make a map were the berries that people can pick are. The assignment is ...
4
votes
1answer
1k views

How can I select all streams downstream of a polygon

I have an ordered stream network and I want to select all stream features that contain water that has come from a certain area. To start with I'm running a select by location query to find all stream ...
1
vote
2answers
120 views

how to use select by location

I'm new to using GIS. What I'm trying to do is to create a table that shows how far are the schools I have currently highlighted (using the select by location feature) away from the Major arterial ...
1
vote
1answer
133 views

Find the “direction” of a line

I have a set of transportation analysis zones, and a set of shorted path polyline features connecting the centroids of each zone. There are two line features between each zone, one for each direction....
3
votes
1answer
2k views

Iterating Select By Location in ModelBuilder?

I need to do exactly what the help topic http://resources.arcgis.com/EN/HELP/MAIN/10.1/index.html#/Select_By_Location_Select_based_on_spatial_relationship_within_the_layer/0017000000tr000000/ says can ...
1
vote
1answer
699 views

Finding which points from dataset within specified boundary using CartoDB?

I'm a non-coder using Cartodb. I've uploaded a dataset that has longitudinal and latitudinal coordinates, and overlayed that with a map with neighborhood boundaries. Is there a way to easily compare ...
0
votes
1answer
766 views

Select points within a buffer in QGIS

In my vector layer I want to select points within a buffer of 12 meters and with an exception (if 'Name' is not "James" than select). Is this possible with "select by expression"?
1
vote
2answers
941 views

Can I use my SearchCursor in Select by Location

I am trying to select the largest polygon that contains each feature in a feature class but none of the features in another feature class. I have written the code that seems logical to me but (of ...
1
vote
2answers
3k views

How to select points within a certain distance from a line?

I have a file with a points layer and a lines layer. I would like to select only the points that lay within certain distance (a couple of meters) of the lines. Is there an easy way to do this? Or ...
1
vote
1answer
520 views

Build ArcGIS Model to Select by Location (Within a Distance) and Export to KML with an Iteration

I have a parcel shapefile and point data. I need to select parcels within 0.5 miles of each point and export that data to KML then repeat the set of each point (Iteration). The KML also needs to be ...
3
votes
0answers
90 views

How to randomly select three points in each polygon? [duplicate]

I have two layers: first layer includes polygons of districts, second layer containts points (phytocoenological relevées). The goal is to create a new layer that will contain max 3 randomly selected ...
0
votes
1answer
143 views

Max Number of Feature Selection in ArcGIS? [closed]

What are the limitations on the maximum number of features that you can select in ArcGIS?
2
votes
1answer
1k views

Selecting features within bounding box using QGIS?

What is the best way within QGIS to select all of the features within a rectangular bounding box? Is it necessary to create a separate layer with the box, then to use the intersection tool within ...
1
vote
0answers
107 views

How to write a loop selection by location and export in QGIS?

I would like to be able to make selections in sequence between buffers and surrounding areas. This would lead to areas (polygons) being selected repeatedly by 2 or more buffers and I want to be able ...
1
vote
3answers
784 views

Select points located within Multi Ring Buffer

I have two point datasets, 1 showing the location of road accidents, the other showing the location of traffic intersections. I have created a Multi Ring Buffer at 25m intervals around the traffic ...
0
votes
2answers
71 views

SyntaxError with cursor and Feature Selection in ArcPy?

I tried to select each feature in the layer "temp" and use the selected feature to select features in the other layer "Railway" based on location and then do some calculations with the "Railway" layer ...
2
votes
1answer
213 views

Extract polygons closest to/coinciding with points?

I have 2 shapefiles, a polygon and a point layer. I would like to perform an operation in which I extract the polygons that coincide or are closest to each point, and throw away the polygons which are ...
1
vote
3answers
141 views

How to select points which are below (under) polygon in 3D? [closed]

I have two layers. Points are (point z) shape and polygon is (polygon z) shape. I would like to select only point which are under polygon. Look at picture, On the first one you can't see points which ...
1
vote
1answer
150 views

Select By Location then Append if points selected ModelBuilder

I am iterating through a point shapefile to assign the points to buffer zones that they fall within, because some points fall within several buffer zones I am doing this using the Append tool into a ...
-1
votes
2answers
58 views

Selecting parcels with multiple features [closed]

So i have a parcel polygon layer and a house point layer. I want to select parcels that have two or more points in them? Any suggestions?
0
votes
2answers
1k views

Delete observations that fall outside of shapefile

I have data that locates places by xy coordinate. I have plotted them on a shapefile. As you can from the sample map I have uploaded, many of the xy coordinates are incorrect and locate places ...
0
votes
1answer
256 views

ArcGIS 10.0 Python script not working with ArcGIS 10.2.1. Looping through SelectLayerByLocations

Last year I got assistance from StackExchange to write a Python script for ArcGIS 10.0 which loops through SelectLayerByLocation with buffer until it returns no new rows. Then it uses the selection ...
0
votes
1answer
90 views

Merging/Exporting Data Based on Location ArcGIS 10.3

I am trying to identify demographic characteristics of areas within a 1-mile radius of schools. I have one shapefile with block level census data and another with the school locations. The files do ...
2
votes
2answers
815 views

Proper syntax for Select Feature Layer by Location

Can someone let me know how I can use a single feature from one layer as the "Select Features" when using the Make Feature Layer by Location tool with another layer as the input? In the code below ...
1
vote
0answers
187 views

Is order of selection in Spatial Data important (attribute, location, graphic)? [closed]

When dealing with spatial data in a GIS system, does it matter which way you select the information if you're using all 3 - attribute location and graphical selection? In my experience it seems to not ...
1
vote
1answer
2k views

Using Select by Location and Select by Attributes in single ModelBuilder model?

I'm working on a project involving wind turbines. I'm using ArcMap 10.2 and ModelBuilder to count the number of wind turbines within a 5km buffer zone of a given project (let's call it Project A), and ...
2
votes
1answer
305 views

Why does Select by Location select points outside search radius?

I'm using Select by Location to find wind turbines within 5-km of a center point feature -- why does this command also select nearby turbines? The image below shows my selected points with a 5-km ...
1
vote
1answer
41 views

selection by attribute

I have a problem with selection by location: I need Arcgis to automatically count for each of my bus itinerary (see capture) how many times a" polygone " will be " within a distance of the source ...
1
vote
2answers
515 views

How to “select by location” certain points

I have a small problem - how to select the points on the line but not select the points at the intersections of lines using "select by location"? Illustration below. I am using ArcGIS 10.0
2
votes
2answers
3k views

How to SWITCH_SELECTION after Select Layer By Location in ModelBuilder?

I have to use Geoprocessing tools in ModelBuilder. My requirement is compare features in a Source personal geodatabase with those in a Target personal geodatabase and if the target personal ...
0
votes
1answer
321 views

How to get features “not getting” intersected in arcobjects?

I have two feature classes. I'm intersecting both of them. I have to return features which does not intersect with the other. Lets take an example. I have two feature classes: villages and colleges. I'...
1
vote
1answer
821 views

Select by location in ArcPy?

i work with arcview 10.3 on 20 mxd's (each mxd has 25 layers) and i try to do select by location (with arcpy) and want to see a layers that are visible in the current map extent only. All Other layers ...
0
votes
1answer
118 views

Create Table from Selection

This is a continuation of a problem that was solved earlier this week. The code below performs a select by location and was originally intended to export all feature classes from the SDE database to ...
3
votes
3answers
471 views

Select by Location and extract features using arcpy

So I'm fairly new to arcpy and have been trying to figure out a relatively simple select by location/extract features to new layer automation in ArcMap. What I am trying to do is select features from ...
0
votes
3answers
1k views

How to separate states in USA file using ArcGIS for Desktop? [duplicate]

I have found a few different files containing the entire United States, with attributes including states. Is there a way to separate the states out into their own files (perhaps in one file ...
1
vote
0answers
79 views

Finding polygon within polygon using ArcGIS for Desktop?

How do I find two parks (shapefile) that are within a census tract ? If I'm not mistaken you have to use selection by location.. but beyond that quite sure what to do after.
2
votes
1answer
695 views

Problem with creating a model in Qgis — select by location

I have two shapefiles (polygones) - referentiebestand and oudejaren -> the first step is to calculate the centroids of each shapefile (gives a good result), then a create a buffer around one of this ...
1
vote
0answers
24 views

Field names change when selecting by attribute/location and then copying feature in ModelBuilder? [duplicate]

I am trying to create a tool to make my workflow faster for a routine job task. Basically, I have a USGS 7.5 min quad layer and a feature (species) layer, and I want to ultimately create a shapefile (...
3
votes
1answer
2k views

Performing Boundary Select and Sum Attributes in QGIS? [closed]

I´m a MapInfo user, I´ve gone over to QGIS and it´s got a lot going for it, except for some "missing" simple features from MapInfo I just can´t do without. MapInfo Boundary Select - spatial query on ...
3
votes
1answer
1k views

Select polygons that contains points in a separate shp file

I am a very new QGIS user and have years of experience using the basic functions of ARCGIS. I am having trouble using the select by location feature in QGIS. I have a point layer with locations of a ...