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
2answers
284 views

Storing station data in netcdf and plotting on map using R. Station wise with location as attributes or all grid points?

I have around 100 stations of data spread over around 60 deg lon x 50 deg lon which I want to save as a netcdf using R. Do I have to make a netcdf with all grid points with non-stations being NAN or ...
1
vote
1answer
332 views

How to 'Extract by location' in QGIS 2.99.0?

Once in the good old times of QGIS 2.14.17, there was an 'extract by location' algorithm: In QGIS 2.99.0 neither searching for 'extract' nor for 'location' delivers such result: (Oops, NO hit when ...
1
vote
0answers
663 views

QGIS select by location doesn't use selected features only

I'm using QGIS 2.14.3 - Essen (but have also tried 2.18.12 Las Palmas) Using 2.14.3, if I select one feature in a vector layer, and then use [Vector][Research][Select by Location], I have the option ...
0
votes
1answer
365 views

QGIS select by location and use field calculator python

I am trying to automate the repetative task of selecting by location and updating a field according to the selection. The issue is that field calculator uses all features instead of the selected. Is ...
2
votes
1answer
341 views

Error in qgis:selectbylocation python processing method

I am having trouble with my code for selecting all points within a buffer layer, with the error given below. I am using this documentation as reference for the field formats: https://docs.qgis.org/2.6/...
0
votes
1answer
122 views

Arcpy Select by Location and Export CSV

I am trying to automate a process using python and arcpy. I have a scenario where a user will open an mxd and edit a polygon layer drawing a new polygon. They will then want to use just this new ...
0
votes
1answer
732 views

Selecting layer by visible extent using Select Layer by Location in ArcPy?

I am trying to use arcpy to select just the visible extent of layers within a user's area of interest (AOI). For example, if the user wants to select these roads within the AOI: Is it possible to ...
2
votes
2answers
581 views

Selecting points within buffer using PostGIS?

I have approx 73,000 locations. For each location, I need to know which of the other locations is within a 1km radius from it. I would like this result to be in a table (so perhaps using a PostGIS ...
2
votes
1answer
1k views

Select feature in GeoJSON layer by location

I have a Leaflet slippy map with a GeoJSON layer loaded. I can click this layer manually and read attribute values from it. Now my question is: How can I read attributes of said layer without ...
1
vote
1answer
824 views

QGIS - select or export point attributes by polygon feature

I have two layers, one polygons of boundaries (similar to say local government areas) and a point layer of hospitals. I want to select all of the hospitals within a particular area (ie a particular ...
2
votes
1answer
555 views

Inverting selection in PyQGIS?

I want to select the features that are not equal. So, I made a selection by location where the geometric predicate is equal and then I thought to invert the selection. Is there any way to invert the ...
2
votes
1answer
139 views

Select lines with an endpoint within a distance of a point feature class

Any ideas on ways to select line features that have an endpoint/node within a distance of a point feature class? I have been using arcpy.SpatialJoin_analysis and arcpy.SelectLayerByLocation_management ...
0
votes
1answer
83 views

Error 00368 using arcpy.SelectLayerByLocation_management

I'm new to programming and I'm having trouble with my script: #Set join parameter variables inFeatures = arcpy.GetParameterAsText(0) inField = arcpy.GetParameterAsText(1) joinTable = arcpy....
3
votes
1answer
465 views

Make this the only selectable layer (greyed out)

Someone else has tried Creating shortcut (button) for "Make this the only selectable layer" in Python 2.6? but, as pointed out there, the answer doesn't work. When adding "Make this the ...
1
vote
1answer
221 views

Updating field based on another feature

I have looked through the other topic similar to this and they just don't seem to have exactly what I am looking for. I have a feature class 'AGM' that I want to update a field in based on the AGMs ...
0
votes
1answer
624 views

Arcpy Select by Location Invert

I am trying to complete a select by location, and then Invert my selection, the code runs and does not error, but my selection is not inverted. Not sure what could cause this. Parks=r"Path" ...
1
vote
1answer
55 views

Summarizing values of polygons into other polygons using PostGIS?

I have two tables. One for school districts, one for schools with the total number of each student in the school. I created a float field in the districts table for student population. I want to ...
0
votes
1answer
99 views

Specifying field value in ArcPy update cursor for field calculation?

I am trying to update a field using the arcpy.da.Update cursor where I can use the value from a select by location result to populate a new field. Ideally, I would like to be able to use a field value,...
2
votes
1answer
898 views

QGIS 2.18.4 - Select by location returns no selection

I have a point layer (green points) and a polygon layer (orange line) which a number of the points fall within. I have double checked and both layers are in the same CRS. I have tried multiple ...
3
votes
3answers
467 views

Show labels for features that fall outside of inset data frame

I'm working with a scripted Mapbook in ArcMap; There are several pages that require an inset map to show detail of a cluster of points in the main data frame. The cluster of points comes from one ...
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). ...
1
vote
0answers
119 views

QGIS 2.14.3 constantly crashing when digitizing

I'm using QGIS 2.14.3 Essen on Linux Mint 17.2 Rafaela. I'm digitizing either into .OGR vector file or a Spatialite database. Same happens with both. I can be digitizing a string, I complete it with ...
1
vote
0answers
48 views

Conflicting polygons in shapefile [duplicate]

In a QGIS-project I have a shapefile consisting of polygons. However some of the polygons are double and thus laying over each other. Is there a way I can select all these 'conflicting' polygons so I ...
7
votes
2answers
697 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 ...
1
vote
1answer
80 views

Select by location is empty when done through arcpy but returns values when done manually

I have nearly 1000+ shapefiles that I need to (1) reproject, (2) covert to a raster, and (3) clip. In order to make sure that there are values within the extent of concern, I put in a ...
1
vote
1answer
113 views

Using select by location is a stand alone script

I have script that I run quite regularly in the python window of Arcmap 10.2.2 and am in the process of converting it to a toolbox script so that others can use it more easily. It uses select layer ...
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 ...
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. ...
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
682 views

Autohide marker after x seconds [closed]

Working with Leaflet Control Search. I would like to add a timeout function to the marker that is added to the map if a location is found. Any ideas in which line I have to add "setTimeout" function? ...
2
votes
1answer
598 views

PostGIS ST_Intersects vs ArcGIS Select by Location

I have two polygon tables, 'cities' with ~5600 rows and 'lte_coverage' with ~469314 rows. I need to know wich cities have LTE Coverage. Using ArcMap, I get this answer in about a minute, using '...
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?
2
votes
2answers
118 views

Create a Select by Attributes subquery from a locational selection in ArcGIS with multiple variables

I have a large shapefile of GPS points. Each point has a unique point ID number, but they are all part of different clusters, where each cluster has a unique cluster ID number (there is no overlap ...
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
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 ...
2
votes
2answers
580 views

PostGIS ST_DWithin negative distance

I am trying to replicate an ArcGIS select by location type query in PosGIS. In ArcGIS I am using the "are within a distance of the source layer feaure" where the target layer is municipalities and the ...
1
vote
2answers
241 views

“Select by location” instead of SQL query for labeling?

Within ArcMap, is there a way to indicate what features to label via a "select by location" method instead of a SQL query? I would normally approach the issue by adding an additional field in the ...
1
vote
0answers
47 views

How to click a line segment when close?

I am looking for help to modify mouse click so that I can click a line segment without having to be directly over it. I have been looking at Leaflet.AlmostOver but have been having difficulty ...
1
vote
1answer
253 views

Difference between PostGIS ST_Intersects vs '=', QGIS and ArcGIS 'select by location'

I have two tables, 'protein' and 'data_aggreg', in a PostGIS database. I am simply trying to query the points that intersect (all of the points in 'data_aggreg' share exactly the same geometry as a ...
2
votes
1answer
749 views

Using Select By Location Intersect, how to exclude the join features that only touch the boundary of target features

I have two layers: an Agricultural Land layer and a Parcel Layer (Both are polygon shapefiles). Some big features in Ag Layer will contain, but not completely contain several features of Parcel layer ...
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-...
1
vote
0answers
307 views

'Selecting by freehand' tool - selection disappears

I have been trying to select some features of my map on QGIS to create the boundaries of a domain, however when I draw a shape using the 'Select by freehand' tool, the selection disappears as soon as ...
2
votes
1answer
2k views

Loop through Features in a Layer with ArcPy

I am trying to loop through a list of features in a layer to: select a feature select all features adjacent to that feature export the selection as a new table, then convert it to an excel file. ...
1
vote
1answer
73 views

Detecting changes between two shapefiles on basis of attributes as well as spatial location in single query?

In MapInfo we can easily compare two files on the basis of sql query where map info works on rows. You need to update only latitude and longitude and create points on the basis of lat/longs in both ...
2
votes
1answer
108 views

Updating symbology values/fields shown based on location selection in Data Driven Pages?

I am producing some maps for a client who owns a lot of water and sewer assets. The data supplied by the client has automated symbology which imports when dragging them in from the geodatabase based ...
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 ...
1
vote
1answer
108 views

How to select polygons which are situated between two points using select by location?

I am working with ArcMap 10.3. and have a polygon layer and a point layer. I've selected two point layers and now I want to select the polygons which are situated between those two points. Is there a ...
0
votes
1answer
590 views

Looking for a places API that can return residential and business addresses for a city

I'm working on a web application for a UK-based client that has two location functions - 1) report a location using keyword or postcode 2) search for a specific place using keyword or postcode The ...
1
vote
0answers
44 views

Selecting polygons that are to left (in west) of point in ArcMap? [closed]

I am working with ArcMap 10.3 and I have to select polygons that are left (in the west) of a point layer. I want to try it with "select by location" but I am not sure if that is really possible. Is ...
0
votes
1answer
555 views

Selecting visible features only of active layer in QGIS with Python?

I need to select features from the layer_1 which are inside a virtual polygon which is covering all features from layer_2. I think one of the solution could be to zoom all features from layer_2 and ...