Questions tagged [select]
The selection of data from a database based on some criteria.
586
questions
1
vote
1
answer
35
views
How to buffer a selected point in PyQGIS
I have a few random points that I generated within a polygon. I randomly selected one of the points and would like to buffer that point. In the case below, buffering will be applied to all points and ...
0
votes
1
answer
59
views
Select point features within same polygon AND with same field value QGIS
The situation
I have a point layer ("Beobachtungen") and a single part polygon layer ("Single parts"). For both layers, every feature has a unique id.
As shown in the image, some ...
-1
votes
1
answer
54
views
Seeking "redo selection" or "undo clear selection" in ArcGIS Pro
Is there a "redo selection" or "undo clear selection" in ArcGIS Pro?
I'm wanting to be able to basically undo a clear selection, so that a selection that I've cleared comes back. ...
4
votes
1
answer
166
views
How to make the selection color the same in the map and attribute table windows?
At 3.34, the color of selected features in the main map can be changed in either the Settings > Options menu or in the Project > Properties.
However, I have not found a way to change the color ...
0
votes
1
answer
62
views
Selecting roads covered by point features QGIS
I have a layer consisting of roads and another layer of point features (traffic signs). Is there a way in QGIS to choose the area that the traffic signs cover? By this I mean the area within multiple ...
1
vote
3
answers
64
views
What function in ArcGIS Pro Python replaces the ArcMap data frame method zoomToSelectedFeatures()?
What function in ArcGIS Pro Python replaces the ArcMap data frame method zoomToSelectedFeatures()?
I already tried other solutions (getLayerExtend for Layout), but didn't work.
##SNIPPET CODE
arcpy....
0
votes
0
answers
48
views
QGIS - How to show only one value when having multiple same values by expression [duplicate]
I wonder how could I show by expression only one labels when having the same values multiple times?
Does an "unique" function exists in QGIS?
For my column "abrev_county" I would ...
1
vote
0
answers
52
views
Number of features decreases when saving selected features to new layer in QGIS
I'm selecting features from a dataset using an expression. After selection, the selected features are a total of 6349.
I save the selected using export -> save selected features as, and I've tried ...
2
votes
1
answer
82
views
Highlight polygon in Leaflet
How can I hide(opacity) all polygons, and only show the one with ID 73
[click example code]: https://jsfiddle.net/etrv684u/1/
HTML:
<div id="map"></div>
<button id="...
1
vote
2
answers
87
views
ST_Distance from one location to others
I have a table that contains different city buildings and
want to calculate the distance of all the buildings of a type to another with a specific id using the ST_DISTANCE() function
0
votes
0
answers
44
views
How to select lines within a distance of a certain point?
I am currently dealing with the following issue:
I have a dataset with of the roads of a certain place in The Netherlands. Within this place I added two points.
I would like to know all the roads ...
0
votes
0
answers
38
views
Trying to delete buildings selectively from a CityGML
I'm currently working on refining my cityGML file by selectively removing certain buildings. My objective is to include specific neighboring buildings within designated building blocks while deleting ...
3
votes
2
answers
322
views
Create wider selection area to select lines on map using LeafletJS
When there are thin lines on the map, it is very difficult to click them with the mouse cursor. So is there any option to wider the selection area for lines in LeafletJS, without increasing the line ...
1
vote
1
answer
60
views
Select several layers by name using an expression
I'm am new to using PyQGIS and this question has been answered in various forms already, however not specifically the way I need it; I have a big QGIS project with several layers with similar, but not ...
0
votes
0
answers
25
views
Setting distance range in spatial join using ArcMap
I have many city polygons and I want to select some of them with distance range condition from boundary of other polygons. I use WITHIN_A_DISTANCE in spatial join but this item selects even ...
1
vote
1
answer
46
views
Selecting two adjecent line strings with select interaction in OpenLayers?
I have a map displaying various paths, separated to the segments, which are of type Feature<LineString>. We have a request to implement functionality allowing users to merge two neighboring ...
0
votes
0
answers
61
views
Selection of elements considering features
Still here to propose you a new problem. In the image is shown my situation. In yellow are reperented the streets, in green the buildings and in red is represented the area of the building if they ...
0
votes
0
answers
22
views
QGIS 3 - applying the same selection polygon to other layer
I have selected my large layer by using the "Select by polygon" option.
Unfortunately, I don't know how I could apply exactly the same polygon to another layer, which applies pretty much to ...
0
votes
0
answers
39
views
Select by Location from multiple point feature classes
So let's say I create a buffer around a point feature class.
Now I want to select buffers that "contains" points from "three other/different/separate" point feature classes. It's ...
1
vote
1
answer
207
views
Select by date in attribute table using ArcPy
I want to select attributes by date, but ignore the minutes, seconds, etc. I've commented out some of the lines below and am just experimenting with hard-coded values.
The arcpy.management....
0
votes
2
answers
95
views
Selecting points based on spatial and numerical criteria using ArcGIS Pro
I have a layer of 1,000 points in ArcGIS Pro. Each point has a 'rank' value in the attribute table between 1 and 5. I want to randomly select 5 points from each 'rank' (25 total points) where no ...
1
vote
0
answers
35
views
Select points within a distance of each other in QGIS [duplicate]
I want to select and remove 'duplicate' points that are within 200' of each other in QGIS. Meaning I want to leave 1 point and remove any others that are within 200' of it. I tried to buffer and ...
5
votes
1
answer
156
views
Selecting N points within each geometry using SQL
I have grid and point tables in my Postgres db. The points are not equally distributed over the grid. The grid table is 100k+ geometries and the points are in the 100's of millions so efficiency ...
1
vote
1
answer
33
views
Make this the only selectable layer keyboard shortcut not working
I've build in a shortcut for the "make this the only selectable layer" command (Ctrl+Alt+Z) on ArcMap, but when I try to use it, I can't seem to get it to work. I have my layer highlighted ...
1
vote
1
answer
51
views
Iterate through entire database, detect null or 0 values in Shape Area or Shape Length field and report them - ArcPy
I would like some code that goes through a database and reports any and all feature classes that have a 0 or a null value in an shape area or shape length attribute. If it could all get somehow put ...
1
vote
1
answer
136
views
Highlight marker when click and remove previous highlight in Leaflet
This is a follow up question to "Error changing marker icon when clicked in Leaflet".
I want to highlight a marker when clicked but at the same time reset previously highlighted marker. I ...
3
votes
4
answers
463
views
Selection by location with distance parameter using QGIS
I want to perform a selection by locatin in QGIS using "intersection." However, I want to add a distance parameter so that it disregards polygons that are exactly adjacent and retrieves only ...
4
votes
1
answer
70
views
How to select objects by their offset location in QGIS?
I have a line layer where I have lines that have lines that have the "same" geometry, only reversed. I would like to select only one direction at a time. In the symbology I set an offset and ...
0
votes
0
answers
44
views
(QGIS) Stop the Select Feature(s) tool from selecting features from a layer that have no symbology and are not visible
I am trying to select only the features that have a symbology but the Select Feature(s) tool is selecting everything contained within the layer, even if it is not visible on the map. Is there a way to ...
2
votes
1
answer
260
views
Selecting features and save them as a new polygon while removing the selected features from input polygon in QGIS
I have a shapefile with ~ 50.000 features.
I would like to manually extract ~ 10.000 features to test my model after its training.
Is it possible to make a manual selection like you see here, save the ...
1
vote
1
answer
34
views
QGIS select features by number of snaps
I have a situation such as this:
downloaded OS map vector lines, which represent the lowest possible scale of 1:1250.
all of them have exactly the same attributes as they come straight from the ...
0
votes
1
answer
207
views
How do you extract a time series of daily evapotranspiration in Google Earth Engine?
I would like to extract daily evapotranspiration for a specific date range, for example, 10/1/2012 to 9/30/2022. How can I specify the date range in the code?
And then how can I get either the time ...
3
votes
1
answer
103
views
Activating two layers at the same time with PyQGIS
I want to copy-paste values from one feature in a layer to another feature in another layer, for this, I like to have both layers activated to be able to select features from both layers.
Just as an ...
3
votes
1
answer
514
views
Get style of selected feature in select interaction OpenLayers
I'm trying to add a select interaction on a vector layer and get the stroke color of the selected feature returned. I am able to set the style for the selected feature, but getStyle does not return ...
1
vote
1
answer
84
views
QGIS 3.22.16 Bialowieza. Selecting matching value in 2 fields
I am using QGIS 3.22.16, I try to select similar 'null' value in 2 different field. I tried the solutions suggested from one this exchange.
Selecting features with equal values in different fields in ...
0
votes
0
answers
177
views
Select all layers in QGIS
In the previous versions of QGIS, to select all layers in the 'layer panel' and then remove them, I used 'CTRL + A'.
In QGIS 3.22 this is not possible and to delete multiple layers I have to select ...
4
votes
1
answer
77
views
Navigate the selection by keyboard in QGIS
I have a polygon layer with several instances (like a grid). I want to be able to change the selection with the up and down arrows. I made this code, and it worked for a while on a test polygon, but ...
0
votes
1
answer
102
views
Add to current selection where a field has the same attribute
I have a selection set on a feature class. I'd like to add to that selection set where the additional rows I'm selecting have an attribute that is the same as an attribute for already selected rows.
...
2
votes
1
answer
99
views
Select features based on distance and threshold value - ArcGIS Pro
Imagine that I have two point feature datasets, being zero_point and points. I would like use zero_point as my input feature to create a selection of points that are 1) as close as possible to ...
0
votes
2
answers
451
views
ArcGIS Pro: Definition Query > Create new definition query in SQL
I have one point type feature class and another feature class with a polygon.
Using ArcGIS Pro, in the feature class type point > Definition Query > create new definition query in SQL.
I want as ...
17
votes
2
answers
689
views
Showing the number of currently selected layers in QGIS
Although this should seem to be very straightforward, I cannot find out how to see the number of layers I have currently selected in QGIS. For example, in the example below I want to see somewhere in ...
0
votes
0
answers
19
views
Avoiding selection symbology when export map in ArcGIS Desktop 10.6
I have to export the layout of my map to jpg while iterating and zooming to selected features by means of a Python script.
How do I avoid the cyan to be included in the exported image without clearing ...
4
votes
1
answer
100
views
Deactivating one script in PyQGIS
I tried the following script in QGIS:
from qgis.gui import QgsMapToolEmitPoint
class ClickedPoint(QgsMapToolEmitPoint):
global pp
def __init__(self, canvas):
self.canvas = canvas
...
3
votes
1
answer
123
views
Selecting highest value ID of two overlapping buffered points using QGIS
I have a set of points in a QGIS layer.
These are trees that have been removed over time.
Often the same location has had multiple trees planted and removed.
The co-ordinates for these locations are ...
3
votes
3
answers
786
views
QGIS: fill a simple line polygon with color when selected
I have a polygon vector layer with Simple line symbology.
When I select one from Attribute table, QGIS change the boundary color in yellow, but I have difficulties to find it easily between many ...
6
votes
1
answer
264
views
Finding the shortest distance between two selected polygons using PyQGIS
I'm researching the shortest distance between two selected polygons among the number of polygons in a shapefile using PyQGIS. Coding as follows>
layer = iface.activeLayer()
sFeat1 = layer....
1
vote
0
answers
95
views
Removing automatic filter using QGIS [closed]
I opened a layer on QGIS 3.10.3 and got an automatic filter. I checked the Query builder, and nothing appears in the Query window. My colleague checked the attribute table on ArcMap. There is no ...
0
votes
0
answers
77
views
QField buffer on select geometry point
On my QGIS project i have a lots of points. I create a personal rule when I select a geometry (point), the selection create a view of a buffer area for a single point. I use this command on my ...
0
votes
0
answers
69
views
QGIS select one by one feature in a layer
I'm trying to select features one by one on a layer.
I have a line layer, I've created a buffer layer from this, and then what I want to do is to select one by one feature on the buffer layer, do what ...
-1
votes
1
answer
119
views
Python action to find out if selection made in one layer is inside polygon in another layer [closed]
Here is my beginning of code but it is not working.
layer1 = iface.activeLayer()
for feature in layer.getFeatures():
if feature.geometry().within(layer2.geometry):
print ('yes')
My goal ...