Questions tagged [fields-attributes]

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

Filter by
Sorted by
Tagged with
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
48 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
16 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
41 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
13 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
14 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
34 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
94 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
26 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
29 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
38 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 ...
0
votes
1answer
25 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
32 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
27 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
12 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
36 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
70 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
23 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
49 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
20 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
58 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
52 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
52 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
64 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 ...
0
votes
1answer
44 views

Add geometry attributes tool in ArcMap successfully runs but no fields are added to attribute table

I am attempting to add a line bearing attribute column to my shapefile in ArcMap. I'm using the Add Geometry Attributes tool to accomplish this. Running this tool is successful, however when I inspect ...
1
vote
2answers
77 views

Merge polygons based on Field A or Field B

I have a parcel layer I need to dissolve based on Owner OR Postal Address. I know I can always dissolve based on Owner AND Postal Address, but that is not what I need. So if: owners are different ...
0
votes
1answer
26 views

The same labels show up on different points across a layer

I am making a map of a bicycle tour I took on ArcGIS. I have created a layer called "Sleep Stops". Furthermore, I have created 3 label classes called "Name", "Favors", and "NotableFacts" I have ...
0
votes
0answers
19 views

Max string length is 254 for KML?

I have a network link KML which I'm downloading via Python script and then converting to shapefile in ArcGIS Desktop. The problem I'm having is the max field length of 254. It's truncating the ...
4
votes
2answers
122 views

Resizing attribute form in QGIS 3

I am working in QGIS 3.4.11 on macOS 10.14.6. For a polygonal vector layer, I have a simple autogenerated attributes form in QGIS. Every time I add a new feature in the layer, the attributes form ...
0
votes
1answer
33 views

Python batch script to delete Attributes

I currently have a script that will select and delete all the values less than 0.1 in a column. The script below works, however it specifies a specific .shp, I want to batch this so it runs through ...
1
vote
0answers
18 views

Getting attribute from intersecting polylines using ArcGIS Desktop?

I am using ArcMap 10.2.2 I've got 1 polyline feature class, which includes aprox. 500 lines with attributes (streets). To fill out certain documentation, I need to know which streets cross each of ...
1
vote
0answers
327 views

UnboundLocalError: local variable 'attributes' referenced before assignment [closed]

When trying to 'Geocode' a CSV file I receive this answer: UnboundLocalError: local variable 'attributes' referenced before assignment Traceback (most recent call last): File "/home/user/...
2
votes
1answer
43 views

Retrieving startpoint and endpoint (from/To list) of polyline layer from point layer using QGIS?

I am using QGIS 3.8 and I have a polyline layer with the attribute below And a point layer with the attribute below So I wonder if there is an expression to get the field 'Name' of the point layer ...
0
votes
0answers
18 views

Maintaining attributes in feature class in memory using ArcPy? [duplicate]

i am trying to feature to line conversion that are not multipart lines and Merge output feature class but its loses the attributes. Here is my code: arcpy.env.workspace="in_memory/" with arcpy.da....
1
vote
1answer
63 views

Copy selected attributes from one field to another using PyQGIS

QGIS version 3.4 I need to copy all selected attributes from the field 'HomePostcode' into the field 'Postcode' through PyQGIS. Using the field calculator I would simply use the expression "...
2
votes
1answer
78 views

Setting value to defaults Layer properties using PyQGIS 3

I have a vector layer, how to set defaults value in fields from the Python console. Layer Properties / Attributes Form / Defaults | In option: Default value |______________|
3
votes
3answers
170 views

Programmatic logic ArcGIS uses to determine added fields from geoprocessing when inputs have duplicate field names

ArcGIS has a confusing method for updating field names when combining tables with duplicate field names. For example, I have two tables containing the field Id. If I run JoinField_management, ...
3
votes
1answer
93 views

How to change the field value of a specific feature in a Shapefile using GDAL/OGR?

I am trying to change the field value of a shapefile, but only in some specific features. However the code I have changes the value for all features in the shapefile. Is there any way of accessing the ...
1
vote
1answer
55 views

Row_number with create virtual field in QGIS

How can using @row_number option or similar together the command "Create virtual field". It works very well with "Create new field", but doens't work with "Create virtual field".