Questions tagged [fields-attributes]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

ArcPy workflow (intersect, merge, etc.)

I have a point feature class and a polygon feature class. If the point intersects with a polygon, then I want to export and create a new point feature with both the point and polygon attribute ...
4 votes
3 answers
258 views

Define a unique ID (serial number) based on values in a field

I'm trying to generate a unique serial number for a dataset I have, for example, something like this: As shown, I would like to have a serial field, called SERIAL in this case, that increments based ...
0 votes
0 answers
25 views

Filling the id of a new shapefile in attribute table using PyQGIS [closed]

I have a shapefile which is generated with intersecting two other shapefiles. I want to fill the objectid field of the created shapefile. I could create objectid field for this shapefile but I have ...
4 votes
1 answer
47 views

QGIS Naming Model Outputs using attribute from input layer

This is the first QGIS Process Model I have ever attempted to build (and I am still on a learning curve with QGIS generally) please excuse my inevitable ignorance. I would be most grateful for some ...
0 votes
1 answer
42 views

PyQGIS: Backup fields in memory to transfer them back to the original layer after processing

As a part of a PyQGIS script, I am trying to rearrange the order of the features in a temporary vector layer but keep the order of the attributes/values. The way I planned on doing this was to make a ...
  • 65
4 votes
1 answer
89 views

Fetching and combining field values from vector layer to another in QGIS

I have two different layers: one is a vector "polygon" layer, and the other is a vector "point" layer. I have information (address and number) in my point layer that I would like ...
  • 43
1 vote
1 answer
22 views

How to automatically update field creator orders

I'm new to QGIS and want to visualize two attributes of a Layer: a) name (name of a hilltop) b) fotoid (referring to a photo of that hill) Therefore I created a new field: "combined" with ...
2 votes
1 answer
79 views

Changing field type of the layer in QGIS [duplicate]

I am using QGIS 3.28.2 I inserted a layer contains contour lines and added points as elevation points. However to enter elevation value into feature attribute, only one digit is allowed. I tried to ...
1 vote
1 answer
75 views

Making a criss crossing track suitable for temporal display in QGIS

I have digitised a track in QGIS from Maps.me screen shots but when displayed it is confusing as it crosses and backtracks several times. I would like to display the track in short segments in ...
  • 351
5 votes
1 answer
140 views

QGIS Symbology - Display more symbols for each point depending on attribute numeric value

I have a point feature layer with some attributes. The numeric value of each attribute stands for the number of items of that attribute related to each point. Is it possible in QGIS to display a ...
  • 406
1 vote
0 answers
37 views

Is there a faster approach to change a data type on a feature class field in ArcGIS Pro 2.9.5?

I've followed the "Calculate Field Tool" steps from this article https://support.esri.com/en/technical-article/000023089 to change the data type on a field but it takes so long to copy the ...
2 votes
1 answer
48 views

Connecting points to the nearest point with a similar value in QGIS

I have a point shapefile and am trying to create lines connecting each point to the nearest other point with a similar value, based on one of its attributes. Specifically, the points are polygon ...
3 votes
1 answer
47 views

Automatically copy across data from one layer to another where the field name is the same in QGIS

Layer A contains data in "Field A", Layer B also contains a field named "Field A", can I automatically transfer the data in "Field A" from Layer A to Layer B? I used to ...
3 votes
1 answer
141 views

Selecting features with values whose difference is greater than 20 in QGIS

I have a LineString layer and it's attribute table has two different fields. I want to select all features with a difference of more than 20 between both fields.
5 votes
3 answers
135 views

Negation with "Not" and except NULL values in QGIS

Is this intentional or an error? In QGIS I am trying to filter a layer by the attribute "Foot". I can easily filter by writing "Foot"='no' and it behaves like expected. But when I ...
  • 101
0 votes
1 answer
44 views

Referencing features not in brackets in GeoJSON

I'm using this maplibre example to create a hover effect over GeoJSON features: https://maplibre.org/maplibre-gl-js-docs/example/hover-styles/ The GeoJSON looks like this: { "type": "...
  • 5
6 votes
3 answers
144 views

Is it possible to join the same table twice in QGIS?

Basically, I have the layers above: As shown in the image, I'm trying to join the layer lines with the layer points two times in a row so the labels of origin_id and extremity_id appear in the ...
  • 604
0 votes
0 answers
18 views

Automatically assign ID with specific parameters when new feature is created in Fieldmaps

I'm looking for a way to create a unique ID for all new features created out in the field. The ID should follow a certain format: four digits calculated from another field, two digit year value, and ...
  • 99
2 votes
4 answers
186 views

Matching backslash with regex in QGIS Field Calculator

I'm attempting to remove a part of string in an attribute column of a shapefile. The part in question is Snapshots\\ from Snapshots\390_measure_1.jpeg. So I want the output to be 390_measure_1.jpeg. ...
  • 362
0 votes
1 answer
24 views

In ArcMap, is there a tool/script that allows you to attribute a line based on an attribute of a point and hatching?

I have a large amount of lines that run through a number of points that have different values. The lines have hatching which represent what direction the line is running. Currently, I am having to ...
  • 1
4 votes
1 answer
47 views

Displaying only certain labels in QGIS

I'd like to display all of polygons but only label some of them. Case would be: the value in row "TabelleImp" contains the word 'offen'. I thought these expressions might work, but I they ...
  • 353
0 votes
1 answer
55 views

Overcome character limit in shapefiles

I have a series of shapefiles that I need to attach attribute data to, however, the text is quite long (up to 1000 characters including spaces). I know there is no way to get around this using ...
  • 101
5 votes
3 answers
310 views

Permanently sorting table so that field of interest is sorted in the same order as the fid in QGIS

Using 3.22.13, consider a non-spatial GeoPackage attribute table containing one text field, named "field_a". This table has the following form: fid field_a 1  B 2  A 3  X 4  C How can I sort ...
  • 7,136
4 votes
4 answers
266 views

Removing unwanted data in the cell of the QGIS Attribute table

How can I remove remove data after any special character in the cell using QGIS? E.g.: Valli Amman Mandir, Chettiyakotai I want only Valli Amman Mandir in the cell. The rest should be removed.
  • 587
1 vote
2 answers
25 views

How to rotate a SVG symbol based on a formula of column value and literal value (90 degrees) in GeoServer

I have a shapefile that I have stored in GeoServer. I have some SVG symbols that I want to use for each point. I want the SVG symbols to rotate based on the orientation column (attribute value) in the ...
  • 599
2 votes
0 answers
37 views

QGIS Atlas point for each column attribute

I want to automate the export of maps of a point layer automatically for each of the columns of the attribute table. It's possible? SP_A1 _Defo_m _Deco_m _Int_t1 _Int_T2 _Int_T3 _Int_T4 _Int_T5 E....
2 votes
1 answer
29 views

Deleting all non-required fields in table using ModelBuilder in ArcGIS Pro

In ArcGIS Pro I want to delete all non-required fields from a table using ModelBuilder. The number of fields will be variable since it will the product of multiple Union functions. Is there a way to ...
4 votes
1 answer
64 views

Enabling 'reuse last entered value' when creating adding field with PyQGIS

When I create a vector and add fields: fields = QgsFields() fields.append(QgsField("True_Class", QVariant.Int)) How can I set the "True_Class" field to 'reuse entered value' as if ...
7 votes
4 answers
238 views

Filtering date field on year using QGIS

In QGIS I'm trying to filter a specific year out of my field dates (type = QDate). It should not be so hard, still I'm unable to make it work. I've tried for instance: year("surveys_date") =...
  • 73
6 votes
2 answers
150 views

Counting distinct values per polygon in QGIS

In QGIS I have a list of points, each with a town it's located in and a status, either 'new' or 'existing'. So something like: ID town type 01 Alicetown new 02 Alicetown new 03 Alicetown existing ...
3 votes
3 answers
215 views

Separating columns of layer and exporting set of columns in a new QGIS layer

I use QGIS 3.16. I need to find a way to separate the columns of a layer and export each column in a new layer named like the column. For example: I have a file.csv that I import with the geometry wkt....
0 votes
0 answers
12 views

Change field characteristics [duplicate]

I need to change the structure of a shape file within QGIS. For example I want to change the character length of a field from 20 to 200. Or maybe change a decimal field to an integer. I assumed I do ...
1 vote
1 answer
41 views

Making Boolean field with ArcGIS Pro

With QGIS is very simple create a Boolean field, I need do the same with ArcGIS Pro. After a lot years I use this ESRI product, last one there was ArcGIS 9.x. I remember that with the old ArcGIS ...
2 votes
2 answers
49 views

QGIS based rules symbology with boolean options

I have a point layer with some boolean fields. I have created a symbol for each field when it is true. However, when I create new symbologies for combined cases with more then one field true, I ...
  • 843
7 votes
4 answers
287 views

Generating geodata models for layers and their attributes in QGIS

Let's say I have a map with two different layers in QGIS: 'LayerA'. It has three attributes (fid, name, quantity) and its geometry is a MultiLine 'LayerB'. It has four attributes (fid, type, location,...
  • 1,219
4 votes
1 answer
97 views

Summing on multiple attribute value on same coordinate in QGIS

I have data like this: If we see clearly then there is same data in same coordinate, now I am doing manually like this picture which is very time-consuming. How can do it easily in QGIS?
  • 141
3 votes
4 answers
252 views

Transposing columns into rows in QGIS Attribute table

I have a data set as follows: id trouble 1 a 1 b 1 c 2 d 2 e 2 f 3 g 3 h 3 i But I need it as follows: id trouble_1 trouble_2 trouble_3 1 a b c 2 d e f 3 g h i Is there any tool that ...
-1 votes
1 answer
50 views

How to make the grid polygons assume the inside centroid attributes of another layer QGIS

I have a square grid and I have multiple centroids on another layer. These centroids have many attributes as values. I want for each grid cell to assume the attributes of the centroids inside them. ...
4 votes
1 answer
160 views

Counting points in adjacent polygons using QGIS

I would like to sum up the amount of points in a polygon and its adjacent polygons. If possible, I would like to add a certain "weight" to the points of the adjacent polygons. Here is a ...
2 votes
1 answer
47 views

Adding selection data from one layer to new field in another layer using QGIS Field Calculator

I have two polygon layers: A) Contains around 500 river catchment areas B) Contains 100 river catchment areas I want to create a new data field in Catchment A showing which catchment (Catchment B) the ...
0 votes
0 answers
41 views

Field Length limit using ArcGIS Pro

I am trying to create a text field in ArcGIS Pro 3.0 attribute table with 3000 - 5000 characters. I save and it defaults back to 254. How do I fix it?
1 vote
1 answer
76 views

Creating shapefile from text file using ArcPy

Fourth update, per suggestions from comments and professor. Still getting the "takes no arguments" error "Traceback (most recent call last): File "C:\Pythonpro\pythonProject2\...
0 votes
1 answer
60 views

Applying multiple conditional statements for new column with QGIS Field Calculator

I have an attribute table of a point layer where each point has a "StopID" (range 0-37115): My goal is to create a new column in the table for a subset of 188 points where that subset is ...
  • 51
1 vote
1 answer
42 views

All field type names are lowercase after using materialize from QgsFeatureSource in PyQGIS

An interesting fact, after using the materialize() method over my original QgsVectorLayer with the following code: layer = iface.activeLayer() for field in layer.fields(): print(f"Field '{...
  • 27.2k
4 votes
1 answer
128 views

Adding and deleting fields in shapefile using PyQGIS

As part of a project, I have to extract X, Y coordinates from points in a shapefile, and classify each point as North or South, or East or West. To do so, I created new fields: a field to store the X ...
4 votes
1 answer
67 views

Combining content of multiple text cells into one field based on common id in QGIS [duplicate]

I need to combine the content of multiple cells into one, this is based on a common "ID". I need this "ID" to remain after the text has been merged. I tried the aggregate tool but ...
  • 41
0 votes
0 answers
26 views

ArcPy Script Assistance: Feed ListFeature list into ListField for report?

I am always getting file geodatabases with requests for a spreadsheet list of all features/objects and their fields/data types. I can do these separately using the List functions, but I'm not ...
1 vote
0 answers
69 views

QgsVectorFileWriter not working PyQGIS [closed]

I need to write the attribute of all layers with geometries and without geometries I am able to write layers with geometries but cant write the ones without geometry. I used QgsVectorFileWriter....
  • 11
1 vote
0 answers
12 views

Persist attributes from a base layer to a grid layer

I currently have a shapefile of municipalities and towns as the base layer which contains attributes such as municipal name and baranggay name (town). I would want to create a hexagonal grid on top of ...
  • 11
0 votes
0 answers
34 views

Field type in GIS changing

I am a student in GIS, just finishing my first year. For this project I am adding some fields to an attribute table. The field I am trying to add is suppose to be Short Integer. Every time I create ...
  • 1

1
2 3 4 5
35