The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
556 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 ...
4
votes
2answers
812 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 ...
-1
votes
1answer
52 views

how do I select records from a layer that do NOT have features from another layer within them? [closed]

I'm trying to find vacant land in my city. I have a layer with buildings and a layer of parcels. I want to create a layer of the parcels that do not have buildings within them. I have tried select by ...
0
votes
1answer
81 views

Determining and selecting certain line using spatial analysis?

I have some lines on a picture. I need a green line to be selected as a reason to having a wrong parameter which painted this line green, not red. The yellow one seems to be almost perpendicular to ...
1
vote
1answer
512 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".
0
votes
2answers
48 views

Select lines by poly using ModelBuilder?

I have a set of polys for cities and a set of lines for streets. What I'd like to do is anywhere a line segment (streets) is within a city (poly) have the value for the city applied to the line ...
0
votes
1answer
245 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
0answers
122 views

multiple median or mean points [closed]

I am using ArcMap 10.3. In my map there are resources, and I want to find the location which minimize the distance between them. If I use the Mean or Median Center weighted on the resource I find just ...
3
votes
1answer
202 views

select living-end-streets from a local osm-road-extract with QGIS

I am looking for a method or query to select living-end-streets from a local osm-road-extract. Living-end-streets are dead-end-streets for cars but cyclists and pedestrians can continue on their way. ...
1
vote
0answers
254 views

Summary statistics from feature iterator and select by location - missing selected feature name. Arcmap 10.2

I'm trying to calculate summary statistics for a subset of a point feature, based on selecting by location. I'm using a feature selection iterator to get statistics for each polygon feature in the '...
0
votes
1answer
73 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
1answer
741 views

SelectLayerByLocation_management gives ERROR 000368: Invalid input data?

I'm trying to use SelectLayerByLocation_managment in a script and keep getting the following error: ExecuteError: Failed to execute. Parameters are not valid. ERROR 000368: Invalid input data. ERROR ...
0
votes
1answer
75 views

Selecting polygons below (downhill of) lines using ArcGIS for Desktop?

I am hoping to identify sections of a trail system which are close enough to potentially add sediments to wetlands downhill. To this end, I would like to select polygons (wetlands) that are within a ...
1
vote
1answer
488 views

How to merge adjacent polygons with no common attributes in GRASS?

Many topics are talking about merging polygons based on their common attributes, but few (or none) give a real answer to location-based merging problem. Explanation. Here is a fraction of the base ...
2
votes
1answer
9k views

How to get polyline latitude and longitude by click on polyline android?

I have set Polyline click listener like this : map.setOnPolylineClickListener(new GoogleMap.OnPolylineClickListener() { public void onPolylineClick(Polyline polyline) { int ...
4
votes
1answer
372 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 ...
3
votes
1answer
322 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
867 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 ...
3
votes
1answer
112 views

Performing selection on Attribute and Location of two different feature classes using ArcGIS for Desktop?

I have a point FC and a Polygon FC. Both FC have the attribute VILLAGE. The point with Village = 1500 should be completely within the Polygon with Village = 1500. How can I make a selection not only ...
2
votes
0answers
128 views

intermittent failures with SelectByLocation in an ArcPy addin [closed]

ArcGIS 10.2, Windows 10 this is the line that fails: arcpy.SelectLayerByLocation_management(WRS_layer, "INTERSECT", gridLayer, "", "NEW_SELECTION") The WRS_layer is in a file gdb, the gridLayer ...
0
votes
2answers
80 views

How to avoid manually typing coordinate information in CreateCircle function to select points in Mapinfo

I have a bunch of data points, each of them have a coordinate information (longitude, latitude). I am using CreateCircle( x, y, radius) function to select points within a distance to the chosen point....
0
votes
1answer
316 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 ...
1
vote
1answer
2k views

Using “Select by Location” in ArcGIS ModelBuilder?

I need some assistance for my workflow in ArcGIS ModelBuilder. I have two datasets: Points (unique ID field: "bldg_id") Parcels I am trying to select Parcels within a certain distance (e.g., within ...
1
vote
1answer
1k views

Using Select Layer by Location in ModelBuilder?

I'm trying to export a selection ( "select by location") using Copy features. The selection is from the "Layer1". It apparently executes the selection, but the copy feature is made by the original ...
1
vote
0answers
197 views

Arcpy Select by Location out of memory

I have multiple lines (lines) intersecting points (centroids) from which I want to extract landuse values and then write the extracted values to the lines as 'land1' and 'land2' values. I need to ...
2
votes
1answer
331 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 ...
2
votes
1answer
465 views

While loop with Select by location (Add to selection) is not stopping

I have problem with my while loop code. It is not stopping, despite that values used to evaluated the condition to stop the loop are actually met (I can see in in my print statement). Here is the ...
2
votes
0answers
427 views

Command line join attributes by location using OGR

I have two overlapping vector files (polygons and sample) and want to do a spatial join from the command line to extract all features in polygons that intersect with sample. Essentially I want to have ...
1
vote
1answer
149 views

Select by location using ArcPy [closed]

I try to select by location all layers that intersect layer named "frame", and then remove from the maps other layers that don't intersect it. Finally, i want to print the all the removed layers and ...
2
votes
3answers
305 views

Selecting max value of a select by location with ModelBuilder and Python?

I am new to ModelBuilder and Python scripting. I am trying to create a model which selects each feature within a dataset, uses a select by location to select all features within a 50m radius, and ...
0
votes
1answer
115 views

Correct spatial selection method

I have layer containing a area that will be flooded if the water level rises 6 meters. I also have a layer containing roads for the whole area. I want to export all the roads that will be under water ...
1
vote
1answer
159 views

Spatial selections using Python in ArcGIS

I am trying to perform a spatial query using Python in ArcGIS, here is my code: I'm getting the following error: Traceback (most recent call last): File "C:\Users\acarr\Documents_PYTHON ...
2
votes
2answers
249 views

Cannot get Remove From Current Selection to work in ArcMap?

I am a Newbie using ArcGIS 10.3 for Desktop: After importing a whole watershed streams Layer, I selected by location a subset of the streams which was already defined with a separate name. "intersect ...
2
votes
0answers
481 views

Selecting polygons that are completely surrounded by other polygons [closed]

Is it possible in ArcMap 10.4 to select single polygons of a particular attribute that are completely surrounded by polygons of a different attribute? Using a segmentation shapefile from a rule-based ...
10
votes
1answer
3k views

Does ArcGIS Online allow Select By Location?

This question refers to the standard ArcGIS Online map, eg http://your-site.maps.arcgis.com/home/webmap/viewer.html Is it possible to perform a Select By Location, eg to find points from one layer ...
2
votes
0answers
83 views

Select by location not selecting all features in ArcPy [duplicate]

I am having an issue with the "select layer by location" tool in my ArcPy script, that may be due to a hidden memory error. Using one feature class with 281 polygons, I would like to select all of the ...
3
votes
1answer
187 views

Selecting many maximum points within polygons

I've got a point layer with three values such as high, age etc. and polygon layer with many forest area. What I want to do is to select the 100 maximum (highest) points in every polygon. I can't do ...
4
votes
3answers
823 views

Select Lines that have points on edge but not on end

I am looking for an easier way (if it exists) of selecting all lines that have points snapped to them but where the points are not on the end-points of the line. My current method is to: Generate ...
0
votes
0answers
1k views

How to select within a distance using QGIS [duplicate]

With QGIS 2.12.3, I have two projected EPSG:2927 point shapefiles, A and B. I would like to create a selection of A points that are within 100 meters of any B point. This is easy in Arc, using the ...
0
votes
1answer
49 views

Searching by location

I need an advice for a service. On our website we have a search for events. Users are especially interested in the location of event so they use that filter a lot but the problem is that in our ...
1
vote
1answer
123 views

Using Select Layer By Location in ArcPy?

I'm a new Python student looking for some help regarding a homework problem. I need to analyze wells with each county in a state. So I have the wells shapefile and a counties shapefile for a state. ...
7
votes
1answer
1k views

Fast Select by location in FME?

I've got a large polygon feature class that covers the whole of GB and contains about 120k features. I need to do a spatial filter on this feature class in FME workbench. I've done this in Arc ...
1
vote
1answer
157 views

Select by Location using first points of polyline

I am trying to select a point from a point layer that intersect a polyline layers firstpoint and using arcpy. I am getting an error "ExecuteError: ERROR 000622: Failed to execute (Select Layer By ...
0
votes
4answers
111 views

Web service with geoprocessing capabilities (i.e. use of select tool)?

We would like to have a published web service with capabilities to allow geoprocessing operations (consume feature data) - select tool (e.g. select by attributes) - on the service when we view/open it ...
1
vote
1answer
33 views

Error 000358 using SelectLayerByAttribut_management using escape characters

I am trying to use arcpy.SelectLayerByAttribut_management using the following code: def filterData(self): self.filterBuilder() arcpy.MakeFeatureLayer_management (r"%s\tempclipprefilter"%self....
4
votes
1answer
7k views

Selecting rows in a layer using arcpy.SearchCursor

I'm working on a project to identify points that fall along lengths of road. The roads are stored a single featureclass within a file geodatabase, as are the points. I'm using ArcGIS 10.3. I'm trying ...
0
votes
1answer
33 views

Select Layer By Location to feature class in ModelBuilder?

What is the best way to convert the Feature Layer output of Select Layer By Location to Feature Class in ModelBuilder?
0
votes
1answer
32 views

Documentation on spatial queries [duplicate]

Is there any documentation / definition of the operations within, crosses, intersects etc that can be found on the spatial query just like ArcGIS provide?
1
vote
2answers
482 views

Python select by attributes, location, copy features [closed]

Python script is failing. It's supposed to make a selection from a lyer based on attributes value and then select intersecting features of that selection and then make a copy of the selection as a new ...
3
votes
1answer
3k 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 ...