Skip to main content

Questions tagged [fields-attributes]

Fields, also known as attributes, contain information about features.

Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

Copy and Paste in QGIS for plugin

I want to create a plugin where I can choose a layer to copy and paste. For copying a layer, I will select the specific layer and choose the field and features. Then, for pasting the layer, I only ...
unknown's user avatar
  • 13
3 votes
3 answers
122 views

Deselecting duplicate records in QGIS Attribute table

Several SE-GIS posts describe how to identify duplicate records, such as Identifying duplicate attributes in field using QGIS. I would like to extend this concept by unselecting any duplicate records ...
Stu Smith's user avatar
  • 8,192
1 vote
1 answer
108 views

Assigning unique ID to new points in QGIS

I want to add a new field to my feature attribute table. In this field, I want to generate a random ID (just a number, like 1, 2, 3, etc.) for every new and existing point I create on the map. This is ...
Agos's user avatar
  • 21
0 votes
1 answer
34 views

Graduated symbology

I have opened a delimited text file with coordinates XY defined in two columns on the file plus two other columns with data and they are represented in QGIS as a point layer. I want to symbolize the ...
DobleG_95's user avatar
1 vote
0 answers
55 views

Why PyQGIS is not calculating the square root correctly in this expression

I have a shapefile with ~100 fields, the first ~50 fields are motion towards the east, and the last ~50 are motion towards the north. There are 50 fields because each represents a date. I want to ...
Na_Na_Na's user avatar
  • 131
1 vote
2 answers
64 views

Removing character from many field names in QGIS

I have a shapefile with ~100 fields. Each field corresponds to a date, the name of each field is something like this 2006-07-05 (year-month-day). I want to remove the - symbol and have only 20060705. ...
Na_Na_Na's user avatar
  • 131
0 votes
0 answers
50 views

How to keep attributes after a clipping operation in PyQGIS?

I'm trying to do a spatial clipping operation between 2 point layers, representing buildings and earthquakes, and a buffer area created by the user. The problem is that after operation, all attributes ...
Salvatore Diolosà's user avatar
0 votes
0 answers
57 views

Modifying ol3-search-layer functionality in an OpenLayers map exported from QGIS2web

I have a mapping project to document my tree collection at https://whisperingweevil.com/map/map.html I am using QGIS and QGIS2web to generate code for my web map. I have a search field to search the ...
bjah's user avatar
  • 1
0 votes
0 answers
13 views

How to calculate attributes for SLD with GeoServer [duplicate]

When I use <ogc:Literal>5+5</ogc:Literal>, the calculation does not work. Is there a way to perform calculations in GeoServer SLD?
user247498's user avatar
3 votes
1 answer
220 views

Khmer Language is not properly displayed in layer fields in QGIS

I have created a new shapefile layer which uses Khmer language fields. The encoding is UTF-8. When I create new fields in Khmer in the attribute table it displays perfectly. Then as soon as I hit save ...
Tim Frewer's user avatar
1 vote
1 answer
38 views

Mismatched IDs Between Two tables with relation using QField and QGIS

I am setting up my qgis qfield survey app. I have a shape file of metadata.shp that has a field “id” and another non geometric table log.dbf that has a field “fk_id”. They are in relation based on id ...
Geesara's user avatar
  • 11
1 vote
1 answer
37 views

I can't update any attribute values in PyQGIS

I've been using PyQGIS for a few of weeks. I'd write a script which shows all earthshakes responding to given parameters, so I wrote this code: from PyQt5.QtGui import * from PyQt5.QtCore import ...
ytreka's user avatar
  • 11
2 votes
1 answer
202 views

Repeating linestring across farm field at 40 inch intervals to use r.report for pixel values

I am a new user of QGIS. I have found answers to most of my issues. This one has me stuck. I have included an image of the project I am attempting to create. My plan is to place a linestring on every ...
Jess Woeltje's user avatar
0 votes
1 answer
52 views

How to return subtype and domain description instead of the code, when using arcgis.gis Python

I am working on some Python that takes an attribute table and makes a pandas df from it. I am doing this by creating an empty list, and looping through each record of the attribute table and making a ...
Wes's user avatar
  • 11
2 votes
0 answers
52 views

Calculating the end km with reference to the start km of road in QGIS

Note the labelling on the picture to be the lengths of the link segments and have been selected from Right to Left. Start KM = KM at the beginning of the link End KM = KM at the end of the link. (...
Kendel Mashuga's user avatar
0 votes
1 answer
49 views

Can ArcGIS Pro create virtual fields?

I need to be able to calculate the difference in months between a set date saved in a field and the current date. The Feature will be symbolised according to the resulting number of months. The ...
Robert Buckley's user avatar
0 votes
0 answers
31 views

How to use a field not yet saved from a table in another table not yet saved in QGIS

I have a project in QGIS to register field points (x,y), where I collect different types of samples (soil, water, rock) for the same point. I need that in the "Samples" table, when some ...
Denilson's user avatar
  • 695
0 votes
0 answers
14 views

A function to change a GPS' exported code into viable lines / polygons

One of my older GPS systems records and exports the point type that it measures though a code. For instance: 1111 means it's a line that's part of a polygon belonging to a floor. -1111 would be the ...
Raf's user avatar
  • 1
0 votes
1 answer
48 views

GeoServer SLD style : ordering draw from custom attribute

I want to control the order in which the features are being loaded and drawn on the map with the GeoServer vendor parameter sortBy. I created a layer from an external WFS i'm not owner. So i'can't ...
jlSta's user avatar
  • 1,096
0 votes
1 answer
46 views

QGIS - attribute table - column to mark last edit in row

I would like to know, if there is a way to create a column for a Layer, that automatically applies the date and time of the last edit/change of values in a row, if it occurs?
Marek's user avatar
  • 537
1 vote
0 answers
34 views

How to create line topology from-node to-node table fields?

We are looking for a way to create line topology from-node and to-node attribute fields on a shape file as shown below. We know that ArcHydroTools GenerateFNodeTNode can do it, but want to avoid ...
jger's user avatar
  • 137
1 vote
0 answers
33 views

Combining predefined list with custom entry in attribute form

Currently, I am working on a project to map plants outdoors. I would like to have a drop down menu to choose from a list of known species. But no list is complete and occasionally, I have to use ...
burnt-board's user avatar
0 votes
0 answers
39 views

Changed project from QGIS 3.16 to 3.24, now 'NULL' fields turn into '-9223372036854775808'

Been working on a digitizing project on QGIS 3.16.15-Hannover, as I like to use LTR versions for the stability. But, 3.34 introduced an automatically incrementing UUID field, which I find useful. My ...
Nelg's user avatar
  • 175
1 vote
1 answer
34 views

Expression to auto-fill field according to the order of polygon creation

I'm working on an urban cartography actualization project, looking for a way to auto-fill a field (let's call it "field_1") in the new polygons created in the buildings layer. I need to ...
Mig TabSher's user avatar
0 votes
2 answers
47 views

Feature class to shapefile problem

When exporting feature class to shapefile, fields in attribute table are approx. half disappears (because of maximum number of characters in field and maybe because of Arabic fields language ). How ...
hassan zorkot's user avatar
0 votes
0 answers
65 views

How to prevent the creation of the field 'fid'

I'm creating some layers with PyQGIS, defining their fields and saving them in a GeoPackage file, but an unwanted field 'fid' is being created. How can I prevent this field from being created? This is ...
Aloísio Ângelo's user avatar
3 votes
2 answers
184 views

A suggestion on how to create a cemetery shapefile to include multiple entries in an attribute table?

I want to do a small volunteer project of a war cemetery in my hometown and to make it available to public. However, I never did this so maybe you can have some suggestions to me. The hard part I ...
gis1234's user avatar
  • 319
0 votes
0 answers
47 views

QGIS - Attachment with a photo in the attributes does not show the photo and the button to open the file dialog

I received a QGIS map project with data that I needed to update. So I chose the Change data source layer and selected the updated data. Now I'm supposed to continue updating the data, but the upload ...
Br3ndys_cz's user avatar
0 votes
0 answers
18 views

Relation QGIS: get_feature

I have 2 layers (1 polygon / 1 no-geometry (aType)). I have a relation between them. As we know, we can display 1 value from the related layer via layer property -> Attributes Form. In the widget ...
eagleadmiral's user avatar
0 votes
1 answer
49 views

Varying symbology by two fields of attribute table in ArcMap

I got a point layer and my task is to visualize it according to two (2) values of its attribute table at the same time: each point (a) has to be presented as graduated symbol size (manual ...
Daniella.GIS's user avatar
0 votes
1 answer
44 views

Testing the value of a field against a list of strings

I want to test the value of a field against a list of possible strings for inclusion (value contains none of these strings) or exclusion (value contains at least one of the strings). The difficulty is:...
Timm's user avatar
  • 41
2 votes
1 answer
78 views

QGIS Field Calculator Expression: get field name for value at specific index

I am looking for a way to search the field name ( green circle ) of a value at a specific index. In the example shown above I would like to find the field name "25 x 2,3" for the value of ...
Denis Crîlov's user avatar
-1 votes
3 answers
65 views

Insert or replace value in one field based on value of another field using ArcGIS Pro

I have sample data I am trying to visualize in ArcGIS Pro. I have one field that shows if the sample was detected or not (DetectedResult), which is either a 'Y' or 'N'. Then I have another field with ...
Maggie Perry's user avatar
0 votes
1 answer
79 views

Adding uploaded polygon measurement style to KML file polygons

Following up on QGIS: multiple map measurements I want to use a style to convert a kml layer to have measurements on all size, kind of like: I'm using QGIS 3.28 LTE. I started by downloading the ...
user1592380's user avatar
1 vote
2 answers
114 views

Filling field with values from field of another table using QGIS

I am using QGIS 3.28.9. I need to complete a field from a building's layer with the field's values from a plot's layer, based on the location of the buildings. At first I thought of doing it through ...
Mig TabSher's user avatar
4 votes
2 answers
401 views

QGIS: expression in attribute table between greater than and less than with different categories in one field

I am trying to create a field that shows the following different categories in the same field: Variable = verschil bouwhoogte "Verschil bouwhoogte" <3 "Verschil bouwhoogte" =>...
Mees's user avatar
  • 43
3 votes
1 answer
86 views

Displaying two attributes of line vector layer with same color ramp in QGIS

I have a QGIS line vector layer that contains two attributes: "attr1", "attr2". I want to display it as shown below. The same line geometry two times with an offset in both ...
588chm's user avatar
  • 625
0 votes
1 answer
98 views

AddFieldDelimiters not correctly adding field delimiters in arcpy

Basic arcpy script (ArcMap 10.8), I'm trying to add field delimiters for a query, however it's adding double-quotes " " instead of square brackets [ ] around my field name, which then makes ...
Midavalo's user avatar
  • 29.8k
1 vote
0 answers
72 views

Data-defined size legend only showing size in QGIS

I am having issues getting a legend set up in QGIS 3.34.1 for a point layer that is colored based on one attribute (population class) and then sized based on another attribute (population). I have ...
Puwx's user avatar
  • 11
0 votes
0 answers
47 views

Duplicate features error in QGIS, I can't create new fields from shapefile layer

I've had the same problem. Sometimes when I create points from table (.xls), sometimes when I create a new polygon, I can't text to fields (ex. a field with character name). More, when I texted to the ...
Thiều Nem's user avatar
0 votes
0 answers
59 views

(QGIS) Creating a rule to hide labels based on their appearance on a list or array

I'm creating maps for a project, and I'm handling sensitive data. I have a list of species I can't display on maps. I would like to create a rule that checks if the value in column "species_name&...
Niles's user avatar
  • 1
0 votes
1 answer
135 views

Undo Delete Field in QGIS

I am working on a very large point file and had deleted some field that I thought were not necessary from my attribute table. It turns out that I jumped the gun and should not have deleted the fields. ...
user234346's user avatar
0 votes
0 answers
30 views

Extracting monthly band data from an image collection from a pixel with 1000 sample points into a table as CSV - not as chart

I have 1000 field samples as points. I would like to Extract band values from ERA5land which is already monthly aggregated for each of the points The data is stored in many bands, I have selected my ...
David Appiah-Gyimah's user avatar
0 votes
0 answers
41 views

Display information from a different layer in an attribute table in QGIS

I have two different polygon layers we'll call them A and B. I would like to create an attribute table with fields that list areas of A and B (calculated using the $area function in field calculator). ...
Justin Perry Illustrator's user avatar
1 vote
1 answer
75 views

QGIS: Need to create a feature for a vector layer with a list of all unique values derived from a raster layer's cells

I have a vector layer with inner boundaries delineating certain land-use types in each discrete area. I also have a raster layer that contains information related to the vegetation found in each ...
Linus's user avatar
  • 31
1 vote
2 answers
153 views

Merging layers, then dissolving and keeping all attribute values in QGIS

I have three layers in QGIS, each with one feature, including some attributes. Layer 1 has attributes a, b, and c, Layer 2 has attributes d, e, and f and Layer 3 has attributes g, h, and i I want to ...
winnewoerp's user avatar
  • 1,504
1 vote
0 answers
72 views

How to change field type using PyQGIS?

I can change the field type (e.g. string to integer) via: Processing > Refactor fields How can I do it purely using PyQGIS via a script or the Python Console (I do not want to call the algorithm ...
user35594's user avatar
  • 555
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
1 vote
1 answer
59 views

Setting a Boolean field to be empty

I have a layer with a Boolean field called bool. I can set the field value to NULL, e.g. using the Field Calculator. When printed via Python, the values are correctly shown as None: >>> layer ...
bugmenot123's user avatar
  • 10.9k
1 vote
0 answers
107 views

Why am I unable to add a field to a hosted feature service in ArcGIS Enterprise?

I have a hosted feature service that I published from ArcGIS Pro to Enterprise. This layer is updated via a model I run once a quarter and is used in a dashboard. I want to add a new text field to the ...
Lacey's user avatar
  • 11

1
2 3 4 5
38