Questions tagged [fields-attributes]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
13 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
23 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
16 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
7 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
52 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
36 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
36 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
0answers
23 views

How to select duplicate rows in attribute table of QGIS [duplicate]

I want select all rows that have duplicates in a particular attribute field (columns) in QGIS. Can someone help me with it? Either with a python script, plugins or a procedure that I don't know of in ...
2
votes
2answers
47 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
46 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
32 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
56 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
20 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
74 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
13 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
89 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
32 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
188 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
37 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
54 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
43 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
167 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
63 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
46 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
56 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
62 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
28 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
42 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
40 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
39 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
51 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 ...
2
votes
1answer
91 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 ...
1
vote
1answer
26 views

How to enter text into attribute tables with QGIS graphical model?

I am using QGIS 2.14 to open NC files for chlorophyll satellite data with the end goal of compiling chlorophyll values for many dates (each its own initial file) in a spreadsheet. I know how to do the ...
1
vote
0answers
43 views

QGIS 3: Get all Attributes and Objects / Features in View

I use attribute tables to store informations about a object/feature on a layer. I have multiple Layers => multiple attribute tables. Now I want to have a report about all displayed objects/features (...
1
vote
1answer
120 views

OGR SetAttributeFilter with multiple fields?

I am trying to open a layer using OGR in Python and filter the features using SetAttributeFilter() where two fields are greater than zero. from osgeo import ogr driver = ogr.GetDriverByName('ESRI ...
1
vote
1answer
40 views

How can QGIS 3.X create atlas by a group field?

I have a line layer with 8 features and a field TYPE (5 features is type_A and 5 features is type_B). I want to create a atlas which output is two single image (one is grouped by typ_A with 5 features,...
0
votes
1answer
27 views

Trying to get Multiple Tabs to display in Attributes Table in CMV viewer javascript file

My first tab displays correctly.. This is my code in my viewer: Both the service URLS display the attributes table in ArcMap correctly and both the URLS work in a browser This is the error message ...
2
votes
2answers
55 views

Merge shapefiles with unequal field lengths

I have several shapefiles in ArcMap that I want to merge together into one shapefile so I don't have to keep juggling them all. However, I can't use the Merge geoprocessing tool because it gives me a ...
2
votes
2answers
111 views

Replace empty values with the next available one using FME

how can be replaced empty attributes with the next available values ? I tried NullAttributeMapper but somehow I dont get desired results! What I have: attribute1, , ,attribute4 ,attribute2,...
3
votes
1answer
152 views

Is it possible to view all the attribute data in QGIS

I use QGIS to map and store local history data. Because of this my point attribute data contains a lot of text. Since the textbox are so small it's hard to use and present the information. Is it ...
0
votes
0answers
37 views

Lost/disappeared shape_length an shape_area fields

I have a vast database which includes a shape length and shape area field. One day, after doing some fc to fc layers from said feature class, I opened the attribute table and the shape length and ...
1
vote
1answer
22 views

Assigning attribute based on selection points on a graph?

I have a bunch of points on a map on a river that branches. I want an easy way to select one branch from the other and was hoping I could just somehow "grab" those points on the map and add a column ...