Questions tagged [select]
The selection of data from a database based on some criteria.
586
questions
0
votes
1
answer
32
views
Select values of noise contours along one road
I have a map of noise contours across a city and am using ArcGIS Pro.
I want to select one road (not straight) and export the noise values along that road to a table but I'm having trouble selecting ...
2
votes
1
answer
6k
views
Activating and deactivating of button control not working properly
I have two buttons, one for editing purposes and one just to see all the information related to the polygon I selected. Also I added these two buttons on my panel using OpenLayers control. I am ...
0
votes
1
answer
177
views
Random selection of XY% of points within fishnet cells in ArcGIS Pro
I am using ArcGIS Pro and have a feature class of approx. 30.000 points and a polygon grid. Within each grid cell I want to select XY% (50, 70 or any other percentage) of the points (see picture).
I ...
1
vote
0
answers
102
views
Apply fix value difference in selected pixels of a raster file in Qgis
I am using the serval plugin in QGIS to spot edit a DEM in raster format. Besides the built in tools that I use, I have realized that in some cases I can achieve the desired results by applying a ...
3
votes
2
answers
294
views
Deselecting layer using PyQGIS
I can select a layer using:
lyr = QgsProject.instance().mapLayersByName( "lyr_name" )[0]
iface.setActiveLayer(lyr)
This selects and highlights the layer in the table of contents.
How can I ...
7
votes
1
answer
5k
views
How to select multiple Features from multiple Layers in OpenLayers?
Is there a way to select multiple features from multiple vector layers by using clickTolerance in click?
I checked the documents of getFeature control and selectFeature control, seems not work in ...
3
votes
1
answer
459
views
Delete any polygon that overlaps polygons on another layer in QGIS
I'm new to GIS software and I couldn't find an answer here for QGIS specifically.
I have layer A with a few thousand polygons that have the attribute "Field". I have layer B which is a ...
6
votes
1
answer
3k
views
How to speed up Select by location?
Has anyone had a similar "extreme slow" experience using "Select by location" (Toolbox) and "Spatial query" tool?
I've used both for selecting some points inside a polygon. The data was in SHPs and ...
3
votes
2
answers
108
views
QGIS: default selection distance for "Select Feature(s)"?
This is such a beginner's question...
(QGIS 3.26)
Where can I find and modify the distance used for the default "select feature()s" tool?
I want to quickly select a number of points.
when ...
1
vote
3
answers
8k
views
How to select features with same values?
How can I select all those features that has exact same values in their attribute field called "X"?
I think that the solution could be something like the Countif function in Excel, but I haven't found ...
1
vote
0
answers
54
views
Select along specific train route in ArcGIS Pro
I have the US intermodal train data(found here), and train station data(found here). The problem I'm having is that the polylines do not follow the routes. There is one massive polyline that contains ...
3
votes
1
answer
1k
views
Selecting polyline between two point features using ModelBuilder?
I am looking to select a segment of a polyline that is between two GPS points in ModelBuilder. The line segment is created by enabling a user to define his/hers begin end point, and then using the ...
0
votes
3
answers
1k
views
How to fire Select event in OpenLayers only when adding a feature and not when removing a feature from the selection?
So I have various Points (comments) across a map on a comments layer and I have a select interaction which is used to show a text popup when the comments point is selected. When I select a point once, ...
4
votes
1
answer
268
views
Getting index of selected rows in QGIS Field Calculator
Suppose I make a selection on some layer and I want to apply some function on only those records.
I know there's a box you can check in the Field Calculator for this, but is there a function/...
17
votes
3
answers
10k
views
Zooming to selected feature using PyQGIS
I want to create a function that selects a feature and zooms to it (similar in QGIS). Therefore there is following function:
QgsMapLayerRegistry.instance().addMapLayer(self.vlayer)
def zoomTo(self):
...
1
vote
0
answers
51
views
QGIS 3.22.6 Add letters to check boxes instead of ticks when using value relation widget
I am using QGIS 3.22.6. I have added a species list to a polygon layer using the value relation widget. For each feature I am able to tick/select which species are present within the polygon. Rather ...
3
votes
2
answers
991
views
Selecting points which touch "boundaries" of another polygon using QGIS
I have an quite complicated polygon shapefile and a lot buffers around points (second shapefile).
These small polygons are within and outside of the big polygon. I need to select those polygons which ...
1
vote
1
answer
90
views
Show Selected Records fails to display in ArcMap
I have been using ArcMap for a while and I just started having this issue (maybe because of a new laptop?). When I select items by Attributes the bottom of the table will say 97 out of 2000 selected, ...
9
votes
5
answers
5k
views
Setting layer as unselectable to avoid identifying features in multiple layers using QGIS
In MapInfo, it is possible to turn 'selectability' off on layers, which means that when you click on the map objects on that layer aren't selected. It's very useful.
Is there a way to accomplish this ...
2
votes
1
answer
598
views
Providing parameters in a URL to select and zoom to a feature on startup [closed]
I have a Leaflet map with GeoJSON data that shows various properties and I would like to append a parameter like "owner" to a URL (not a coordinate) and have the feature selected and zoomed ...
0
votes
1
answer
964
views
Use value from select to set corresponding marker icons in Leaflet
I have a select that contains a list of cities my markers are in. I would like to display my L.icon markers according to the value currently selected, since the value selected will match the attribute ...
4
votes
1
answer
1k
views
QGIS show only selected polygons on the map
I would like to make visible only these polygons, which are selected right now.
I tried to go with this hint:
Displaying only selected features on map in QGIS
but when in my expression I applied:
...
3
votes
2
answers
443
views
Selecting attributes from multiple vector layers in QGIS
I'm looking for a way to select multiple attributes from about 9-13 vector layers. I downloaded the "Multiple layer selection" plugin, but I get an error.
2022-03-22T14:01:20 WARNING ...
1
vote
2
answers
968
views
Iterating through all Combinations of Features by Selection in ArcGIS Python Script
I have a question about ArcGIS and a Python script.
There are following sample code,
So I would like to change Another Field , not OIDFieldName.
Please let me know how to change Another Field.
import ...
0
votes
2
answers
71
views
ArcMap Field Calculator to select values >20 on multiple fields
I need a Field Calculator script to select a feature (trees layer), if values from multiple fields, namely the amount of pine, spruce and birch, meet a specific condition:
The values of pine "...
1
vote
1
answer
81
views
Create layers of confirmed and unconfirmed alerts using select
I aim to create one layer with confirmed alerts + Date and one layer with confirmed alerts +Date from a dataset in GEE.
The dataset has two bands: 'Alert' and 'Date'.
Confirmed alerts are 2, while ...
20
votes
3
answers
34k
views
Selecting features using expression with PyQGIS
How can I select features with PyQGIS using an expression?
I tried to use an QgsExpression but the select method doesn't take it:
exp = QgsExpression("'ogc_fid' = 482")
cLayer = canvas....
5
votes
4
answers
4k
views
Changing selection colour in QGIS 2.8
How do I change the colour for selected elements? I am selecting using select rectangle and the selected elements are almost invisible.
2
votes
1
answer
906
views
Changing selection color of features in QGIS 3.20
In QGIS 3.20.1 when I select a feature of any polygon it turns white unlike the older versions that were yellow.
Is it possible to change this selection color using a simple way?
Note: I do not have ...
2
votes
2
answers
1k
views
Selecting random set of points from existing point layer for sampling in QGIS
I have a point layer and I wish to extract a random sample of these points across the dataset based on a given attribute.
For example I would like to select randomly 25 points with attribute "A&...
0
votes
1
answer
47
views
Creating feature class capable of on-the-fly feature additions
I am trying to select a subset of roads from a line feature class. The selection is too complicated to use the Select By... option, so I am essentially handpicking several hundred lines to add to a ...
3
votes
1
answer
406
views
Self-crossing/intersecting polygon in QGIS that tools identifies them as valid
I am using QGIS 3.14 long term version. I need to identify these polygons that are self-crossing.
Here are the tools I have tried
SAGA's "Polygon self-intersect";
check validity from ...
10
votes
3
answers
14k
views
Getting attributes of selected features using PyQGIS
Could anybody provide an example how to get the attributes of selected features?
I tried the following code in the Python Console : but I'm stuck at the point where I'd like to get the attributes:
...
4
votes
1
answer
1k
views
Proper syntax of expression for selecting rows in QGIS
I have a long shapefile with various columns. I want to select only some rows, based on an expression. The column used for filtering is "binomial". I tried so far:
"binomial" = &...
6
votes
3
answers
2k
views
QGIS Select points within ONE polygon in a different layer
I have a set of points, which are located in the same area where the other, polygon layer is located.
I would like to have all the points selected, but ONLY within the one polygon belonging to the ...
0
votes
1
answer
733
views
Google Earth Engine -hourly timestep
Does anybody know how to select 3-hourly time steps in a dataset on Google Earth Engine?
Here is what I have tried
// A function to compute CF_solar for every time step at which irradiation and ...
10
votes
1
answer
7k
views
When iterating over a vector layer with pyqgis, how do I check whether a feature is selected?
While iterating over a vector layer using the following code (summerized from the example in the pyqgis cookbook), is there a way to check whether a feature is selected?
provider = vlayer....
5
votes
1
answer
685
views
Select values that are the same in another column in another layer
I'm working n QGIS 3.10.7-A Coruña. I have two layers: point.shp (670 features) and line.shp (4500 features). Both of them have a column called "code" with string values. I want to select ...
12
votes
3
answers
15k
views
Selecting features with NULL Geometry from Shapefiles using QGIS?
I have been given a Shapefile that contains records with NULL geometry, along with records with non-NULL geometry. This situation appears to cause problems in QGIS (1.8 and 2.0) when editing the ...
-1
votes
2
answers
3k
views
Selecting/ Deselecting and Identifying Features in QGIS
I am new to QGIS.
I have a large ArcMap project that I can access in QGIS for reference, so I will only really be using it to identify features. For example to check the classification of a road line (...
1
vote
1
answer
85
views
Selecting records from shape that do not match another table's values using ArcMap
I am using ArcMap 10.4.
I have a shapefile that results from an Intersect between a polygon shp and a point shp. So my resulting shp is a point one! One of the field in my intersect resulting shp is &...
2
votes
1
answer
63
views
Selecting features within specified number of attribute groups closest to point using PostGIS
I have a table of subway stops in NYC and what I am trying to do is select the points from the five closest subway stops to a given point. However, each subway 'stop' has multiple points associated ...
6
votes
4
answers
1k
views
Removing duplicate features based on a condition on another attribute column in QGIS
I want to remove duplicate features (from a polygons shapefile) based on a condition on another attribute column in QGIS.
For example, if I have the following attribute table of a polygon shapefile:
...
1
vote
0
answers
41
views
Can' select tools a number of drawings
I am using ArcGIS 10.8 and I want to add some labels at the feature class of points. So, I draw some lines to indicate the label per point. I want to remove some of them, but the Select tools can't ...
4
votes
2
answers
1k
views
Selecting random points based on the distance between them
I have to select a random set of points from a point shapefile based on the following rule:
"no two points can be within 1km of each other"
Here is an example:
Ideally, I'd like to do this through ...
10
votes
2
answers
945
views
Getting ordered list of IDs of selected features using PyQGIS
I am trying to get the ids of the objects of my selection. The list should be ordered from my first selected object to the last selected object.
I do not have much experience with using signal and ...
5
votes
1
answer
590
views
Selecting all columns except geometry using Virtual Layer in QGIS
Is it possible to select all columns except geometry using Virtual Layers in QGIS?
For example I have this (simplified) query:
Select
*,
st_buffer(geometry, 100)
From
mypolygons
It does ...
8
votes
1
answer
340
views
Changing drawing priority for selected feature in QGIS
I've noticed that the drawing priority of a selection, is lower than other records in the same table. That is - my record selection gets covered or hidden by unselected records.
I haven't noticed this ...
2
votes
1
answer
143
views
Selecting fields in NNJoin plugin
I want to know if there is the possibility to choose only the desired fields for each layer that will appear in the output layer on the NNJoin plugin. If so, how can I do it?
4
votes
4
answers
2k
views
Selecting raster layer by clicking on it on the map in QGIS
I have several dozen rasters loaded into QGIS in a layer group. I'm looking at one of the rasters on the map, but I'm not sure which one it is. Is there a way to click on the raster on the map and get ...