Questions tagged [select-by-location]

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

Filter by
Sorted by
Tagged with
4 votes
4 answers
244 views

Selecting only one point in polygon using QGIS

I have two shapefiles: polygon(buffer) and point. How can I select only one point in each buffer in QGIS? If I use the "Select by Location", I will get all points inside the polygons, ...
0 votes
1 answer
22 views

Select same point features from two different datasets

I am completing an update to an address database and have 76 point features that I would like to cross-reference with the old database to perform a quality check on. What would be the most efficient ...
1 vote
1 answer
680 views

'Selecting by freehand' tool - selection disappears

I have been trying to select some features of my map on QGIS to create the boundaries of a domain, however when I draw a shape using the 'Select by freehand' tool, the selection disappears as soon as ...
5 votes
1 answer
208 views

Ignoring edges when selecting polygons

I have two polygon layers - Parcels (in yellow below) and Sites (in Red hatch) - and I am trying to select all polygons from layer 1 that have any part of layer 2 in them, ignoring where edges touch. ...
4 votes
3 answers
1k views

Looking for QGIS equivalent of ArcMap's "Selection by Location" tool with "Have their centroid in" option

I am currently using QGIS 2.18.15 and I have two sets of polygon layer data. I would like to use the Select by Location research tool in order to isolate the polygons that have their centers within ...
0 votes
1 answer
28 views

Selecting All Features within Feature Dataset in ArcSDE Database using ArcPy

I'm trying to create a script tool to select all the features within a user-specified area of interest then run the Data Reviewer extension. I've encountered an issue trying to select features from a ...
1 vote
1 answer
144 views

Using SelectLayerByLocation and GetCount to Populate a new Field using Python

I'm attempting to create a script which assesses the intersect between a layer "BldgFootprints" and several polygons "FireBoxMap_1"-"FireBoxMap_44". And from this intersects performs a getCount on a ...
1 vote
1 answer
34 views

PyQGIS standalone app processing with selectbylocation not working

I'm trying to run processing with selectbylocation in standalone app, everything seems to run fine but the output I'm getting is the main layer always, so it's not really working. And I have no idea ...
0 votes
0 answers
43 views

Improving PyQGIS processing time when using "Select by location"

When running PyQGIS processing with "qgis:selectbylocation" it takes a lot of time (sometimes it get to an hour). Is there is a way to make it work faster? parameters = { "INPUT&...
4 votes
1 answer
58 views

Setting selected features in list without specifying their layer using PyQGIS

To get selected features I usually do: layer.selectedFeatures(). Is there a method to retrieve selected features in a list without specifying the layer they belong to ? I selected features with the &...
56 votes
2 answers
116k views

Selecting features within polygon from another layer using QGIS

I'm using QGIS 1.8 with a PostGIS database and I have three PostGIS layers in QGISL: a lines, a points, and a polygon. I'm trying to select features in the polygon layer and mark all points within ...
2 votes
2 answers
2k views

QGIS 2.18.4 - Select by location returns no selection

I have a point layer (green points) and a polygon layer (orange line) which a number of the points fall within. I have double checked and both layers are in the same CRS. I have tried multiple ...
0 votes
1 answer
305 views

Extract by location works improperly in PyQGIS standalone script

I have been trying to extract polygons from one layer that intersect a polygon in another layer, and another extract that is disjointed, and looping this over several files organized by date. When ...
3 votes
1 answer
36 views

How to remove Topology Checker red dots?

How do I remove red dots created by topology checker? I was trying to check for overlapping lines within one layer by using the topology checker --> Must not have Dangles. This didn't work, I'm ...
5 votes
3 answers
146 views

Selecting all electoral division within local electoral area in QGIS

I have two vector layers: electoral divisions (blue)(similar to counties) local electoral areas (green outline) (similar to states). I'd like to select all EDs 'within' a state using 'Select by ...
2 votes
1 answer
347 views

Earth Engine Cascading selects - redraw/highlight on select

I am trying to create a scenario in Earth Engine where a user has three drop down selects. On each select, the next select will be filtered by spatial intersections of the first select, and the third ...
9 votes
4 answers
9k views

Looking for GeoPandas QGIS equivalent of ArcGIS "Select by location" tool

I have two GeoDataFrames: A single multi-part polygon Many points I have read them in with the following: import geopandas as gpd poly = gpd.read_file('C:\\Users\\srcha\\Desktop\\folder\\poly.shp') ...
1 vote
1 answer
129 views

Finding features based on total overlap of another feature class using ArcGIS Pro

I have 2 polygon feature class's (A and B) that overlap each other. I want to select all the polygons of feature class A where the total overlapping area of feature class B polygons is less than 10m2 ...
0 votes
0 answers
31 views

Python script only works after saving and closing MXD then re-opening ArcMap

I'm very new to using Python scripts in ArcMap (10.8). I've got a script that exports a suite of maps for our clients, but it always gives me an error ExecuteError: ERROR 000229: Cannot open Counties ...
0 votes
0 answers
26 views

Select lines by what their starting and ending vertices intersect

I have a set of polylines representing storm drains and I want to select every line that is originating from a structure (a catch basin or a manhole) with field DATASOURCE=GPS, AND terminating at a ...
5 votes
2 answers
8k views

Saving/exporting selected features in QGIS

I would like to save my attributes selection as a layer. I have read on other posts to do it by selecting the layer with the attribute selection, then right clicking on it and choosing "save ...
1 vote
1 answer
68 views

ArcPy - Select by Location and Copy Features - Error 000732: Invalid Features

I've been reading through some of the other answers but I haven't found a solution to my problem yet. I'm working with ArcMap in Python 2.7 in a standalone script. I'm trying to select some features ...
5 votes
3 answers
319 views

QGIS Select points within ONE polygon in a different layer

I have a set of points, which are located in the same area where the other, polygon layer is located. I would like to have all the points selected, but ONLY within the one polygon belonging to the ...
0 votes
1 answer
550 views

Creating multi-ring buffers around points in a single layer and for each point selecting neighbors within a specified radius in R

I have a CSV file of data on a set of 3000 points (locations) with respective coordinates and a number of attributes. I want to perform a regression analysis that takes cognizance of any spatial ...
1 vote
1 answer
37 views

Clip a vector without losing geometries - QGIS 3.22

I experienced a lot of issues trying to keep only a German region from the vector I have of Europe. I've tried everything, using mask+clip with my shapefile of the German region, using "Select by ...
1 vote
0 answers
27 views

Detect the point that cuts the line using arcpy.SelectLayerByLocation_management

I have two layers, a linear one which represents cables, the second one is a layer of points representing optical connection points. My problem is that the points cut the cables in two during their ...
6 votes
1 answer
136 views

Selecting features that do not touch other features in same layer in QGIS

In QGIS I have a polygon layer where there are some isolated objects which do not touch other objects in the same layer. They are isolated and therefore I do not need them. How can I select these ones?...
0 votes
0 answers
24 views

How to find optimal store location considering road availability and road condition using ArcGIS Pro

Recently, I am struggling with how to find optimal store location considering road availability and road condition using ArcGIS Pro. I have tried the location-allocation function in ArcGIS Pro. But I ...
0 votes
1 answer
21 views

Reverse features of Select by Location for "Have their center in"?

I have a feature class of large boundary polygons and a feature class of small polygons. Some of these small polygons the boundary of two larger polygons by a very small amount. I'm trying to ...
4 votes
2 answers
551 views

Selecting specific point within specific polygon using ArcMap

I am using ArcMap. I have a shapefile points layer, with each point representing either marginal, suboptimal, or optimal conditions. I want to find only the marginal points within a specific polygon ...
1 vote
1 answer
151 views

Selecting not overlapping polygons using QGIS

I have a shapefile with 1000 points and a layer with 30 000 polygons. Not all of the points overlap with the polygons. For all of these points, which are not overlapping with a polygons, I need to ...
1 vote
2 answers
53 views

Subset features of shapefile based on position of features of another shapefile and save all subsets into separate files on QGIS

I have a shapefile with thousands of polygons and a shapefile with 28 polygons that completely overlay the first shapefile. I'm trying to split the first shapefile features into 28 smaller shapefiles ...
0 votes
1 answer
118 views

Filtering attributes of selected features to new feature class using ArcPy with ArcGIS Pro

I have a gdb of point features. I want to iterate through the gdb, select the point features that are within a polygon shapefile, and export the selected feature results to a new gdb. However, I only ...
6 votes
2 answers
116 views

Extracting polygons that overlay other polygons in different layer in QGIS

I have two polygon layers that have multiple polygons in them. One layer is an administrative boundary layer and the other is a layer showing crop cover types. I would like to extract only ...
3 votes
4 answers
776 views

Identifying features with duplicate geometry in QGIS

I am working on a public transport network in one shapefile (polyline type) in QGIS 2.18. Certain bus routes share the same paths, means that one line-part can repeat more than once. It always has the ...
0 votes
0 answers
33 views

Joined attributes by location ERROR not find some attributes

I have two layers to join attributes by location: a. road map (attributes=segments of roads) b. fastest path (with shortest path from layer to point plugin going over "road map") to identify ...
5 votes
2 answers
171 views

Selecting only polygons that contain another polygon with Select by Location in QGIS

In QGIS 3.16.11 on Windows 10 I have a layer with single polygons. Given this polygon layer with, I'm trying to select only the polygons that that contain at least one other polygon (A & B) My ...
1 vote
0 answers
29 views

Selecting within feature which are in one polygon in QGIS [duplicate]

I have a polygon which has features within it (inside it). It want to select these within features so that I can delete it. These are all in a single polygon layer. I have tried QGIS's "Select by ...
5 votes
1 answer
95 views

What CRS is select by location performed on in QGIS?

What CRS is Select by location performed on in QGIS? I didn't find it in the documentation. Is it performed on: a) the project CRS b) CRS of the select features from layer c) CRS of the By comparing ...
2 votes
3 answers
1k views

Finding points outside state boundary that are supposed to be within specific State using ArcPy with ArcMap

I have a nationwide featureclass called bakeries. In the bakeries FC, there is a field called "State" and the field is populated with state abbreviations(AL,NJ,CT,etc). I have another feature class ...
1 vote
0 answers
229 views

Calculate field on the fly with field values from another overlapping layer [closed]

I am really new to ArcGIS Online and the first steps in coding. I created a webmapp app: users can create clinics (as points) and each time they create a new point they have to choose in a list the ...
6 votes
1 answer
94 views

Using "Select by location" with percentage

I have two layers, one layer with isochrones with representing driving times from certain locations and one layer with postal code area's. What I want to know is which postal code area can be reached ...
5 votes
2 answers
148 views

Looking for equivalent of ST_ContainsProperly for selecting features in PyQGIS

I'm looking for a solution to select islands (non-black polygons) in polygon A (black). I think, in PostGIS ST_ContainsProperly() will do this task. But I'm looking for an equivalent solution in ...
1 vote
2 answers
878 views

Getting points in selected polygon

Anyone know of a way to be able to create a new shapefile of points that sit within a polygon, without having to trace along the boundary line to select all thousands of points? I used the "Count ...
8 votes
3 answers
450 views

Selecting and exporting points inside specific polygon using QGIS

I have a problem that is similar to Get Points in a selected polygon. I have a polygon layer (with +200 features) that represents a road (subdivided by every 100m) and a point layer of a GPS survey ...
0 votes
0 answers
51 views

QGIS crashing when runing a loop to perfom select by location with PyQGIS

I have written a script to divide United States into a grid of 200 km, then in each grid will contain a certain number of mobile towers with (lat and long). The script must then select each grid and ...
3 votes
1 answer
204 views

QGIS: Select polygons that are touching another polygon on all it's sides (not contain but engulfed?)

Given this polygon: I'm trying to select the inner one, but can't find a simple way using either selection by location or selection by expression Any idea?
0 votes
2 answers
143 views

Deleting sliver parts of single polygon using QGIS

The polygon highlighted in red is a single polygon that has slivers directly attached to it. I used the Difference tool on two polygon layers which lead to slivers / fuzzy polygon parts (see picture). ...
0 votes
1 answer
69 views

Select by location (add to selection) is removing previous selection using ArcPy with ArcGIS Pro [closed]

I am trying to select multiple times from the same layer with different overlapping layers by location using the 'Add to selection' method. However only the last selection on that layer is kept after ...
42 votes
7 answers
118k views

Creating new layer from selection in QGIS

Is it possible to create layers from selection in QGIS? I am using QGIS 1.7.4-Wroclaw. To make it easier for others to see this, here are some pics. I used QGIS 2.0.1-Dufour. Selecting Saving Adding

1
2 3 4 5
9