Skip to main content

Questions tagged [features]

Use this tag when asking questions about a representation of a real-world objects on a map.

Filter by
Sorted by
Tagged with
1 vote
1 answer
37 views

How to modify a feature's JSON attribute on PostGIS with QGIS

I want to edit (with QGIS) an attribute of my feature stored in PostGIS. First, I select the feature using one of the buttons below. Then I use the edit feature button (Modify the attributes of all ...
sutan's user avatar
  • 941
6 votes
1 answer
150 views

Selecting field values that are integers or decimals with QGIS expression

I am trying to select features using an expression in a single file. The file contains polylines (contours) set at an elevation. I want to select all features that are decimal: 1.2, 1.4, 1.6, etc. ...
cooluser91's user avatar
1 vote
0 answers
63 views

splitGeometry does not produce two geometries with PyQGIS

I am working on a script that checks features for (rough) rectangularity and splits them if they are not. If I correctly understand the splitGeometry method, it should produce two geometries if ...
RavenS's user avatar
  • 11
0 votes
0 answers
46 views

Separate overlapping features

I have an issue with a specific QGIS Layer. The layer represents blocks in a city. It's made of polygons, each one representing a street, a square, a building a park and so on. When selecting the ...
Frannzz's user avatar
  • 11
3 votes
2 answers
149 views

Preventing polygons from overlapping after splitting them in QGIS

I have a FileGDB with several polygons. When I split them using the Split Features-Tool, they overlap with other polygons within the same layer I did not split. Here are some screenshots: Original: ...
Motti's user avatar
  • 466
1 vote
1 answer
62 views

How was the term 'Feature' originally defined in GIS? [closed]

Esri defines Feature as a cartographic term: [cartography] Any part of the earth's surface, or anything found on the earth's surface, that can be represented on a map. Features can represent various ...
Rex's user avatar
  • 596
0 votes
1 answer
30 views

Cannot set a style to a feature in OpenLayers

As shown in the below posted code, I am trying to make a feature invisible to the user. At run time, I receive the error posted below. Why am I getting this error and how can I solve it? code this.#...
Amr's user avatar
  • 43
0 votes
0 answers
43 views

Overlapping of features in QGIS

Does a simple way exist to draw overlapping zones in QGIS (3.22.3-Białowieża)? The situation is the following. I have a join of the kind ZoneA FeatA ZoneB FeatB ZoneC FeatC ZoneD FeatA an ZoneD FeatC ...
Massimiliano's user avatar
3 votes
1 answer
117 views

Fetching only ids of features with QgsFeatureRequest in PyQGIS

Using a QgsFeatureRequest by default will fetch all attributes (including geometry) of the features. I can use .setFlags(QgsFeatureRequest.NoGeometry) to not fetch the geometry, and ....
persephone's user avatar
1 vote
1 answer
69 views

Getting extent of each individual feature in the vector source in OpenLayers?

i have a vectorSource that contains some features.i know how to get the extent of the vectorSource, but i do not know how to get the extent of each individual feature in that vectorSource. i googled ...
Amr's user avatar
  • 43
0 votes
0 answers
18 views

Simple label display for Z in XYZ is not showing up

I have a DEM that I converted to XYZ point features. I am trying to label each point using its Z attribute. I had something similar work fine a few months ago, but now I am unable to display the Zs. ...
Steve Miller's user avatar
0 votes
0 answers
28 views

Calculate between features in sequence without matching ids with PyQGIS

In another question (Loop an operation in all features) I asked about calculating the time difference between features, I was told that I could use this code (this code is from BERA): layer = ...
Mestrexama's user avatar
1 vote
1 answer
94 views

Deleting or hiding features in QGIS in one layer based on the value of the feature in another layer

I have two tiff-tiles which are maps of the exact same area: One of them displays the height of each cell in the area while the other displays an identification number of the same cells. What I was ...
Marcus K.'s user avatar
  • 141
1 vote
2 answers
122 views

Changing attributes of a newly created feature in Python form init code

I have a layer with two attributes: "text" (string) and "int" (integer). I used drag'n'drop form design to have a form with just the "text" attribute in it. I added ...
bugmenot123's user avatar
  • 10.9k
3 votes
2 answers
168 views

Calculating information for selected parts of the polygon with PyQGIS

I have a polygon that is formed using Quick OSM. After that, I add an area calculation field to it, automatically using the QGIS tools. How can I use PyQGIS to get the sum of the areas of the ...
Чайный Бублик's user avatar
1 vote
0 answers
55 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 ...
Laura Riis-Klinkvort's user avatar
2 votes
1 answer
159 views

Showing feature count in layer name in QGIS

I'm looking for a way to write the feature count at the bottom of the Layer Name, is this possible? Is there a variable? I know about the feature counting functionality built into QGIS and I know the ...
andreaordonselli's user avatar
5 votes
3 answers
325 views

Looping every features pair with PyQGIS

I need code that loops between each pair of features in sequence (feature 1 with feature 2, feature 2 with feature 3...) but using only a for, I searched the forum and found similar code but with two &...
Mestrexama's user avatar
0 votes
1 answer
49 views

Merging thick boundaries with individual districts

I have this shapefile of Akron's city council districts in 2010. For some reason the boundary lines are very large. What would be the simplest way of combining the with the nearest district? If the ...
ericandrethegiant's user avatar
0 votes
0 answers
26 views

I have muiltiple polygons in a shapefile, and want to extract each polygon from a rasterfile and save as separate files

I have 80 polygons in a shapefile, and one complete raster file, I want to extract each polygon from a raster file and save it as a different raster files. numPolygons <- length(shapefile) ...
gis user's user avatar
2 votes
0 answers
83 views

Calculating label size with calculateLabelSize of QgsPalLayerSettings in PyQGIS

I want to calculate label size for specific features in the layer. I found calculateLabelSize function in QgsPalLayerSettings. When I use it QGIS crashes. Here is my code (I run it from the code ...
BlackTesta's user avatar
2 votes
3 answers
334 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, ...
eagleadmiral's user avatar
0 votes
1 answer
57 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 ...
pyjamajedi's user avatar
1 vote
0 answers
55 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 ...
Mestrexama's user avatar
0 votes
1 answer
91 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 ...
Foncho's user avatar
  • 3
1 vote
2 answers
125 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 ...
janicans's user avatar
1 vote
1 answer
187 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:'...
Potaposhnik's user avatar
1 vote
2 answers
136 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 ...
Maryla's user avatar
  • 186
2 votes
1 answer
134 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. ...
zabop's user avatar
  • 2,224
1 vote
1 answer
98 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 / ...
Chris's user avatar
  • 73
3 votes
2 answers
259 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 ...
Стьопа Брич's user avatar
0 votes
2 answers
102 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 ...
Mestrexama's user avatar
0 votes
0 answers
26 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 ...
sal's user avatar
  • 391
0 votes
1 answer
138 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 ...
GIS_curious's user avatar
0 votes
0 answers
145 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 ...
hamid barati's user avatar
3 votes
1 answer
217 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 ...
hamid barati's user avatar
1 vote
1 answer
128 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. ...
BenStone's user avatar
  • 333
0 votes
0 answers
35 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 &...
Iven Pepa's user avatar
  • 341
0 votes
1 answer
78 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. ...
Stephen Lead's user avatar
  • 21.2k
0 votes
1 answer
29 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 ...
Keagan Allan's user avatar
  • 3,756
5 votes
1 answer
312 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 ...
user3390486's user avatar
1 vote
1 answer
86 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 ...
eafwnrg's user avatar
  • 51
2 votes
0 answers
108 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 ...
Sethinacan's user avatar
  • 1,726
1 vote
1 answer
45 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 ...
gregosse's user avatar
5 votes
1 answer
172 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. ...
Is.Ballad's user avatar
0 votes
1 answer
73 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....
Eve L's user avatar
  • 1
11 votes
1 answer
650 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 ...
i.i.k.'s user avatar
  • 1,709
1 vote
1 answer
214 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 (...
genny's user avatar
  • 11
1 vote
1 answer
185 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 ...
LD_bird's user avatar
  • 11
1 vote
1 answer
151 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 ...
Vincent Dc's user avatar

1
2 3 4 5
19