Questions tagged [select-by-location]

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

Filter by
Sorted by
Tagged with
51
votes
2answers
92k 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
389 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
115 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
1answer
664 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
2answers
903 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
1answer
1k 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
429 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
509 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
440 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
10k 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
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 ...
5
votes
1answer
763 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
3answers
187 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
146 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
2k 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
4k 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
4k 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
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
421 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
250 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
236 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
921 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
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
438 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
155 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
825 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
342 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
91 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
1answer
841 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 ...
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
1answer
263 views

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

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 ...
3
votes
2answers
299 views

Calculating point layer values within polygon features in QGIS 2

There are two layers polygon BereichBerechnung with a field "Are_Number" points EW2017 with a field "EWjeAdr" In QGIS with a Virtual Layer, I want to calculate the sum of the field "EWjeAdr" for ...
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 ...
3
votes
1answer
295 views

Using Field Value as Search Distance Parameter in Select by Location in ArcPy? [closed]

I've been trying to use the select layer by location tool in a loop to select features that are within a specific distance to one feature class for each feature in a different feature class (each ...
3
votes
1answer
173 views

Selecting polygon features that are not fully contained against neighbors in QGIS?

In QGIS what would be the best method to select features that are not fully contained against it's neighbours? For example I want to select local authorities that have a coastline so in the example ...
3
votes
1answer
199 views

Select polygons with other polygons layer? [closed]

I have to select some polygons with another polygon layer. I have to select green polygons using relevant overlapping percentage with the purple ones. In this particular example, I would like to ...

1
2 3 4 5
8