Questions tagged [select-by-location]

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

Filter by
Sorted by
Tagged with
53
votes
2answers
100k 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 QGIS a lines layer, a points layer and a polygon layer. What I'm trying to do is to select a polygon in the polygon layer ...
13
votes
2answers
410 views

How does QGIS determine the first located feature option when using QGIS Join by location?

I have used QGIS process 'Join Attributes by Location' in one of the models I have built and I have now been asked to explain in detail exactly how the model is determining the results. I am using it ...
10
votes
1answer
5k views

Does ArcGIS Online allow Select By Location?

This question refers to the standard ArcGIS Online map, eg http://your-site.maps.arcgis.com/home/webmap/viewer.html Is it possible to perform a Select By Location, eg to find points from one layer ...
9
votes
3answers
4k 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:\...
8
votes
3answers
1k views

Performing “mostly within” selection using ArcMap?

I'm looking for a way to determine if a polyline is "mostly within" a polygon. Since mostly within is arbitrary, I would need be able to enter a percentage at its execution. I thought there might ...
8
votes
1answer
1k views

Understanding Precision parameter in Select By Location tool of QGIS?

Is there anybody that can tell what is the purpose of having a "Precision" parameter on Vector | Research Tools | Select by Location? Where I can find or read about how this "Precision" parameter ...
7
votes
2answers
5k views

Select by “Not-in” Location?

I have a point layer of students, and a polygon layer of district boundaries. How can I select those students who are not in the district boundaries, a Select By "Not-in" Location, so to speak.
7
votes
2answers
119 views

Analysing point attributes within polygons

I'm using QGIS 3.4.4. I have a polygon layer and a points layer. The points have the attributes district and streetname. How can a check if all the points within a polygon have the same district and ...
7
votes
3answers
1k views

PostGIS equivalent to ArcGIS Select by Location “Are within”

I am trying to select polygons that are within a larger polygon in PostGIS but those who share boundaries with the larger polygon are not being returned. If I use ArcGIS Select By Location I get the ...
7
votes
2answers
8k views

Finding polygons within polygon using ArcGIS Desktop?

I am new to GIS and ArcGIS. I have a set of polygons, some of which enclose other polygons. They are lake polygons, and within lake polygons, are smaller island polygons. If I have a given lake ...
7
votes
1answer
706 views

Select by location gives no result in QGIS?

I am using QGIS 2.18 and I have two shapefiles: "circle" layer; containing lots of circular polygons, many of them overlapping. "mask" layer; containing few much larger polygons (not overlapping). ...
7
votes
1answer
2k views

Fast Select by location in FME?

I've got a large polygon feature class that covers the whole of GB and contains about 120k features. I need to do a spatial filter on this feature class in FME workbench. I've done this in Arc ...
7
votes
2answers
3k views

Select by Attribute within a specific area (using Select by Location?)

I have a map with four layers. Two of these layers cover an entire state, and the other two focus on the area I'm actually interested in within the state. I'm trying to Select by Attribute with one ...
7
votes
1answer
431 views

Is it possible to interrupt Select Layer By Location when first feature selected?

I´ve got a point feature class with some 7.000.000 points and I´m trying to check if any of these points is simply intersected by several polygon feature classes using 'for' loop and 'arcpy....
6
votes
1answer
569 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" ...
6
votes
1answer
453 views

Select by location of doughnut hole polygon

I have vectorized the Corine Land class raster and want to select certain classes that are "inside" other classes. How can I select the polygons circled in blue? All the select by location options ...
5
votes
2answers
1k views

Selecting features within certain buffer distance of selected feature using PyQGIS?

I have a shapefile of thousands of polylines. I have select one feature, I want to select all other features that is within say 100m of the selected feature. How do I achieve it by pyqgis?
5
votes
1answer
11k views

Selecting features that do NOT intersect in ArcGIS Desktop?

I used the "create spatially balanced points" in Geostatistical Analyst in ArcGIS 10 to generate a large set of points with equal inclusion probability but a "spatially balanced" dispersal. I then ...
5
votes
1answer
1k views

How to run QGIS algorithms with selected features?

In the QGIS GUI, the select-by-location algorithm has a choice to only use the selected features from the INTERSECT layer. How can I do this (or use any other algorithm) in a python script for QGIS 3? ...
5
votes
2answers
94 views

Extracting polygons that overlay other polygons in different layer

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 ...
5
votes
3answers
191 views

Create points where 5 unique forest age class polygons meet

I am working with a polygon layer of forest age data (one shapefile with many features representing forest stands of different ages) trying to identify places where forest stands in 5 different age ...
5
votes
1answer
169 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
3answers
3k views

How to select only the lines that has points at at least one end?

I have 2 separate feature classes, line and point. I want to select line feature class based on the location of points on a point feature class. If the points are on the line itself then I don't want ...
4
votes
2answers
11k 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("...
4
votes
2answers
5k 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 ...
4
votes
4answers
2k views

Retaining all fishnet grid squares within boundary of polygon from another feature class?

I have created a fishnet grid (3km x 3km) over a vector polygon. I now want to clip the fishnet over the vector polygon retaining all grid squares within the boundary of the polygon. Therefore I ...
4
votes
3answers
2k views

Selecting Counties within Region via Spatial Query using QGIS/PostGIS?

I'm using GQIS 2.2 and PostGIS on Postgresql 9.3. I have 5 regions in the contiguous United States. Each region has states, and each state has counties. I would like to think that the data I'm given ...
4
votes
2answers
5k views

Selecting features by location based on selected feature using ArcObjects?

I am very new to ArcGIS and ArcObjects. I am writing a code for a button that will detect a selected feature and then select other features based on the feature that I had selected please take a look ...
4
votes
1answer
1k views

Spatial subsetting SpatialPolygonsDataFrames completely within selecting area using R

I am trying to spatially subset in R: the forest stand data (many small polygons) by the watershed data (one polygon) My datasets are both in SpatialPolygonDataFrame format. I don't want to ...
4
votes
1answer
305 views

Differentiate between line ending within polygon and line passing all the way through polygon

I have a line file and a polygon file in QGIS. Primarily I am looking for any polygon that has a line intersecting it - easy, sorted. From these intersects, I then want to pull out just the polygons ...
4
votes
2answers
1k views

Selecting set number of points within polygon grid cells using QGIS?

I have a polygon grid with 1 square kilometer area cells, and over it a set of points, like so: What i need to do is select and extract only a single random point per grid cell. I could do that ...
4
votes
1answer
459 views

How to use search cursor in a given extent

I want to perform a selective search cursor for a feature class for a given extent. I have tried setting env.extent in the below code but it is returning the whole feature class instead of a fixed ...
4
votes
1answer
2k 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 ...
4
votes
1answer
289 views

QGIS Tool/Script to run that highlights location point features within their respective polygon feature based on the same parcel ID [closed]

Software: QGIS Desktop 3.0.3 Data Type: Vector Point and Polygon feature layers Action: Select based on particular field matching and return/highlight based on geographic location according ...
4
votes
1answer
64 views

Selecting features that intersect features of another polygon with spatial index

Based on the answer of @mgri here: https://gis.stackexchange.com/a/224954/164953 I tried to select the features of a multilines layer intersecting less or more than 2 features of a multipoints layer. ...
4
votes
1answer
340 views

Select features in a polygon that covered the most by features of another polygon layer QGIS

I am working in QGIS. I have 2 polygon layers, One layer is the parcel polygons layer for a county called "Parcel" The other layer is the building footprints polygon layer for the same county called "...
4
votes
3answers
1k views

Select Lines that have points on edge but not on end

I am looking for an easier way (if it exists) of selecting all lines that have points snapped to them but where the points are not on the end-points of the line. My current method is to: Generate ...
4
votes
1answer
9k views

Selecting rows in a layer using arcpy.SearchCursor

I'm working on a project to identify points that fall along lengths of road. The roads are stored a single featureclass within a file geodatabase, as are the points. I'm using ArcGIS 10.3. I'm trying ...
4
votes
1answer
289 views

Select Layer By Location gives ERROR 000840 ({select_features} as arcpy.Polygon)

I tried to select SC27060054 point object using polygon. r"Project\project.DBO.Qo" is a point layer. import arcpy p1 = arcpy.Point(254426.380, 4664270.258) p2 = arcpy.Point(254432.730, 4664270.258)...
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 ...
4
votes
2answers
439 views

How to select parcels in ArcPy situated in a different county than is written in the attribute table?

I have two polygon feature classes: one with parcels, the other one with counties (40 counties) I have to identify the parcels that in the attribute table belong to county 'X', but spatially they ...
4
votes
1answer
158 views

select by location

When performing an overlay or intersect I would like to know if there is a way to ignore selection when intersection or overlay is less than a certain percentage of area or less than a certain number ...
4
votes
1answer
922 views

Select by location (multiple shapefiles in ArcGIS ModelBuilder)

I have looked around the forums and seen some helpful questions and answers around model building, but with ModelBuilder being relatively new to me, I have struggled to fully understand everything ...
3
votes
3answers
2k views

The select-by-location tool of ArcMap won't work properly!

I have faced a weird problem caused by the select-by-location tool of ArcGIS. My goal is to identify the polygons intersecting a reference (colored polygon). Accordingly, I applied the select-by-...
3
votes
4answers
469 views

Selecting features with same geometry in same shapefile

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 ...
3
votes
4answers
187 views

Grid Selections in QGIS

I am using QGIS 3.10.2-A Coruña. I have a UK County Boundaries shapefile layer and a custom Grid (gpkg) layer with a fixed distance of 1.5 miles between intersections in both planes (eastings & ...
3
votes
2answers
2k views

Selecting polygons which contain at least one point with spatial index using PyQGIS

I have a points shapefile and a polygon shapefile. I would like to select all the polygons which have at least one point in them. The problem I'm running into is how long this takes. I have 1 million ...
3
votes
1answer
3k views

How to select polygons by distance to a single polygon in another layer?

I have a shapefile A with a group of polygons, lakes. Now I want to select the polygons(lakes) that are within a specific distance to a polygon in a second shapefile, B, with the polygon a city. In ...
3
votes
2answers
3k views

Using Select By Location to update field in feature class using ArcPy?

I am using Arc 10.1 and I am working on a script that takes a value from a field within one shape file and updates a field in another shape file based on its location. Basically I have smaller parcels ...
3
votes
3answers
9k views

Automating Select by Location in ArcGIS Desktop?

I have 2 shapefiles (A and B) each with thousands of polygons. I want to select polygons from A which intersect a specific polygon from B, and save the selected polygons from A as a new shapefile. I ...

1
2 3 4 5
8