We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [fields-attributes]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
27 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
33 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
10 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
0answers
21 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
35 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
56 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
19 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
46 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
16 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
57 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
44 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
37 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
48 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
33 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
59 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
31 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
16 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
100 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
242 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
40 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
59 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
58 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
169 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, ...
2
votes
1answer
76 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
52 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".
1
vote
1answer
60 views

Missing window in QGIS 3.4.9 Madeira

I am working with the latest stable version QGIS 3.4.9 Madeira. Unfortunately, I cannot find the window relating to projected coordinate system properties (see the picture), so I cannot change the ...
1
vote
2answers
39 views

Use ArcPy for finding value throughout all fields and export to new layer

I need to find a way to find a specific value in the attribute table and then export all rows with said value to a new feature class. Below is the code that I have managed to come up with (using ...
1
vote
1answer
64 views

Defining grid-names: Setting up a 1m2 grid over a 100x100 meter area

I'm working on an old archaeological field-survey dataset from the 1960's. I'm trying to create a polygon grid (fishnet) over a specific area where I can give the individual 'tiles'of the grid an ...
1
vote
1answer
34 views

Add Field disabled on Excel file in ArcMap?

I am a new user to ArcGIS Desktop 10.7. I imported data table from Excel 97-2003 format in the Table of Content. Then with XY recognition the layer was created with the defined coordinate system. The ...
2
votes
1answer
44 views

Adding fields to temporary layer using PyQGIS?

I want to add some fields in a temporary layer in order to use it in another process. What I tried to do is below : shp_result = processing.run( 'native:pixelstopoints', { ...
1
vote
0answers
41 views

Calculating latitude and longitude fields using PostGIS? [duplicate]

I have a shape in PostGIS that has 2,658,061 records (points). I need to create a field that is called "Latitude" and another that is called "longitude" and calculate a position in WGS84 (SRID: 4326)...
1
vote
1answer
27 views

Shapefile containing several fields with the same variable at different times. How to group them into a single field?

I have a point shapefile that includes several (e.g 160) of fields with the mean temperature and wind speed [at each location] for different days. Ideally, I want to reduce the number of fields to ...
1
vote
1answer
40 views

OSM Export attributes of streets

Hi I am beginner at QGIS. I am trying to export the attributes "surface" and "parking lane" of every street of the city Dresden. I tried it with "overpassturbo", but it doesn't give me every street, ...
1
vote
0answers
55 views

Datetime on attribute tables

I have written a script to add, among other stuff, a datetime column. I have used the arcpy.AddField_managementcommand, but it didn't have a 'Datetime' type, so I used the 'Date' type : arcpy....
1
vote
1answer
26 views

Adding information of a shapefile to a GPS coordinate

I am using ArcMap 10.6.1 and I am currently trying to add information to a GPS coordinate. This coordinate (red) lies within a shape from a shapefile, and the shapefile as some attributes (yellow box)....
1
vote
2answers
54 views

QGIS layer export to KML limited to 2 fields

I'm successfully exporting my layer to KML using the Right click > Export > Save Features As.. window. I then check the 13 fields I want to export, and proceed without problem. But when I import this ...
1
vote
0answers
22 views

Calculating areas and joining attributes between overlapping features

I am working with QGIS 3.4.8 and Python 3.6.8 on OSX El Capitan 10.11.6. I have two shapefilea, one which is a grid of cells (each cell a feature) and the other one which is urban settlements as ...
6
votes
2answers
133 views

QGIS: Cannot add negative numbers in a field

I am using QGIS 3.4 and when I finish drawing a feature (line), I try to add a negative value (-1) in the attribute dialog and it is automatically changed to NULL. The field is integer. Even if I ...