Questions tagged [select-by-location]

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

Filter by
Sorted by
Tagged with
43
votes
2answers
75k 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 ...
10
votes
1answer
3k 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
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:\...
9
votes
0answers
188 views

When using QGIS join by location, how does QGIS determine the first located feature option?

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 ...
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
4k 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
1answer
588 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
698 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
2k 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
421 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
431 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
426 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
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
3answers
184 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
108 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
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("...
4
votes
1answer
9k 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 ...
4
votes
4answers
1k 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
1k 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
811 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
371 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
3answers
821 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
7k 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
999 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
428 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
152 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
642 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
1k 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
205 views

Selecting features with same geometry in one shapefile

@TeddyTedTed's answer is nice, however, I am looking for something more efficient. I am working on a public transport network in one shapefile (polyline type) in QGIS 2.18. Certain bus routes ...
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
183 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
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 ...
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
125 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
114 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
156 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 ...
3
votes
1answer
174 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 ...
3
votes
1answer
724 views

Importing OSM/Google Maps to QGIS but removing/excluding extraneous areas to limit geographically use of OSM?

I am looking to place an OpenStreetMap/Google Maps layer underneath the rest of my shapefiles for referencing purposes. Let's say for instance, that I am looking at the Swiss Cantons and cities, and ...
3
votes
1answer
164 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)...
3
votes
1answer
108 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 "...
3
votes
2answers
248 views

ArcGIS Select by location tolerance with “Are identical to”

I am wondering if there is a way to put a tolerance when doing a "Select by location" with the option "Are identical to the source layer feature". Here is why I want to do this (I got a polyline ...
3
votes
1answer
223 views

Arcpy.mapping Select by Location problem

I need to adjust a premade .mxd many times, so I'd like to speed it up with this script. Everything is working except the Select by Location part. The query reduce the Address layer to a single point ...
3
votes
1answer
187 views

Selecting many maximum points within polygons

I've got a point layer with three values such as high, age etc. and polygon layer with many forest area. What I want to do is to select the 100 maximum (highest) points in every polygon. I can't do ...
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 ...