Questions tagged [features]
Use this tag when asking questions about a representation of a real-world objects on a map.
889
questions
2
votes
3
answers
231
views
Automate zooming/panning to selected feature(s) in QGIS without manual clicks
I'm wondering if there's a functionality or a button in QGIS that allows for automatic zooming and panning to the currently selected feature. Instead of manually clicking zoom/pan buttons each time, ...
0
votes
1
answer
47
views
Adding values to new attribute field fails
I have written some code to edit layers in my QGIS project. I now added a new attribute field to my output layer and want to add values to it, which I calculated within the script. Each value is ...
1
vote
0
answers
37
views
Match ids in different layers by PyQGIS
I have a CSV with a column of filtered ids, and because of the filter, the ids are out of order (they start at 23 and not 1) and from it I create another layer with the same number of features, but at ...
0
votes
0
answers
28
views
Planet API Quick-Search returns areas way larger than what I'm requesting
I'm following this tutorial to search and download images with Planet API, problem is the features I get when I perform a quick-search have coordinates of an area several times larger than the area I ...
1
vote
2
answers
96
views
Removing points outside of polygon but keeping points with the same feature ID using PyQGIS
I have a polygon layer and a point layer. The point layer has specific features in its table such as an ID called "fwg_type". There can be several points with the same "fw_type".
I ...
1
vote
1
answer
64
views
Displaying information about clicked feature in popup in OpenLayers
I'm new to OL. I want to display certain information about a point in a pop-up window. Points are drawn from coordinates:
var pointsStation = [ //координаты остановок
{ id:111, name:'...
1
vote
2
answers
110
views
Understanding the QGIS API documentation based on the featureCount() method with legendKey parameter
I'm trying to understand the QGIS Python API documentation - as an example I want to get the number of features with a specified legend key, but I don't get the correct result.
Under the layer ...
2
votes
1
answer
124
views
How to replicate QGIS's Identify Features functionality with ogr2ogr when downloading data from WFS endpoint?
I am working with this WFS endpoint:
https://wxs-gpu.mongeoportail.ign.fr/externe/39wtxmgtn23okfbbs1al2lz3/wfs
In QGIS, I do: Layer -> Add Layer -> Add WFS Layer..., then add the above endpoint. ...
1
vote
1
answer
61
views
Export just the route within bbox from Overpass Turbo, not the tags / way points?
I'd like to
export just the route from an Overpass Turbo query as GeoJson, and
ideally just within a specified radius of a set of coordinates.
I have the query below, but this exports tags / ...
3
votes
2
answers
133
views
Selecting feature by coordinates from the Vector Tile Layer using PyQGIS
I have a vector tile layer in QGIS, loaded from: https://cdn.kadastr.live/tiles/maps/kadastr/land_polygons/{z}/{x}/{y}.pbf.
How to select a single feature of this layer by coordinates, in PyQGIS?
I ...
0
votes
2
answers
76
views
Loop an operation in all features
I have a layer that has date and time information and I need the difference between this information in seconds, I managed to get close to this but I needed to loop for the difference between the ...
0
votes
0
answers
18
views
QGIS Plugin to auto-fill attributes from prepared list on feature creation
Is there a QGIS Plugin that does some or all of the following:
On feature creation in editing mode:
offer a drop down list of rows of attributes,
let the user select one of the offered items
...
0
votes
1
answer
66
views
Creating square polygons from two known diagonal corner vertices
Similar question to
How to make a square out of two points?-- I have a CSV file with coordinates for the bottom left and top right corners of multiple sampling plots and would like to make individual ...
0
votes
0
answers
102
views
How to delete multiple features from multiple layers in QGIS at once?
I want to delete multiple layers containing points, lines, polygons together. According to my research, the tools in qgis can only delete features of the active layer together, is there a method or ...
2
votes
1
answer
171
views
How to rotate multiple features from multiple layers in QGIS at once?
I want to rotate multiple layers containing points, lines, polygons around a point. According to my research, the tools in qgis can only rotate the features of the active layer together, is there a ...
1
vote
1
answer
61
views
Adding field alias to feature form and not the attribute table with PyQGIS
I am using QGIS 3.32 to set the field alias:
layer = iface.activeLayer()
layer.setFieldAlias(0, 'this is field')
I want the field aliases to show in the feature form only, not in the attribute table. ...
0
votes
0
answers
25
views
Connecting to EGDI WFS in QGIS 3.28 fails
I'm trying to connect with the EGDI WFS (https://data.geus.dk/egdi/wfs/?whoami=youremail&typenames=egdi_mineraloccurrences_inspire) in QGIS.
After creating a new connection in Data Source Manager &...
0
votes
1
answer
50
views
Removing feature from the view's popup feature array in ArcGIS Maps SDK JS?
Using ArcGIS Maps SDK for JavaScript version 4.x, it is possible for the view's popup to contain an array of features. In this case, it is possible to page through them using the forward/back arrows.
...
0
votes
1
answer
25
views
Access GeoRSS Attributes using ESRI ArcGIS Maps SDK for JavaScript
I have created a web map in ArcGIS Online. Using the ArcGIS Maps SDK for JavaScript I can create a view of this map using JavaScript and HTML.
The webmap works and I can view all data layers within ...
0
votes
0
answers
38
views
Get FeatureType from GeoServer layer
I am using the gsconfig package in Python to retrieve layers in a geoserver. Now my problem is, I need to know the FeatureType of each layer (Point, Polygon, Linestring) but I am unable to find the ...
5
votes
1
answer
100
views
Splitting features if composed of spatially separated parts in QGIS
I have a very messy shapefile where some of the features are composed of many separate parts (spatially) but classed as one feature.
I need to delete all the tiny slivers but can't do this when they ...
1
vote
1
answer
58
views
Duplicating certain features based on symbol in QGIS Attribute table
In QGIS 3.28.8 I have downloaded the data for power lines in different parts of Germany from OSM. Some of these lines and cables have different voltages (see below). I can filter those with several ...
2
votes
0
answers
71
views
Returning field value based on expression on another field using QGIS expression
I want to return the value from one field ("Number") for the feature with the most recent timestamp ("Time") from within the current layer ('mylayer'). Or what's the number of the ...
1
vote
1
answer
44
views
feature creation window issue
When I click to create a feature, a window opens to define its attributes. However, with each created feature, this window does not appear in the same position and is shifted downwards. The size is ...
5
votes
1
answer
146
views
Rotating features with multiple geometries in one layer using PyQGIS
I have a layer containing several small square geometries in QGIS. I want to tilt these ones by one to the same angle. So I wrote the following Python code for that, but it does not work properly. ...
0
votes
1
answer
48
views
Biking layer in Google Earth Engine
I would like to add a biking layer like the one available in Google Maps (under Map details, see example below) but couldn't find any guide or information about its availability in Google Earth Engine....
11
votes
1
answer
328
views
Copying & pasting multiple values from one feature to other features in the same layer in QGIS
I have added some features to my layer and want to copy-paste certain values from certain columns to the newly added features.
Have a look at the image. The values of the feature at the bottom should ...
1
vote
1
answer
94
views
Visualizing features from properties of a feature collection
I would like to know how to visualize features (points) situated in the properties of feature collection that was obtained after applying 'spatial joins' on primary collection ( protected areas (...
1
vote
1
answer
82
views
GEE error: (feature).intersection is not a function
I'm trying to intersect the WCMC WDPA polygons with a self-loaded shapefile polygon asset converted to a feature. However, I got the following error message:
GEE error: (feature).intersection is not ...
1
vote
1
answer
75
views
Extract fetaure from GeoJSON layer and submit it to turf.js function in Leaflet
A Leaflet layer holds some objects and each one has a bindpopup enabled,
now I can't pass a single of these objects to a turf function (in that case, buffer). I know I have to translate this single ...
4
votes
2
answers
117
views
Merging values from two fields into third field using PyQGIS
I have two fields which I want to merge into a single field, thereby should one of the two to-be-merged fields be prioritized, meaning, if a value of one field is available take it instead of the ...
0
votes
1
answer
37
views
Loading features from server on tile level and according to zoom level?
I am using openlayers to display a large amount of features in the map. Because the number of features is too large, I cannot load all the features to frontend in one API call. So I want to get ...
1
vote
0
answers
39
views
Some grid tile didn't get features when I using tileStrategy in OpenLayers
Question updated at 2023-05-26.
Context: Use ol/layer/Vector and ol/source/Vector.js to display my features.
Following is my vector source:
const vectorSource = new VectorSource({
format: new ...
0
votes
1
answer
62
views
How to get vector features by x,y,z in OpenLayers
I have a list of features in my server and I want to render them in OpenLayers.
I know I can use ol/source/Vector.js to render my features as following code:
const vectorLayer = new VectorLayer({
...
4
votes
2
answers
107
views
Duplicating rows according to field values in QGIS
I have a table in a GeoPackage like this
field1 field2
a;b 1
a;b 2
c;d 3
a;d;e 4
a 5
...
What I need is to create a new table in which the records are ...
2
votes
0
answers
63
views
QGIS error code, trying to split a layer [closed]
I keep getting the error code below when trying to split a polygon. There appear to be no duplicates and I have been able to spilt other layers within the same shapefile. Can anyone give me any work ...
0
votes
0
answers
16
views
FME 2021 Overwrite one feature in a geopackage [duplicate]
I am using FME 2021 and would like to delete or overwrite one feature in a Geopackage. Is there any tool in FME that will be able to delete or overwrite a feature. For information, When I created the ...
6
votes
3
answers
218
views
Finding nearest line feature from linear layer in QGIS
I have two linear layers like you see below:
I would like to select just the nearest black lines to the red ones, which represent the other layer.
I found similar solutions, but they refer to the ...
3
votes
1
answer
81
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
148
views
How to recover parent value while creating parent and child layers in a embedded forms setup?
I read the documentation, examples and made many attempts, but I still can't make this work.
What I want is to get a value from a parent layer while editing a child layer, when both features are being ...
0
votes
1
answer
116
views
Why do I get array of features after click on one feature in OpenLayers?
There is a geojson:
{
"features": [
{
"id": "f6105acf-065e-499b-b23d-85298dd84108",
"geometry": {
"coordinates": [
...
1
vote
1
answer
270
views
Using the "Selected Features Only" checkbox with QgsProcessingParameterFeatureSource in PyQGIS script
I'm working on a custom QGIS Processing algorithm, and I'd like to include an option for the user to process only the selected features in the input layer by using the checkbox "Selected Features ...
0
votes
0
answers
72
views
Draw an area having only a point and distances to the 4 borders
Using Geotools with Swing GUI.
Is it possible to somehow create a shape having only one coordinate (Lat,Lon) and four distances in meters to the borders?
Lets say we have only the "C" point ...
3
votes
0
answers
76
views
Why is it slow when deleting features in gpkg using PyQGIS?
Deleting features in a somewhat big GeoPackage takes a really long time and I am not sure if I do something wrong or if it is normal that it takes such a long time.
Data: line GeoPackage layer ...
1
vote
1
answer
78
views
Create layer from an array of geometries in OpenLayers?
After a fetch from a PostgreSQL view, I get a response and extract the geometries in an array of object result.
.then(rep => rep.json())
.then(tableauObjOpe => {
for (const ope of ...
0
votes
1
answer
44
views
WFS: Count available feature Types
Some WFS offer a large number of feature types, e.g. a collection of all public datasets from a municipality.
What is the right way to count the number of feature types of a WFS?
My idea was to search ...
0
votes
2
answers
525
views
How to split a feature collection in several equal parts in GEE
I have a feature collection (fc) consisting of 44 polygons. I need to create a time-series chart of NDVI values for each of them. I would like to analyse these polygons in groups of 4 - 5. Grouping ...
0
votes
1
answer
129
views
How to chart only a subset of features in a feature collection in GEE
I have a feature collection consisting of 44 polygons. I need to chart a time-series of NDVI changes in each of them. I want to chart the polygons in groups of 4 and select them myself, meaning there ...
3
votes
0
answers
43
views
Using get_feature() function on layer while editing in QGIS
In QGIS, I am trying to update a feature based on entries made on a nested form (relation).
Considering:
Layer1 has Field1 that should capture the value of Field 2, and field in Layer2
Layer2 is ...
1
vote
2
answers
75
views
Define ".setSeriesNames" as a specific column from my Feature Collection when charting in GEE
I have an asset imported from a shapefile in GEE. It is a feature collection with which I wish to chart a time series. The lines from each feature are labelled as system:index. See labelling of ...