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
2 votes
1 answer
29 views

Splitting feature into individual features in QGIS

In QGIS I have a layer that is made up of a large number of polygons that are merged together to form one feature. Is it possible to split this feature into the individual polygons that make it up so ...
user avatar
0 votes
0 answers
21 views

Getting GeoServer to batch delete features using WFS [duplicate]

I'm having some problems using Geoserver to batch delete features, It looks like the Geoserver does not respond properly when the number of deleted features is greater than 30. The format of the ...
user avatar
  • 33
0 votes
1 answer
24 views

What do the colors mean on this 1892 plat map?

A while back I happened upon a page from a Plat Map of my hometown from 1892. I like staring at it and looking for families that were still in town when I was a kid 100 years later, street names that ...
user avatar
1 vote
1 answer
45 views

Change the color of map elements with a unique ID

How can I change the color of a point or a Line by choosing its unique idea? The problem is that this choice must be possible for several elements at the same time and these IDs are sent from the ...
user avatar
2 votes
0 answers
21 views

Merging feature within cells in QGIS [duplicate]

I'm dealing with a global fire map (vector map, polygons don't overlap), each cell contains the number of fires occurred in this area over the past 20 years. I'm trying to sum up the value of "...
user avatar
1 vote
1 answer
26 views

Delete a shapefile feature without mixing up the feature IDs?

If I open a (shapefile) feature source and delete a feature, something happens with the IDs (some mixup). If I close and open the shapefile again it is still mixed up. But when I close the shapefile ...
user avatar
  • 63
3 votes
1 answer
60 views

Finding change between two sets of polygon data in QGIS

Say that I have two sets of polygon data: one depicting world borders in 1990 one depicting world borders in 2020. I have ensured that both data sets are under the same projection. Both sets of data ...
user avatar
  • 131
1 vote
1 answer
29 views

Saving selected features as new layer using ArcPy

How can I save selected features to a new feature class? If I do one of the following commands always all of the features are copied, and not just the selcted ones. ## First select features arcpy....
user avatar
  • 37
4 votes
3 answers
84 views

Hiding multiple horizontal rows in the attribute table in QGIS

I would like to see only the first 10 of my 150 attributes show up in the attribute table and have the rest 140 attributes "hidden". Is this possible? However, it would have to be possible ...
user avatar
6 votes
3 answers
148 views

Replica of point layer data from attribute value in QGIS

I am working in QGIS 3.2 and am wondering how I can create an "exploded" version of a single layer of point data based on numerical attribute values within that layer. As a simple example, ...
user avatar
  • 375
0 votes
1 answer
40 views

Forced to work with a Geometry with too many edges in GEE

I want to perform an unsupervised classification on a feature collection that has many small geometries. I know it will create problems for GEE to work on such many small geometries but I cannot find ...
user avatar
  • 451
0 votes
0 answers
31 views

How can I add features (points) to my byte (eight bit unsigned integer) in QGIS?

I have a series of data (in Byte - eight bit format) with PDF as GDAL (Geospatial Data Abstraction Library) Driver. My goal is to add point features to it using QGIS, however so far I haven't been ...
user avatar
0 votes
0 answers
68 views

Issue with Python Script: Overwriting Hosted Feature Layer on ArcGIS Online: Error Code: 406

I need assistance with my script. Can anyone point me in the right direction? I'm attempting to overwrite a feature layer with data from a CSV file, both of which are hosted on my portal on ArcGIS ...
user avatar
4 votes
1 answer
60 views

Setting selected features in list without specifying their layer using PyQGIS

To get selected features I usually do: layer.selectedFeatures(). Is there a method to retrieve selected features in a list without specifying the layer they belong to ? I selected features with the &...
user avatar
  • 133
6 votes
1 answer
114 views

AssertionError when applying expression to field value with PyQGIS

I am trying create new columns in an attribute table and fill them with values with expressions using Python Console in QGIS. I successfully create the new columns but when I try to fill them, I get ...
user avatar
  • 133
2 votes
1 answer
42 views

How can I select features in the attribute table of a layer in QGIS from a list? [closed]

I have ~5000 features in a layer in QGIS. Each feature has a unique ID. I have a list of ~800 features (with corresponding IDs) I would like to select and remove from the layer. Which expression ...
user avatar
3 votes
2 answers
131 views

Geocoding address in attribute table with PyQGIS

The script doesn't work as if I wanted. from qgis.core import * from .resources import * import json mylayer = QgsProject.instance().mapLayersByName("layer")[0] features = mylayer....
user avatar
2 votes
1 answer
45 views

Changing the value of attributes using QgsFeature in PyQGIS

The script doesn't work as if I wanted. Script: mylayer = QgsProject.instance().mapLayersByName("Kuniarka")[0] dane = 'a' for seg in mylayer.getFeatures(): #seg = next (mylayer....
user avatar
0 votes
0 answers
44 views

QGIS 3.16 shapefile features not visible

A point shapefile with the project CRS has 66 digitized features (point count is 66). The attribute table header reflects the point number; and that there are 7 points filtered. (I have no idea how ...
user avatar
2 votes
1 answer
354 views

React-leaflet GeoJSON: change color of the layer after state

I have an issue, I have a react-leaflet map with GeoJSON layers. Also, I have added some state components like cascader with some name of countries options, like Austria, Belgium, etc... I want to ...
user avatar
  • 33
2 votes
1 answer
42 views

Deleting selected feature on alt+click in OpenLayers

Im trying to delete a feature on alt+click. The alt+click code works since i can print out the feature when i click on it. But, i thought i could simply remove it by using source.removeFeature(feature)...
user avatar
2 votes
1 answer
77 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 ...
user avatar
0 votes
1 answer
29 views

Why is script calculating Ellipsoidal area instead of cartesian area?

I have this two shapefiles (https://drive.google.com/file/d/1a83sh-V46uaoUFwPXEtoZnD_XUBGG9X9/view?usp=sharing). The original one is in 4326 reference system. The second one is the result of qgis ...
user avatar
1 vote
1 answer
141 views

Styling feature depending on property and display it in OpenLayers?

I have a feature with multiple elements, every element has its own geometry and an ID. Is possible to change the style of the feature and display the elements of the feature on the map like it's own ...
user avatar
  • 45
0 votes
0 answers
21 views

Some features have curves and were ignored using Split features tool of ArcGIS Pro

I am using ArcGIS Pro. I have a river buffer (polygon) that I want to split using Split features. The cutting feature is municipality borders. When I use the tool, it says: Some features have curves ...
user avatar
  • 57
3 votes
1 answer
39 views

Merging features of the same class in QGIS

I am running with a problem that I want to merge all the features of the same vector class into one attribute. Below the green layer is the forest layer that has more than 11 thousand features, I want ...
user avatar
1 vote
1 answer
25 views

Draw polygon along line feature

I have some line features from a nautical chart representing dikes I'm trying to bring into another program that wants polygons. I was wondering if there were a tool in QGIS or ArcMAP that would let ...
user avatar
  • 51
2 votes
1 answer
97 views

Show different colors for differents Id in OpenLayers

I've a feature in my map where every point has his own id, I want to assign different random colors to differents ids (id 0 = red,...), the ids are given dinamically, so I don't know the exact number. ...
user avatar
  • 45
7 votes
1 answer
67 views

Zooming feature without selecting it using PyQGIS

When I need to zoom to a feature, I have to select it first using layer.select(feature.id()) then I can zoom using mapCanvas.zoomToSelected(layer). layer = iface.activeLayer() layer.select(1) iface....
user avatar
0 votes
0 answers
45 views

Making map more interactive

I have created a map using QGIS and I am planning to put it online using QGIS2Web. However, QGIS2Web does not provide much options of making the map interactive. One of my goals is that when a user ...
user avatar
0 votes
1 answer
42 views

Combining all features into one in same shapefile in QGIS

I am creating fiber routes on a CAD drawing and need to merge the features in the same shapefile. Application websites will not allow me to upload because it has several line features. I need every ...
user avatar
1 vote
0 answers
21 views

QGIS forcing labels for separate feature parts into the same part

I have noticed that if there is a feature that has very small parts in addition to a "main" part, and you have checked the boxes for both 1) "label every part of multi-part features&...
user avatar
  • 11
5 votes
1 answer
43 views

Unable to get the geometry of temporary layer created from selected features using PyQGIS

I need a temporary layer with the geometry created from selected features for a processing tool. The temporary layer is created but the geometry is missing. The attribute table is blank. But when I ...
user avatar
2 votes
1 answer
70 views

Colouring various symbol layers, colour data from another CSV

I'm using QGIS 3.22. The problem: I have various layers with coloured symbols based based on CSV-layers. Here you find an exemplary point data CSV (but there are also CSVs with polygons), named "...
user avatar
  • 111
6 votes
3 answers
199 views

Displaying differently styled features from within a single shapefile in QGIS

I am using QGIS 3.22.1. I have a single FEMA NRI shapefile layer in my project that contains many 'features' (aka columns in the attribute table). For instance, there are columns for risk of drought, ...
user avatar
  • 63
1 vote
1 answer
52 views

Passing selected layer-feature inside QgisAlgorithm (in code)

In our algorithm, we do three steps: call Algorithm A AlgoA, takeResultLayer into lyr from AlgoA output, for each feature of lyr we want to run Algorithm B AlgoB . Code of my processAlgorithm looks ...
user avatar
3 votes
2 answers
233 views

Getting coordinates of individual polygon in shapefile

I just started working with shapefiles. I need to take polygon # 93 (Sea of ​​Japan) in a large shapefile and build a sea map in bokeh Python. How do I refer to a specific polygon in a shapefile? ...
user avatar
  • 33
0 votes
1 answer
38 views

How do I change the default field name length setting for a feature in Earth Engine?

I am trying to export a Feature Collection from Earth Engine to view in ArcGIS Pro, however I want to set and prefill certain fields in the attribute table. The issue I am encountering is that my ...
user avatar
  • 3
2 votes
1 answer
42 views

Creating lines (not just one) from points GPS [duplicate]

I have exported GPS points into QGIS. I want a line that shows the route between the points based on the date. I used the points to path tool and it worked. The line shows the route in time. But in ...
user avatar
  • 29
0 votes
1 answer
50 views

Disable deleting of features in non-hosted feature services in ArcGIS Portal while allowing editing of current features and adding new features

When you host a feature service in Portal you can go to settings and turn on/off if features can be deleted (see below) This option does not exist when the data is referenced from a registered sde ...
user avatar
  • 1,006
4 votes
1 answer
62 views

Capturing Layer Undo button or Ctrl+Z in PyQGIS

I added some features in a layer. If I try to undo features from QGIS menu or Ctrl+Z can I capture that trigger? I need like this: def fun(): print('UNDO') iface.undo.triggered.connect(fun)
user avatar
4 votes
1 answer
190 views

Getting Intersect Feature in PyQGIS

I tried to get the intersect line feature if user placed point on that line. I tried below: class AddPoint(QgsMapToolEdit): def __init__(self, canvas, iface, Layer): self.canvas = canvas ...
user avatar
1 vote
2 answers
246 views

Merging two shapefiles with equal geometries but different attributes in QGIS

I have two shapefiles, one of which contains building polygons and attributes such as building age and building usage, and the other file contains the same building polygons and attributes such as the ...
user avatar
  • 123
1 vote
1 answer
66 views

Find First And Last Intersection Points Between Lines

Let's consider these 2 feature classes below, both of them are simple single-part lines. I need to find a reliable way to get the first and last intersection points between them (the green and yellow ...
user avatar
  • 25
5 votes
1 answer
128 views

Calculating raster weighted centroids for polygon in QGIS

I need to calculate centroids for each feature in a polygon layer, weighted by the values of a raster. So the centroids are shifted towards higher raster values. I found a way, but it is complicated. ...
user avatar
  • 51.4k
1 vote
1 answer
77 views

Selecting values in attribute table which have alternate same values in two different columns

I am looking for ways to select features in attribute table which have same values but in different column. In the picture below as you can see "fid_2" has values which match "fid" ...
user avatar
  • 77
1 vote
1 answer
57 views

Merging features returns error message using QGIS

This is a link to the data I'm using in QGIS. In this map, there is a layer comprised of municipalities, each of which is a feature of that layer. I've been selecting the municipalities I want from ...
user avatar
  • 31
1 vote
1 answer
29 views

Merging zipcodes based on population to create larger areas in QGIS

In QGIS I have a shapefile with small geographic areas (zipcodes) with population in each zipcode area. Currently the population per zipcode vary very much, some as low as 1 person living in them. I ...
user avatar
  • 11
0 votes
0 answers
92 views

NetTopologySuite and feature operations

I'm doing geo spatial work with NetTopoloySuite and C#. In Python (GeoPandas), you can do overlay operations on features (as opposed to on the raw geometries), so you can keep the metadata associated ...
user avatar
  • 161
2 votes
1 answer
216 views

Showing only filtered features using Rule-based symbology in QGIS

I have a layer called 'A' with a filed called "B", under this field, there are multiple values such as "C, D, E..." (one value for each row/feature in the attribute table). I have ...
user avatar
  • 51

1
2 3 4 5
16