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
0answers
29 views

QGIS Channel Network - Merging all polylines

In QGIS I have created a Channel Network using the SAGA Channel Network Tool. I would like to select all the Channels and their upstream network which intersect the blue polygon. Of course the Select ...
1
vote
2answers
242 views

Select by location using separate features iteratively (pyqgis)

I am looking for a way to run select by location, specific to the features of the 'INTERSECT' layer. I have got bus locations and bus stops and want to figure out when the bus has entered and left ...
1
vote
0answers
37 views

Creating automatic sum column in ArcMap

Using ArcGIS 10.3 I have a table with different categories and would like to summarise each of them. I want it to work as well when these data are selected inside a polygon. Below is an example of ...
2
votes
2answers
137 views

Select by location using for-loop in Python Terminal

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 ...
1
vote
1answer
97 views

Select by location tool Vs layer.getFeatures(QgsRectangle(xmin,ymin…)))

I can't make sense of the difference between: QGIS Select by location tool (Vector->Research tools->Select by Location") which gives the correct result :7 records match the extent: Creating a ...
0
votes
1answer
26 views

Finding what intersects feature without join in ArcGIS Pro

I am new to ArcGIS Pro. Which Geoprocessing tool do I use to find the Features in FeatureA that intersect FeatureB without prerforming a join? I just want a selection of FeatureA - not clipped to ...
3
votes
1answer
924 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 ...
2
votes
1answer
90 views

QGIS - Extract by location, what does Cross do?

I don't understand what Cross does when extracting by location, and how it differs from Overlap- the definition on the user guide is very confusing - it says: Cross: Returns 1 (true) if the ...
0
votes
1answer
70 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. ...
2
votes
1answer
75 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. ...
2
votes
1answer
208 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 ...
2
votes
1answer
1k views

Selecting n-random points within polygon as single feature in Google Earth Engine?

IMPORTS: var geometry = /* color: #98ff00 */ee.Geometry.Polygon( [[[73.85016678395664, 14.304113379426035], [73.85016583974448, 14.048667693939866], [74.0477686190103, 14....
1
vote
2answers
77 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
65 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
31 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" ...
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 ...
3
votes
2answers
314 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
1answer
802 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 ...
1
vote
1answer
199 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 ...
2
votes
1answer
116 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. ...
2
votes
1answer
2k views

Selecting cells within polygon layer without extracting them using ArcGIS Desktop? [closed]

I know how to use the tool, Spatial Analyst Tools > Extraction > Extract by mask for cells that lie within a polygon shapefile, but is there anyway to just select those cells without having to ...
1
vote
1answer
72 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("*....
0
votes
0answers
83 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
0answers
29 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 ...
2
votes
1answer
242 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
0answers
390 views

Selecting only parallel lines along center line? [closed]

I have read through how to find close and parallel lines but I am still looking for a simpler solution. Found several ArcGIS forums post on the topic but no answers there either. Does a tool exist in ...
1
vote
1answer
142 views

Batch updating point attributes based on values of underlying polygon using ArcGIS Desktop?

I have a points shapefile with a blank field. I want to populate this field with an attribute obtained from another underlying (polygon) shapefile. I can do this for a single record easily using ...
0
votes
1answer
52 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
6k views

Set my Home location on Google Maps, if it does not have an official/registered address?

The answer to "Adding new address to Google Maps?" does not include a case for non-business addresses. I want to add my home address, which is not a register address. Ideally, I should have been able ...
0
votes
1answer
49 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> ...
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 ...
0
votes
0answers
30 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
237 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
87 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 ...
1
vote
0answers
61 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 ...
0
votes
2answers
4k views

Select Layer by location does not work

I am having trouble using the "Select Layer by Location" tool. I want to select everything from shapefile A (green) that overlays with Shapefile B (red). Here is the raw data: And one example of the ...
2
votes
3answers
959 views

Best way to find points outside state boundary that are supposed to be within specific State

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 ...
2
votes
0answers
76 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 ...
0
votes
0answers
77 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 ...
1
vote
1answer
366 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
132 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 ...
5
votes
1answer
802 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? ...
3
votes
1answer
310 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 ...
0
votes
1answer
59 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 ...
2
votes
1answer
204 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
1answer
314 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 ...
1
vote
2answers
143 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
50 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
48 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
386 views

Choosing LiDAR tiles with vector data using LAStools?

So the problem is that I have a huge amount of LiDAR tiles (in .laz format), but need only part of them that are within the borders of the city. When I load all the tiles to LASTools, I have ...

1
2
3 4 5
8