Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fields-attributes]

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

1
vote
0answers
15 views

QGIS 3, Set Labels from expression in “Legend”-Property

Since version 3 there is a section called "Legend" in the layer properties. The displayed fields indicate a promising further development. Namely, is it possible to transform legend entries resulting ...
-1
votes
0answers
13 views

Adding document path to ArcMap attribute table?

I am looking to add the document path within the attribute table for a feature class in a File Geodatabase. Is this possible?
1
vote
1answer
38 views

Creating points with attributes from coordinates in ArcPy

I know how to create points by coordinates with arcpy using the following code: import arcpy ptList =[[20.000,43.000],[25.500, 45.085],[26.574, 46.025], [28.131, 48.124]] pt = arcpy.Point() ptGeoms =...
3
votes
1answer
16 views

Calculate a field using text from another field separated with comma

I have an address field containing the following text: "64,ramkoti,hyderabad,500070" I need to copy hyderabad to another field. What would be the code used in the field calculator tool to achieve ...
2
votes
0answers
36 views

Extract derived data fields from Shapefiles

I've uploaded shapefiles with professionally supplied survey data into QGIS and it all plots fine, then when I export the attributes table into Excel I see that the XYZ values are all zeros. I know ...
1
vote
0answers
26 views

Unable to select interpolation attributes from my shapefile

My point shapefile has four fields, three of which are numerical: longitude, latitude, and homicides. However, the homicides field does not appear for me to select it as an interpolation attribute. (...
3
votes
1answer
64 views

Getting field type in ArcPy?

I've got back into Python after a long break. I'm creating a simple data validation script at the moment. I am just trying to return the field type of a field input by the user. I'm using arcpy....
1
vote
0answers
19 views

QGIS 2.12 How can I assign the attributes of the polygons of the layer A containing the geometry of layer B?

In other words, I have two shapefiles: Layer A: not-intersected Areas (1 attribute: ID); Layer B: Buildings (Several attributes). I want to identified by the related ID attribute all the buildings ...
0
votes
0answers
12 views

Attribute table QGIS [duplicate]

I have a attribute table with different columns. I have to add one more column and then copy paste the values from a different column, but both columns are in the same table attribute. How can I do ...
2
votes
1answer
35 views

Populating new field in shapefile with values from list?

I'm looking to populate a newly created field in a shapefile that from a list using basic python and osgeo tools. The values are integers and in a python list that is the length of the number of ...
0
votes
1answer
26 views

arcpy.da.SearchCursor storing data in a list with a query

I am currently working with a database that hold street names, x and y coordinates and many more fields. I would like, through a search cursor, to store the x,y coordinates in a separate list for ...
2
votes
1answer
57 views

How to create a polygon from a data CSV file with coordinates using QGIS? [duplicate]

Having the following information in a CSV file: I want to build a polygon with all the points where the Group name is the same. For example I want to join all the points where the group is T101 and ...
1
vote
1answer
75 views

QGIS 3: How to rename attribute/field names for Geopackage Layer

Issue: I need to rename several attributes/fields in a geopackage layer. How to do this? Linked Issue: there are numerous pages on how to rename the attributes/fields of a shapefile. However there do ...
2
votes
2answers
43 views

Selecting features of a shapefile using attributes of another shapefile

A newbie here trying to learn QGIS for work. How can I select specific features of a polyline with the same values as the attributes of the buffer polygons I generated? I have a layer of polylines ...
2
votes
1answer
51 views

How to permanently change attribute values using PyQGIS?

I'm trying to iterate through all the features of a layer to change the value of some of its attributes. I'm using the following code: from qgis.core import * import os working_folder = r'C:\...
1
vote
0answers
26 views

How to set a default attribute value based on the feature being created

This question expands on, and updates for QGIS 3, the answers found here. I have a layer with attributes called "Name" and "Label". I would like to set to default value of "Label" to be the same as ...
0
votes
0answers
16 views

How to connect point layers through their attributes/relations?

I have a project to use QGIS to track fishing activities (product goes from boat to fisheries to processors to factories...). All layers have coordinates and I managed to map them but now I´m trying ...
0
votes
0answers
17 views

field information lost when importing geojson file into qgis

I have an attribute in the geojson file which contains a list of elements (usually 3). The attribute has 700-1000 characters. I learned that for shape files, qgis can only have fields with less than ...
1
vote
3answers
49 views

Deleting blank fields in multiple shapefiles in folder using ArcPy?

I have some shapefiles and each shapefile is having some blank or zero value fields. My task is to delete blank/zero value fields for all shapefiles in the folder. I have searched for solution in ...
0
votes
3answers
59 views

Using ArcPy to ListFields inside SearchCursor?

The current code I have simply lists ALL fields in the feature class and seems to ignore my logic of if row[0] is not None: Why does it do this? fields = arcpy.ListFields('\\\\Bvweb104draco\\e\\...
3
votes
2answers
56 views

Running arcpy.AlterField_management 2,000 times takes too long?

I am trying to replace field names of a table stored in a file geodatabase using a dictionary as a lookup table. My field names got cut off from the Tabulate Area tool (Tabulate Area Truncates Field ...
1
vote
0answers
39 views

Select Feature Based on Iterate Row Value in ModelBuilder

I have a table showing commuting trips from home to work. home_id represents home and work_id represents work. Now I want to step through the trips table using Iterate Row Selection in ModelBuilder, ...
0
votes
1answer
70 views

Field Value shapefile - Add values

I have a shapefile that contains three lines. I want to add a specific numeric id to the field "line_id" and a string id to the field "border_id". Basically, for the first line, I want to add the ...
0
votes
1answer
24 views

Fill the color of polygons with some attribute value using ArcGIS

I have a large set of polygon features where I need to add some attribute value in "Name" field. Because it is a large set of polygons I want to have all polygons where I have add the value to be ...
1
vote
1answer
48 views

LiDAR data in GPS time, only in second. Missing week?

I have LiDAR data LiDAR Data captured, unsure what units or format this time field is in? which I learned that my LiDAR data is in GPS second, however I do not have a column of data which shows the ...
1
vote
1answer
41 views

LiDAR Data captured, unsure what units or format this time field is in?

I haven't been able to figure out or find out from searching around what units or format this time field is in my LiDAR data that was collected?
0
votes
1answer
62 views

Limited field type options QGIS 3.4

I'd like to add a 'Decimal Number (double)' field to an attribute table, however, this option seems to be missing when I go to add a field. I have looked at some videos for adding fields in QGIS and ...
0
votes
3answers
53 views

Making one field/values equal to another field/values

Lets say I have created a new field called "SFX" in a shapefile called "myshape.shp": input = r"C:\files\myshape.shp" arcpy.AddField_management(input, "SFX", "TEXT", field_length=100) There is now ...
0
votes
0answers
35 views

Adding field to middle of attribute table using ArcPy? [duplicate]

When executing the add field command in arcpy it always appends the field at the end of an attribute table. Can someone help me write a code where a field can be inserted in the middle of an ...
3
votes
3answers
185 views

Changing field types so graduated symbols are available

I can't seem to make graduated symbols work. When I try to click on my column it doesn't show any options. I think these is due to those columns being formatted as text and not number. Any ideas how ...
0
votes
1answer
39 views

Reclassify with attribute

So, I don't really know how to word what I want to ask, but I took a DEM file and did used the raster calculator to select a certain elevation range. After that I reclassified it to separate it into ...
0
votes
1answer
41 views

Run model from script

This is my script where I am trying to use selectby_attribute within a model, based on a field, F*. There are 6 fields, so I want 6 derived layers. Then I am going to use bearing and distance tool ...
0
votes
0answers
26 views

Generate Markers from WFS via turf.centroid() with Popups

I have successfully made a map that computes points from a WFS consisting of polygons and generates them as markers. The calculation is carried out by turf.js. However, I do not get all the properties ...
2
votes
1answer
267 views

Defining fields and adding features to output layer using QGIS?

I have two input vector layers (one point and one line layer). I loop through every feature in the input-line-layer and calculate some things (with help of the point layer). What I am trying to do ...
2
votes
1answer
82 views

KeyError when trying to set attribute in QGIS?

I have two input vector layers and I want to create an Output vector layer by doing some calculations. But somehow, the setAttribute method does not work. In QGIS 2.18, I was able to set an attribute ...
0
votes
1answer
24 views

Creating polygon from lines, using the lines' attributes?

I'm trying to transform lines into polygons with the attributes. The lines are from a dwg file. I tried to use "feature to polygons" but doesn't preserve the attribute. I tries to transform lines to ...
0
votes
1answer
21 views

IndexError when adding multiple fields to shapefile

As part of a larger project i'm looking to add multiple fields to a shapefile using an index. This is the snippet in question: listFields = [['ITEM', 'TEXT'], ['SYSTEM', 'TEXT'], ['WATERCOURCE_BANK', ...
1
vote
0answers
85 views

QGIS3: How to set an attribute value?

I have written a python script which has one output line-vector layer. The python script should calculate some value and then the script should set the attribute (with that value) of a newFeature (...
1
vote
2answers
127 views

Getting field index from input vector layer in PyQGIS?

I am very new to QGIS3 and I am currently trying to convert a python script from QGIS 2.18 to QGIS 3. Therefore, I am trying to integrate my python script into the template from underdark -> see here ...
0
votes
1answer
102 views

Extract Raster to Multiple Rasters by List of Values in R?

I'd like to use the Raster package in R to process a single DEM. I'd like to use a pre-determined list of elevation values to extract multiple raster datasets from this DEM. Not all values are of ...
0
votes
0answers
27 views

arcpy.ListFields not returning field name with iterative.name

I'm trying to return the field names for the field objects in a table in arcmap: a = arcpy.ListFields("Assessor_DB.ASR.ASR_PARCEL_CONDOMINIUM") for i in a: print i.name I'm getting the following ...
0
votes
1answer
55 views

How to handle A column was specified that does not exist exception. and still put a value where the column should be

ArcGIS 10.4 I have a python (arcpy) script that is pulling values from a input list of fields for every featureclass in a geaodatabase (gdb) using a SearchCursor and is putting those values in a csv. ...
1
vote
2answers
124 views

Attribute constraints

Is there, with QGIS 3.x, any way to restrict the data added to a specific field of a GeoPackage layer? I want to restrict the data in a field of an attribute table with something like that: 2letters(...
-1
votes
1answer
32 views

Representing 2 digits in 4 digits ArcMap attribute table?

I would like to represent the 2 digits in the attribute table of the ArcMap as 4 digits. For example, yun field '23' -> test field '0023' / yun field '123' -> test field '0123' What can I do?
3
votes
2answers
79 views

Assigning numbers to grid of polygons using ArcPy?

I would like to number the shown grid of polygons. The numbers should go left to right top to bottom, starting at 1. I'm using ArcGIS Desktop with a Basic license, and would prefer to do this with ...
0
votes
1answer
46 views

Create New field equal to existing field - convert to integer - PyQGIS 3.4

I'm using PyQGIS 3.4, I am trying to add a new field and set the values equal to an existing field. The existing field are population totals but are in string format, I want to convert these to ...
2
votes
1answer
111 views

QGIS Display features by attribute value

I have a layer called "streets". It has an attribute called "traveled". The values are either "yes" or "no". If the value is "no", I would like to display those streets in a different color (than ...
3
votes
1answer
358 views

Adding Properties to a feature in Google Earth Engine

Is there a way to add a property to a feature in the GEE. I know that you can edit existing properties with set(), but haven't found a way to add a property.
1
vote
2answers
48 views

Programmatically defining schema not working for nulls

I am attempting to create a table with appropriate schema. I have created a data dictionary with the appropriate values stored in a list. See below schema_dict = {"borough" : ["borough","TEXT","","",...
0
votes
1answer
54 views

Merge many objects with equal position while sum up their attribute values in QGIS

I´m looking for a smart way to merge multiple line objects with the same geometry and same position in one layer while also sum up their attribute values. The result should be only one geometry (...