Questions tagged [select-by-location]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
48 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 ...
1
vote
1answer
1k 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 ...
7
votes
2answers
927 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 ...
0
votes
1answer
134 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
52 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 ...
0
votes
1answer
268 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
1k views

Selecting parallel line segments but not segments that intersect

I have 2 different shapefiles that each have railroad track on them. Most of the track being displayed is the same, but since it is coming from 2 different sources, the physical lines themselves are ...
1
vote
1answer
730 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 ...
2
votes
3answers
212 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 ...
1
vote
2answers
182 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
357 views

Selecting zip codes without using lasso tool? [duplicate]

I'm new to ArcGIS Desktop. I have a layer representing US zip codes and another layer of data points. I need to select all the data points within every zip code and find out the min-max value of the ...
4
votes
3answers
2k views

Selecting Counties within Region via Spatial Query using QGIS/PostGIS?

I'm using GQIS 2.2 and PostGIS on Postgresql 9.3. I have 5 regions in the contiguous United States. Each region has states, and each state has counties. I would like to think that the data I'm given ...
1
vote
1answer
84 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 ...
3
votes
1answer
263 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 ...
1
vote
0answers
67 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 ...
1
vote
0answers
69 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 ...
1
vote
0answers
74 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
190 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
266 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)...
2
votes
1answer
1k 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 ...
4
votes
1answer
251 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 "...
51
votes
2answers
94k views

Selecting features within Polygon from another layer using QGIS?

I'm using QGIS 1.8 with a PostGIS database and I have three PostGIS-layers in QGIS a lines layer, a points layer and a polygon layer. What I'm trying to do is to select a polygon in the polygon layer ...
1
vote
3answers
803 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 ...
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 ...
1
vote
1answer
176 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 ...
6
votes
1answer
522 views

Getting different results using Select by Location with ArcPy vs ArcMap?

I have two different layers. One layer contains features that are supposed to sit directly on top of features in the other layer. With ArcPy I'm doing a SelectLayerByLocation with "ARE_IDENTICAL_TO" ...
3
votes
1answer
407 views

Selecting Features within distance and direction using ArcPy? [closed]

Is there a way to select features in a layer by location based on their proximity to another feature and the direction? E.G., select all features within 10 meters north of current selection? I am ...
1
vote
1answer
39 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
179 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 ...
4
votes
1answer
257 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
0answers
265 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
634 views

Creating point in ArcPy to use in Select by Location query?

I have a section grid for a US state. I also have a quarter/quarter section grid which splits the section grid into 16 equal squares. I have written a Python script that finds the XY coordinates of ...
1
vote
1answer
412 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
93 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 ...
2
votes
1answer
63 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 ...
4
votes
1answer
156 views

select by location

When performing an overlay or intersect I would like to know if there is a way to ignore selection when intersection or overlay is less than a certain percentage of area or less than a certain number ...
0
votes
1answer
76 views

How to retrieve current extents of the location?

How google is getting its maps zoom to current extents where we have located eg: If i am get hyderabad kphp on google maps its directly redirects to hyderabad city extents while opening a map , if it ...
1
vote
0answers
47 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 ...
-1
votes
2answers
743 views

Select adjacent polygons using ArcGIS modelbuilder

I made a model which exports polygons to a new layer within a loop (FOR iterator: from value 1614 to 1654, by value 10). Nr. 1 is the first shapefile, Nr. 2 is the second shapefile. I only want to ...
0
votes
1answer
261 views

Calculating well densities in selected counties using ArcPy?

I am trying to calculate: total numbers of wells that fall into each county in a shapefile, and update the county table with the total count. calculate the well density (how many wells there are per ...
1
vote
2answers
411 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 ...
2
votes
1answer
349 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 ...
0
votes
1answer
41 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 = "...
1
vote
1answer
866 views

Multiple select by location in arcgis using arcpy [closed]

I wanted to know whether there is there any way of selecting features by using select by location multiple through arcpy, like "SelectLayerByLocation_management".
2
votes
1answer
4k views

How to select by location with multiple source layers?

I would like to script the selection of the square that contains both the orange and green points, but not the squares with any other combination of points including white points. I am very familiar ...
0
votes
1answer
254 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
182 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
603 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"?

1 2
3
4 5
8