Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
0answers
14 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
31 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
0answers
11 views

Adding new field definition using ArcGIS REST API [closed]

I am new to ArcGIS Server. I would like to understand capabilities of ArcGIS Online REST API. At the moment I am trying to add a new field to existing table using REST API. It is not allowing me to ...
0
votes
3answers
54 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\\...
1
vote
2answers
42 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
votes
0answers
20 views

Formatting Autocad DWF of utility lines for import into ArcGIS Desktop? [closed]

I work for a govt organization. We are using ArcGIS Desktop 10.6 with ArcSDE. We are having a sub-contractor map our Fiber infrastructure but they will be using Autocad Civil 3d to do this. I know ...
1
vote
0answers
20 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
64 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
18 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
39 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
34 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
30 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
42 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
163 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
31 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
33 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
17 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
134 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
45 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
17 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
19 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
44 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 (...
0
votes
2answers
64 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
53 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
22 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
41 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
72 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
26 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?
0
votes
0answers
25 views

Get informations for each grid cell [duplicate]

I have two shapefiles. One of them is a road network and the other one is a grid. For each cell of the grid I want to have the specific road network informations. Is this possible? road network and ...
3
votes
2answers
62 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
0answers
13 views

Moving attributes from polygon feature to point feature? [duplicate]

Using ArcMap 10.5.1 The polygon feature class has hundreds of thousands of features (parcels), and each feature has table data. I need to copy feature attributes from a polygon feature and paste ...
0
votes
1answer
29 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 ...
-1
votes
0answers
46 views

Setting the width of widgets when using Drag and Drop designer in QGIS 3.4 (Attribute forms)

I would like to control the width of the widgets on my attribute forms. I am using drag and drop designer within QGIS 3.4, and are using the "Value Relation" functionality, which was recently added to ...
2
votes
1answer
68 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
105 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
47 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
34 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 (...
2
votes
0answers
116 views

Why does QGIS 3.4 create .tmp file instead of refresh editing layer after saving?

I downloaded QGIS 3.4.0 and try to save edits in .geojson file. I can save new objects, but not edits in attributes. Insted of it, QGIS creates .tmp file with my chаnges into the same folder with ...
0
votes
1answer
19 views

Using alias in ArcPy?

I am doing this: Access a few columns from a file geodatabase. arcpy.env.workspace = path datasetList = arcpy.ListTables("tableA") # Here putting the name of the table for dataset in datasetList: ...
4
votes
1answer
46 views

Display Multiple Symbols for a single point feature by field attribute vale

I want to create a point feature layer and add points. Around the point I'd like to add icons/symbols and labels based on data in fields of an attribute table.
2
votes
1answer
40 views

Can you auto-populate a field in Survey123 from another field by only pulling certain characters?

I have a field where the user inputs text Aa1Bb2Cc3 Am I able to auto populate another field by only populating the field with Bb or 3. Auto populate the field with characters [4:6] or just [9] ...
0
votes
0answers
15 views

Precision and scale 0 after passing parameters

I have a field in GIS that it needs a precision and scale argument. Using Arcpy, I pass the argument like this: d_fields = ["acres" , "p_dev"] for field in d_fields: arcpy....
1
vote
1answer
24 views

Change Table Field Editable to “yes” on a Hosted Feature Layer

I have a hosted feature layer with one attribute field (text) having a 'no' within the settings editable property. I need to change this property to 'yes' within ArcGIS Online. Is this possible? ...
1
vote
0answers
10 views

How to impose constraints on drop lists of two fields of the same layer?

Is it possible to impose with pyqgis3.0 some constraints on a drop list of a field attribute in order to govern the drop list attributes of another linked field? To better clarify this issue, I attach ...
0
votes
1answer
36 views

Using Union in ArcPy for ArcGIS Pro results in two fields with same name?

I just performed a union in my Python script between 2 features that both had a field attribute named "FLD_ZONE". My hope was that one of those attributes (for the second feature, I assumed) would be ...
1
vote
1answer
50 views

Reading table from geodatabase via ArcPy and doing what each row in field says after geopandas conversion?

Here is the table: Reproducible example import pandas as pd d = {'id': [1, 2, 3], 'table_na': ['ER_ASTEN_ASTOT', 'INT_ASTEN_ASTOT','ER_ASTEN_ASTTOM']} df = pd.DataFrame(data=d) df which gives: ...
0
votes
1answer
37 views

Setting new value into field created by PyQGIS?

I'd like to create a new field named "vctcn93", loop the features of active layer, if string "metro" in feature name, I'd like to add a value string "get" into the field "vctcn93". But when I check ...
1
vote
0answers
70 views

Openlayers - get properties from automatic searching selection

I want to get the feature property from a selection. The Selection is comming from a search reference, from the openlayers extension (by http://viglino.github.io/ol-ext/). It works almost everything, ...
0
votes
0answers
37 views

Does Geopackage field length affect performance?

I have moved away from shapefiles, and now store most of my desktop spatial data in a Geopackage. One of my fields is used to store research notes and is 'Type TEXT' with a character limit of 254. I ...