Questions tagged [fields-attributes]

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

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

Fields lost/disappeared from Source Field List/Attributes Form?

I'm at a loss to describe how/why my issue happened, and I'd lose several hours of wasted work if I'm unable to resolve it... I have a polygon layer representing renaturalization planting projects ...
1
vote
1answer
34 views

Sort and create attribute field to the shapefile

I am creating a shapefile layer and adding an 'Area' attribute field using the following script: # Create shapefile layer drv = ogr.GetDriverByName("ESRI Shapefile") dst_ds = drv.CreateDataSource(...
1
vote
2answers
27 views

RAT and cell values in R's raster-objects

I really struggle to understand some basic concepts in the structure of how R's raster-objects save values. Namely the RasterLayer, the RasterBrick and the RasterStack. I understand that the values (...
2
votes
0answers
27 views

Dropdown option in QGIS 3 processing modeler input?

I have an Excel spreadsheet with multiple sheets of different XY database. I made a processing model in QGIS 3.10, in which I have used 'make points from table' tool to create a point shapefile. But ...
0
votes
0answers
20 views

Maintaining attributes when adding noise to X, Y coordinates that are in same place using ArcGIS Pro

I am trying almost exactly to replicate what is being asked in Adding "noise" to overlapping X,Y coordinates so no longer in EXACT same place? However, I need a few more details to solve my ...
0
votes
2answers
30 views

Getting field names in PyQGIS [closed]

How do I get field names in PyQGIS 3.x?
3
votes
0answers
77 views

Is it possible to rename a table column with an expression in the field calcultor of QGIS?

I want to be able to rename a few column names with an expression in the field calculator in order to be able reproduce this action with the QGIS graphical modeler. I tried to do this with the ...
0
votes
1answer
67 views

How to create a Value Map widget type to select multiple values (checklist) from the dropdown?

I have a polygon layer that represents tree/shrub planting sites that were done. As part of the attribute table, I have fields representing things like tree density, species, soil work, tree size, etc....
0
votes
0answers
25 views

Spatial Join in QGIS and update column

I have a layer of lines and another layer of polygons. I would like to update the lines with the unique reference of the polygon they are within. I am able to complete the spatial process of ...
1
vote
0answers
33 views

To Iterate through all layers and all attributes for each layer

I am working in the Python console in QGIS 3.10. I want to iterate through all layers and for each layer iterate through all attributes and set them all to 'Hidden'. I want to do this in ...
0
votes
1answer
47 views

Building expression related to Attribute Rules using ArcGIS Pro

Referencing Creating Attribute Rules using ArcPy in ArcGIS Pro Now I am trying to build an expression. First it does not give me the option to choose the type of syntax in the expression builder GUI....
1
vote
1answer
46 views

Creating Attribute Rules using ArcPy in ArcGIS Pro

I am attempting to create attribute rules for a signalized intersection asset inventory, so when features are addded using collector they are automatically updated in the database. I am also working ...
1
vote
2answers
69 views

Add Attribute field and change value in PyQGIS

I'm building my first script purposed to : Create fields if they doesn't already exist Fill value in this fields The code works, but I have to perform it 2 times when the case requierts to Add ...
3
votes
1answer
104 views

Deleting field using cursor in ArcPy

Is there any way to use a cursor to delete a field using ArcPy? I understand there are ways to use a cursor to delete records but I'm looking for a way to delete a field using a cursor.
1
vote
0answers
58 views

Composition of features into attributes field using QGIS

For every feature of my map, I have to: I localize the feature with its coordinate X-Y I zoom into the canvas in order to center the feature and to obtain the scale wanted (depending of every ...
0
votes
1answer
21 views

Getting unexpected field name from ArcPy

Why does the code below come up with different field data names? When I save in a GDB it comes up with underscore() on the end of the field name & when saved as .shp it comes up with no ...
2
votes
1answer
52 views

How to copy attributes from many columns to one, QGIS3

I have many columns, about 30 and each of those has some attributes. I want to merge those columns to one and collect all attributes in a row of columns. I tried with this post but it is not for I am ...
1
vote
1answer
28 views

List fields in parameters from Fc list in script validation using arcpy in arcgis

I am trying to list fields from a feature class list in script tool validation. First user selects the data frame from the list then FC populates in next box and fields of the FC in next box. I have ...
2
votes
0answers
37 views

One polygon layer for an area with different projects in the same layer?

I was wondering if it is possible (maybe not ?) to make a structure so that I can have diffrient information (projekts) over the same area/point in the same layer. This would be for an overview of the ...
2
votes
2answers
49 views

Dissolving layer with two or more fields in QGIS 3

I want to dissolve the layer based on two or more fields through "Processing modeler". How to set and where to set those fields? When I use "Dissolve" tool separately I can choose fields that I want, ...
2
votes
1answer
16 views

Add an attribute name as parameter in refact - QGIS 3 modeler

I'd like make a model where I can change an attribute name to a predefined one using refact tool. How can I get that "attribute" by a parameter from a vectoral field ?
0
votes
0answers
16 views

Possible to make an import raster in attribute field in Qgis?

I was wondering if it is possible to make a link/action so when i click on this in the attribute it will import the georeferenced raster? I don't know if it is possible to make an action/link so when ...
0
votes
0answers
15 views

Join fields from multiple shapefile in a folder to one shapefile

I have 39 shapefiles in a folder with each shp having 368 attributes. Every shapefile has the same attribute name (FID, pointid, grid code and 365/366 others; depending on them being leap year). I ...
1
vote
1answer
40 views

Impossible to Add geometry attributes on a .shp file with QGIS

I am using QGIS version 3.8.3-Zanzibar I have a shapefile and I want to compute the area by using Vector/Geometry tool/Add Geometry attributes. Runnig this tool I get : Feature (11) has invalid ...
1
vote
1answer
101 views

ArcPy - List layers and list fields in one code

I am trying to combine ListDataframes, ListLayers and ListFields in one ArcPy code. I can do it one by one (first list layers in one code, and then list fields in second code), but I am trying to do ...
1
vote
2answers
45 views

Numerical fields decimals limited by default

I'm using ArcMap 10.5.1 and working from a geodatabase. I just want to limit the number of decimal numbers shown to 1. Currently 6 decimals are shown, and I know I can reduce them manually by opening ...
6
votes
2answers
59 views

Assign values to points according to a pattern

I'm making a map of trees in QGIS (3.10). Each point represents a tree and the attribute table has a column that should contain the tree species. For now this column is empty, but I would like to fill ...
1
vote
1answer
27 views

Creating Dialog with Graphic Modeler for Attribute Creation

I have a shapefile with an attribute that I need to convert based on categorical rules. Hereby the TARGET / new values always stay the same and only the input values change. For example: "Residential ...
1
vote
1answer
32 views

Graduated symbol for percentage attribute in QGIS

I want to use the Graduated Symbol style for a field which contains values in percentages. When I select the Graduated Symbol this field does not appear in the drop down box. Is there a way to make ...
3
votes
0answers
39 views

QGIS export to shapefile inflates real field size and value

At 3.8.3, when I Export > Save As a Geopackage point layer to a shapefile, fields with type = double are output with 15(!!!) significant digits. Here are the before and after field widths: Input: ...
1
vote
0answers
12 views

Populating a text field based on another text field using Python parsing in ArcMap field calculator

I am trying to populate a text field 'Subunit' based on another text field 'ACEC_Name'using the python parser in the field calculator (ArcMap). If the ACEC_Name = "Mojave Ground Squirrel" then I want ...
-1
votes
1answer
27 views

Cadastral data data.gouv.fr

Someone has already worked with cadastral data on the data.gouv.fr website I need to have information about the attributes of the "Buildings" layer. Is there any information among the data provided ...
1
vote
0answers
34 views

Getting access to field using its name in PyQGIS

I have two layers: Data and Thresholds. Data is a point vector layer (GeoPackage) that has hundreds of fields. Thresholds is a csv table with three threshold values for each field. My goal is to ...
2
votes
1answer
29 views

Outputting colour associated with category in text format

I've written a plugin which randomly generates fill colours for differing categories. I'm wondering if there's a way to iterate through the category renderer and output the RGB colour as text. I have ...
0
votes
0answers
15 views

Updating GeoJSON of countries with new and different property for each country

I am trying to add a new property to my countries' GeoJSON. var countries = { "type": "FeatureCollection", "name": "countries", "crs": { "type": "name", "properties": { "name": "urn:...
1
vote
1answer
37 views

Split vector by field name and rename output files according to field value

I have a shapefile with several features and want to split the layer into separate shapefiles. I looked into similar questions recommending Split Vector Layer. However, I could not find a way to ...
2
votes
0answers
85 views

Form Value Relation Dropdown QGIS

I want to create an attribute-form that displays some fields in value-related dropdowns. The goal is to limit the options in the second dropdown dependent upon the selection in the first dropdown. In ...
1
vote
1answer
25 views

Features disappear from layer

I have a problem with my newly created layers. I have drawn a lot of features and most of them disappeared during the weekend while the pc was turned off. They are not visible in the drawing, in the ...
1
vote
1answer
51 views

Populating text field with predefined attributes in QGIS

I want to populate a text field of a layer with a set of predefined attributes in QGIS 3.4. For example, The field name is Type. The attributes set are AAA, BBB , CCC. I want to limit the entry of ...
0
votes
0answers
17 views

Populating attributes of smaller polygons using bigger polygons

I have polygons TAZs (Travel Analysis Zones) that do not have any county information in them. I want to populate these TAZs with COUNTYFIPS that would have county codes in which these polygons are ...
1
vote
1answer
25 views

Combining ListDatasets and ListFields to return geodatabase contents to CSV--one script prints attributes and another returns feature class counts

New to Python. I'm trying to combine two scripts I found online that use the ListDatasets and ListFields tools. One loops through all the features of a geodatabase and writes the name of the feature ...
0
votes
0answers
21 views

Bulk modifying field alias names in file geodatabase [duplicate]

I am currently running large batches of modifying field alias names in a single file geodatabase. I am using ArcPy (ArcMap 10.7) AlterField_management function but it is too slow as it runs one at a ...
0
votes
0answers
8 views

How to fix blank “input field” column in pivot table?

I need to us the pivot too, so the GM_Naam field are rows and the BG2015 fields are separate columns containing the Area_Ha values. But when I look at the resulting table, the GM_Naam field is ...
3
votes
1answer
59 views

Auto populate qgis file name with no file extension?

I'm looking to be able to auto populate an attribute field with the project file name either by a virtual field or default option in the properties. The "@project_filename" expression always produces ...
1
vote
1answer
69 views

Auto populate fields with different values from another field in QGIS?

Is it possible to populate a number of fields in a shapefile in QGIS with different values based on the values of one other field? Essentially what I want to be able to do is to populate fields to ...
0
votes
1answer
38 views

Slicing all values in field using arcpy.da.UpdateCursor

I have a folder with a (3) shapefiles. Each shp. has a field titled "country" with a country name. I've already set my desired workspace correctly and everything else in my script works for what I ...
2
votes
2answers
50 views

Creating new features from common part of other features in same layer using QGIS

I have many overlapping features in one layer and I want to get common parts of it (like in intersection function, when using two different layers). Moreover I want to sum one of features' attributes ...
2
votes
1answer
53 views

Renaming or deleting fields in multiple layers without creating new layers (QGIS)

I am very new to QGIS. I have added three new fields using batch processor to all my layers (150 or so), but named them incorrectly. All I want to do is rename them correctly but I can't seem to do ...
1
vote
1answer
37 views

Differentiate sectors with function editor of QGIS

I am new to QGIS. I have a layer that, among other fields, has two with the structure below: id | Class 1 | 2 2 | 1 3 | 2 4 | 5 5 | 6 6 | 2 7 | 3 8 | 4 The id column represents specific ...
2
votes
2answers
65 views

Copying feature from one layer while mapping fields in QGIS?

I am trying to copy features from one layer to another. What I would like to do is for QGIS to ask me which field should each field copy to. For example, layer A has 4 features that I am trying to ...