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
469 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
460 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/...
1
vote
1answer
1k 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 ...
1
vote
1answer
145 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 ...
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 ...
2
votes
2answers
984 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 ...
0
votes
1answer
174 views

Max Number of Feature Selection in ArcGIS? [closed]

What are the limitations on the maximum number of features that you can select in ArcGIS?
1
vote
1answer
1k 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
817 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 ...
3
votes
1answer
3k views

Iterating Select By Location in ModelBuilder?

I need to do exactly what the help topic http://resources.arcgis.com/EN/HELP/MAIN/10.1/index.html#/Select_By_Location_Select_based_on_spatial_relationship_within_the_layer/0017000000tr000000/ says can ...
2
votes
1answer
171 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
103 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....
1
vote
1answer
341 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 ...
2
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 ...
2
votes
1answer
970 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
73 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 ...
1
vote
2answers
5k views

How to select points within a certain distance from a line?

I have a file with a points layer and a lines layer. I would like to select only the points that lay within certain distance (a couple of meters) of the lines. Is there an easy way to do this? Or ...
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 ...
0
votes
1answer
106 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,...
1
vote
3answers
1k views

Select points located within Multi Ring Buffer

I have two point datasets, 1 showing the location of road accidents, the other showing the location of traffic intersections. I have created a Multi Ring Buffer at 25m intervals around the traffic ...
1
vote
0answers
137 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 ...
3
votes
1answer
4k views

Deleting selected features with ArcPy?

I am having trouble deleting the features I have selected using 'arcpy.SelectLayerByLocation_management' tool. To use the select layer by location tool, you much pass in a .lyr file. My script ...
2
votes
1answer
1k 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
752 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
706 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). ...
5
votes
1answer
169 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
466 views

Select Layer By Location (Management) gives different result in ArcPy and ArcMap?

I have two line Shape files. When I use the Select layer by location tool to select two intersecting lines, it works fine and selects only lines which are actually intersecting. But when I use this ...
1
vote
0answers
53 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 ...
1
vote
1answer
165 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 ...
0
votes
2answers
3k views

Spatial databases in location based search

I'm developing a location based application in which i was in the plan of dividing the globe into grids and when the client requests information, will create a table or similar data model which will ...
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 ...
1
vote
1answer
362 views

Python code to select streamlines within selected watershed

I'm trying to calculate total stream length for multiple, overlapping watersheds (i.e., each watershed contains the watersheds upstream of it). I have a flowline layer that I've run through the ...
1
vote
0answers
33 views

Field names change when selecting by attribute/location and then copying feature in ModelBuilder? [duplicate]

I am trying to create a tool to make my workflow faster for a routine job task. Basically, I have a USGS 7.5 min quad layer and a feature (species) layer, and I want to ultimately create a shapefile (...
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 ...
1
vote
1answer
950 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
739 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 '...
2
votes
2answers
154 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 ...
1
vote
1answer
5k views

MapInfo Calculating the number of Points that Fall within a Boundary

I have two layers in MapInfo (points and polygons). I need to select points which fall within polygons where the income > 1500 I tryed this one but not working: http://www.sgsi.com/MIUserGroup/imgs/...
4
votes
3answers
3k 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 ...
1
vote
1answer
137 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 ...
1
vote
2answers
1k views

Can I use my SearchCursor in Select by Location

I am trying to select the largest polygon that contains each feature in a feature class but none of the features in another feature class. I have written the code that seems logical to me but (of ...
2
votes
2answers
893 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
317 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
51 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
358 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 ...
4
votes
1answer
458 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 ...
2
votes
1answer
1k 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
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-...
0
votes
1answer
364 views

SelectLayerByLocation keeps giving error 000840: The value is not Boolean

I've seen a lot of questions asked and answered about trouble with the Select Layer By Location tool. Most ask about invalid input errors and the answer generally is to make sure to use layers (as ...
0
votes
1answer
328 views

How to get features “not getting” intersected in arcobjects?

I have two feature classes. I'm intersecting both of them. I have to return features which does not intersect with the other. Lets take an example. I have two feature classes: villages and colleges. I'...

1
4
5
6 7 8