Questions tagged [select-by-location]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
57 views

Use selected feature in MXD as selector in python?

I am quite new to ArcPy. However, I want to write a script that: uses an existing SELECTED FEATURE of a feature class in a data frame of an existing MXD (on an SDE Server) for a SELECT BY LOCATION ...
1
vote
1answer
109 views

Comparing geometry between layers using QGIS?

I'm using QGIS 3.2.3. I have: a shapefile layer of town outlines (about 600 features) a spatialite layer of points (about 20000 features) I would like to filter the points layer to show only those ...
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 "...
2
votes
1answer
786 views

Join attributes of polygons to another polygon feature based on location QGIS

I have two large polygon data-sets. One highlights the building footprints for a county and the other highlights the parcel boundaries for the same county. Some parcel polygon features have multiple ...
1
vote
3answers
293 views

Delete ONLY selected features in ArcMap / ArcPy

I have a layer where features are selected by location in relation to one or more other layers (selection_type is ADD_SELECTION) in a loop. After that, zero, one, some or all features are selected. I ...
2
votes
1answer
272 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
vote
0answers
70 views

How to select trenches only upstream of a station (select by location)

I have a shape (line) that represents the hydromorphology of watercourses and contains several parameters. This morphological study of watercourses has been done on every 100 meters of surface ...
2
votes
1answer
502 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
1answer
36 views

Only output points near borders, excluding points near coast

I would have liked to ask for help, being confronted to a problem with ArcGis. I have in fact a shapefile of countries and a bunch of points. I would have liked to keep only the points that are ...
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 ...
1
vote
1answer
85 views

How to only select lines (geometry features) going through a polygon? [closed]

I'm currently trying to select bridges (line features), from a shapefile containing roads, which go across water (a polygon). The problem is when i try to select features crossing or intersecting the ...
1
vote
1answer
873 views

QGIS Select By Location geometric predicates explanations? [duplicate]

Im trying to test if a polygon either a) touches or b) is only semi-contained by another polygon. The first is self-explanatory i guess, but the second could be many of the different predicates ...
1
vote
0answers
149 views

'Select by Location' algorithm using Python script in QGIS

Could anyone explain to me how to run the 'select by location' algorithm in a QGIS 3.0 script? I find it really hard to understand the documentation about it. I found a lot of docs about how to write ...
1
vote
1answer
266 views

How to select features which overlap one geometry but are disjoint from another?

Given a point layer and a polygon layer (P1) in GeoServer, the following CQL Filter selects points which intersect the polygon P1: CQL_FILTER = "Within(geom,POLYGON((P1_coordinates)))"; The ...
-1
votes
1answer
51 views

Selecting from currently selected features using ArcPy?

When using ArcMap there is an option of selecting from currently selected features. What is the equivalent of that when i want to automate the process? Below is some sample code but its not showing ...
1
vote
1answer
62 views

Counting only data points which are within a specified radius of other data points?

I wanted to know if I am on the right track here with what I am trying to do. I have two shapefiles, the first contains point data for all the businesses in DC and the other contains point data all ...
1
vote
0answers
41 views

Iterate rows in polygon, use result to select by location

I'm not overly familiar with iterators but basically I have a polygon with multiple rows. I want to select each row in that polygon feature class and use the selected polygon in a select by location ...
0
votes
0answers
72 views

Selecting Points by their Spatial Location to an Attribute of a Layer

I have a large point layer of addresses within a district. Each address point has a field called "Street External Key [SEK]" which is tied (meaning identical to) the corresponding "Street External Key ...
0
votes
1answer
4k 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 ...
1
vote
2answers
219 views

Point data location to be set by Polygon ID

This might be stupid but I am trying to put points collected on the field to match the location from where they were originally collected. AS the X and Y coordinate of the point might not match the ...
1
vote
1answer
971 views

Selecting features intersecting a selection from another layer in QGIS

I have two large WFS layers in QGIS (2.16.3): one with polygons and the other with points. I've selected some of the features from the polygon layer and now I'd like to select all the features from ...
2
votes
1answer
157 views

Cursor to update feature class by location?

I am trying to update an existing field in a polygon fc with an existing field in a point fc. There is only ever one point fc located within each polygon fc. The field names in the polygon fc can not ...
1
vote
0answers
49 views

Automatically selecting street segments from address list? [closed]

I browsed around this site and a couples of other QGIS sites, and couldn't find solutions to my problems. However, I'm quite new to QGIS, so my question is possibly pretty naive. I need to create ...
0
votes
1answer
32 views

Build arcpy query to select features containing one OR another one string value?

I have a table. Based of field name "TYP", I would like to select rows which contains string values "a" or "b". I need to specify the query to my arcpy code. fc = "C:\\Users\\type_jan18.shp" field = "...
0
votes
1answer
151 views

how to identify cross streets for points that are not at intersections? [closed]

I have points that fall in the middle of city streets (so not at an intersection). I would like to automate (ideally, with python) a way to identify the cross streets that these points are between. ...
0
votes
1answer
121 views

Creating a layer from a selection, when I try to symbolize or label the layer, it brings back all the non-selected features

I'm trying to create a layer from a selection in another layer in ArcMap 10.5.1 like so... Doing Right Click Layer - > Selection - > Create Feature from Selected Features after doing my Select by ...
0
votes
1answer
445 views

Get value from an input select with getBounds

I have an input select (or select box, whatever), with some values, examples: 72, 73, 74... Where each value is an area on a map. I need that value for each option selected, so as to zoom in on the ...
1
vote
1answer
3k views

Join Attributes by Location - Precision

What does "Precision" do within "Join Attributes by Location"? Also, what's the difference between the "Geometric Predicates"?
2
votes
0answers
324 views

Select by location QGIS and PostGIS. Exception: unknown

Are there some limitations in feature number, while making spatial query in QGIS? All my data is in PostGIS format. When testing with a small amount of features, it works perfectly, but with 1032862 ...
1
vote
1answer
201 views

QGIS: alternative to add/edit virtual layer. With python?

Following a previous question (Select polygons with other polygons layer?), I select some polygons using the query in the answer to create a virtual layer: SELECT greens.* FROM greens, purples WHERE ...
1
vote
1answer
112 views

Iterative selection by attribute and then location using ArcGIS ModelBuilder?

I am trying to divide and record a road dataset using a GRID I just created. Is there a way to perform that using only the ModelBuilder or do I have to use Python (never tried before..)? Here is ...
1
vote
0answers
36 views

Model Builder - Selections Add Up at the End

I am creating a model so that I can help colleagues visualize the workflow I used on a problem. My task was find all manholes in a specific area that connect to pipes >= 36". Simple enough, I did ...
-1
votes
1answer
33 views

Have user select various features that are a set distance from a point? [duplicate]

I want the user to be able to click on a feature on a map, and from there have the GIS automate a window that can come up to select features to see if they are in that set distance from the feature. I ...
1
vote
1answer
84 views

Selecting points using random field values in ArcGIS Desktop?

I have point layer, counties border area layer and I want to pick different number of points within different areas (counties) but from existing point layer - e.g. county A -> 10, county B -> 6, etc. ...
0
votes
2answers
32 views

Selecting all links (multilinestring) that do not touch current link (multilinestring) using ArcPy?

I have a network of links (multilinestring) and nodes (point) which is topology of a rail network. I have an issue with the network. There are certain links that are not touching the main network at ...
0
votes
2answers
108 views

Create and populate field with name of feature (Select by Location) ArcPy

I am staring at 5600 individual points and 60 polygons. I need to create a new field in the point fc called 'Basin Name' and populate the field with the name of the Basin that it lies in. I am trying ...
1
vote
2answers
149 views

Performing row update within Select By Location based on field within selected feature class using ArcPy?

I am trying to select address points from address feature class within a selected zip code from zipcode feature class and populate the address feature class field "ZipCode" with the "Zip_Code" field ...
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 ...
1
vote
2answers
3k views

How to combine/merge attribute data from 1 layer to another, polygon to point, merge attributes and wrap/carriage return attributes

I am trying to merge field areas from a polygon layer into a point layer So the field area from this polygon onto the dot layer. Where the Point layer, has an String attribute, and set to Multiline, ...
1
vote
1answer
455 views

arcpy.SelectLayerByLocation_management gives ERROR 000368?

I have 2 shape files. One is a polygon while other is polyline. I need to select all the polylines that are completely inside the polygon. However this doesnot seem to work in any way. NewLinks = "...
2
votes
1answer
455 views

pyqgis: select features inside a buffer, then return some attributes of the selection as a list

I'm a python and pyqgis beginner (2 months-self taught) and I found it really hard to learn pyqgis API in comparison to the other APIs like kivy or Pyqt4. I'm writing a qgis plugin that user select ...
1
vote
0answers
63 views

Point data grouping based on location + huge dataset in QGIS

I need community help to solve my puzzle. I have one huge dataset of points that represent places where a set of trucks stopped. Points go to the database if the reported speed of a truck was 0. The ...
3
votes
1answer
71 views

SelectLayerByLocation works in ArcMap but not in standalone script [duplicate]

I have a piece of code that selects a layer based on the data frame extent. the code works when I use the code within ArcMap. However, as soon as I try run this as a stand alone script, nothing gets ...
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 ...
2
votes
2answers
761 views

Select by location is not working in the processing modeler

When I run the modeler in qgis 2.14 I get no results from the select by location algorithm. I tried outputting my buffer polygon and using the select by location plugin and it worked fine. I have ...
3
votes
1answer
101 views

Define precision in geometric predicate methods in PyQGIS

It is possible to define precision for geometric predicate methods, such as: intersects (), contains (), equals (), touches (), overlaps (), within (), crosses() For example, I'd like to set the ...
2
votes
2answers
1k views

Select features from another layer based on a selection in PyQGIS

I have two polygon features: epoca and result. I would like to select the features that correspond to the number 1 feature (features A and B) and then select the corresponding features with the ...
0
votes
0answers
35 views

Selecting features from another shapefile using ArcPy cursors and SelectLayerByLocation?

Having the code below im trying to select all the table features from an school_enroll.shp that are within each bigger zones from the hs_bndy.shpwhen i use the arcpy.SelectLayerByLocation_management ...