Questions tagged [select-by-location]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
31 views

Iterating through geodatabase and assigning field value based on spatial location using ArcPy

This is very similar to Python script to iterate through geodatabase and assign field value based on spatial location and Assigning field value based on location without join just different data. ...
1
vote
1answer
32 views

R: Spatial subset SpatialPolygonsDataFrames completely within selecting area?

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 ...
2
votes
1answer
23 views

Select raster tiles within vector polygons

I have a shapefile with polygons of all the countries of the world. I also have a raster .tiff (250m square pixels) of average wind speed per pixel. I want to select all the tiles which lie within ...
1
vote
2answers
50 views

ArcPy Iterative Select by Location

I have a very large dataset with line features that represent a utility, and lines that come off of those utility lines showing connections to buildings. (example shown below - utility line in black ...
1
vote
0answers
33 views

Selecting features enclosed by another layer using QGIS?

I have 2 layers selected layers as shown in the figure below, hotosm_glp_rpads_lines (Layer 1) and LaSoufriere_Imapact_Zones(Layer 2). I want to select all the polylines in layer 1 which is bounded by ...
1
vote
1answer
27 views

Finding location of specific value in spatial TIFF file using R?

I want to find location of specific value in one spatial GIS TIFF file and then compare location to main file in order to find some information. for example consider this image which is my main image. ...
1
vote
1answer
25 views

Select or export features within layer that intersect one another, and also within distance in ArcMap

As shown in the image, I would like to select or export features within a layer that intersect one another, and also within a specified distance. I am trying to use the "Select Layer by Location" ...
0
votes
0answers
25 views

Selecting multiple areas at the same time using the 'select feature by polygon' tool [duplicate]

I was wondering if it was possible to select 3 polygons areas at the same time. So in terms of how I want to use it, I have multiple trails that I want to select within certain plots, so I have drawn ...
2
votes
1answer
94 views

Retrieving lines radiating from point with v.select in GRASS GIS 7.6

I am attempting to select lines that radiate from a point using v.select in GRASS GIS 7.6 (also tested with 7.4.4) in Windows 10. I start out with 48 lines radiating from a point every 7.5 degrees. ...
0
votes
0answers
29 views

Selecting grid squares (polygons) that intersect with a raster

I have a raster dataset that I have exported a subset from using attribute values (so the extract has areas where there are no pixels). I also have a fishnet grid (polygons) and I want to select the ...
1
vote
1answer
96 views

Select by location inside a for loop in Python Terminal at QGis 2.18.17

I have two shapefiles (drenagem and rio_pri). I need to loop through every feature from rio_pri and save all those features from drenagem that intersect rio_pri. So I wrote the following code to be ...
1
vote
0answers
26 views

Classifying coordinates on land/on water using QGIS very slow processing issue

I'm very new to QGIS. I have a problem related to the "select by location" tool of QGIS. I have loaded 10 different layers into my map containing data of waters (rivers, canals etc.). Now, I want to ...
1
vote
1answer
47 views

Selecting polygons over raster extent using QGIS?

I would like to select all the polygons that are within my raster extent. Is there a tool in QGIS to do it ? Such as the select by location tool but instead of comparing the features from another ...
1
vote
1answer
38 views

Getting rid of warning messages when selecting by location using PyQGIS?

I am running a Python script in QGIS 2.18.26 and I have a select by location with a code like that: indir = "C:/Infolder/" outdir = "C:/Outfolder/" os.chdir(indir) for fname in glob.glob("*....
1
vote
1answer
55 views

Saving only selected features after doing a selection by location in QGIS using Python Terminal?

I wrote the following script to save only the selected features after have a selection by location done. But I have got an error when the saving line is executed. I don't want to load these layers in ...
0
votes
1answer
46 views

UpdateCursor with SelectByLocation for multi polygon

At the end of this script, I have an UpdateCursor that updates the PLOTS field in the Timber_Type_Polygon with the amount of plots that are within the Timber_Type_Polygon. There's 3 polygons within ...
0
votes
1answer
26 views

Invalid Input Data on arcpy.SelectByLocation_management

I keep getting this error Traceback (most recent call last): File "\\drafting9\Drafting9\ShanePrice\Scripts\Python\Scripts\Cruise_Plan\Cruise_Plan_Model_Final_SP.py", line 77, in <module> ...
0
votes
0answers
26 views

Selecting only polygons with certain variable in them using ArcMap?

I have green space polygons for London and also illegal pollution areas in polygons in ArcMap. How would I go about selecting only the green space polygons that have pollution areas in them (so the ...
0
votes
1answer
46 views

Trying to use layer saved as .lyr file with arcpy.mapping.Layer function results in error?

I am fairly new to the ArcGIS development world. I am attempting to write a script that will have an end result of selecting features by proximity to a selected portion of a different feature. So far, ...
3
votes
1answer
184 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 ...
1
vote
0answers
55 views

Selecting by location: Line to Line

I am trying to select line features from an OSM road shapefile layer (Layer 1) based on the features of a line layer (Layer 2). Layer 2 is selected road segments from Layer 1 produced using a routing ...
9
votes
0answers
189 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 ...
0
votes
1answer
15 views

Selecting polygons from file 1 based on their location within file 2 using ArcMap?

I'm working on a project right now where I want to find the census tracts within a particular traffic analysis district. I may just be blanking on it, but I'm working with two files. The first has ...
2
votes
0answers
70 views

Method in QGIS to do a select by radius but ignore “islands”

I am looking for a process in QGIS to run a selection from a given point based of a radius that ignores "islands". For example you may have a body of water which acts as a natural barrier past which I ...
3
votes
1answer
42 views

For a specific point in space, get the pixel in which that point lies (in R)

I am a bit new to the spatial packages of R. I have a hdf file from which I can get a data.frame with the latitude and longitude of the corners of the pixels, and the latitude and longitude of the ...
0
votes
0answers
54 views

Using output layer names from Select By Location

This is kind of from memory as I cannot access my specific code… I am using 10.3.1 and this will be run inside ArcMap. Overall goal: Find which layers in my active dataframe intersect a specific ...
0
votes
1answer
31 views

How to efficiently reference/connect data without overlap

I am doing an analysis that places a buffer around X property, then identifies all the parcels within that buffer to store in a database and perform analysis on later. Currently, I have two separate ...
1
vote
1answer
77 views

Select by Location (Between two layers) - ArcObjects C#

I have two Point Feature Classes - Say FC1 and FC2 - added in the current map I want to Select Features from FC1 that intersect with Features of FC2 This can be easily done with ArcMap's Select By ...
2
votes
1answer
65 views

Trouble with Select by Location

I'm having trouble selecting individual the corresponding polygon in my parcel data based on the location of a property. It seems obvious, but what am I missing? I have a list of geocoded properties ...
1
vote
1answer
45 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 ...
3
votes
1answer
307 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? ...
0
votes
2answers
46 views

Identifying which lines cross building polygons using ArcMap?

I have the following lines generated from coordinates with XY to Line. I would like to select and delete the lines which cross and are contained within the buildings. I need to do this to find the ...
0
votes
1answer
49 views

Getting points inside selected feature in ArcGIS Desktop?

I have incorporated district map of India and excel table contents(which consist latitude, longitude and fire data)using add data feature in ArcGIS Desktop. I have attached the picture below to show ...
3
votes
1answer
127 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 ...
2
votes
1answer
133 views

Rule based styling with select-by-intersection syntax

I want to do rule based styling for a selection of gridded polygons dependent on their position relating to another layer. I want to show the polygon that a point feature based in an atlas falls ...
2
votes
2answers
172 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 ...
0
votes
2answers
83 views

Automating Select by location using ArcPy and where_clause?

I have used the code in Coding python loop to select features of polygon layer than are completely contained in group of 11 layers using ArcPy? to automate select by location analysis using ArcPy. I ...
2
votes
1answer
134 views

Select layer by location in PostgreSQL

I have a footprint of some buildings (see the picture). The selected buildings have an area below 30 sqm. As you can in the picture see some buildings share almost borders with a building bigger ...
3
votes
4answers
206 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 ...
1
vote
1answer
38 views

Selecting points not on end of line

I have a data set of points from which I'm trying to make a selection of the points whose location is between two line segments. What would the way to do it? Here's a picture to illustrate what I'm ...
2
votes
0answers
45 views

How do I select rows in an attribute table of a vector layer grid which are outside of another vector layer?

So what I am working on is accessibility analysis, I want to know how many percent of the population of a country have access to certain health services within a given driving time. For example is it ...
2
votes
1answer
43 views

Combining information of two layers in one

I'm working on population data by catchment area in Albania. I'd like to know how many people are living inside one precise catchment area and in every catchment area. For example in the first ...
0
votes
1answer
99 views

ArcMap 10.6 Select Layer by Location ERROR 000732: Selecting Features: Dataset does not exist or is not supported

I'm trying to calculate the accumulative street length in various jurisdictions in a county. To do this I'm using a search cursor in the city layer and then using the current feature to select streets ...
1
vote
1answer
46 views

Sorting by row already pre-selected polygons by location by line? [duplicate]

I have two layers. One with small Polygons and one with a line. I want to select all Polygons which intersect with the line. Additionally the selected Polygons should be sorted by the order of the ...
2
votes
3answers
76 views

Select Random Point Based on Proximity of Other Points [closed]

I want to randomly select 50 points from a point layer of 3,000, but no two points can be within 100 miles of each other. Having difficulty moving beyond a theoretical framework into something ...
0
votes
1answer
119 views

Selecting only portion of shapefile using ArcMap?

I have two layers: One of the Misissippi River Basin and one of the USA counties within the 48 states. I'm having no trouble selecting the counties within the Basin, but I also need to select the ...
1
vote
1answer
424 views

Random selection of points in SpatialPointsDataFrame R object with distance constraint

I need to select points randomly (without replacement) from a SpatialPointsDataFrame (input object) in R with a minimum distance of 3,000 meters between them. I want to get random 50% of all points. I ...
1
vote
2answers
150 views

Polygons not containing other polygons

I have two large polygon data-sets, one highlights the building footprints and one indicating parcel outlines. I want to find all parcels without a building on them. Essentially all parcel A's which ...
1
vote
1answer
71 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 ...
0
votes
2answers
133 views

Select multiple rasters from location

I have a lot of rasters (almost 4000) wich are representing individual glaciers in the Alps. I would like to select only the rasters located within the french border. As I have no information in the ...