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

learn more… | top users | synonyms

3
votes
5answers
6k views

Renaming field using ArcPy?

What I need to do: rename a field name of a table/feature class copy all values to the new field So far I have done following code as @artwork21 suggests: import sys import traceback import arcpy ...
4
votes
2answers
1k views

Choosing Shapefile attribute data type to use?

I am trying to figure out when to use (in the Data Type of SHAPEFILE PROPERTIES) - TEXT - SHORT-INTEG - LONG-INTEG - FLOAT AND DOUBLE. I am using ArcView 9.3 and I know when it is all text or use ...
3
votes
4answers
2k views

Why does Field Calculator return 0 values when decimals are expected?

I realize I posed this question, and got answers, several days ago (see (Field calculator error)) , but none seem to really be working, and so am posing again. Below are two screenshots that show the ...
0
votes
2answers
2k views

Changing field type with arcpy

What I need to do is change data type of a field of a table or feature class. If there are some data, then I need to transfer it, if its possible, if not possible then just set null for that data. I ...
6
votes
2answers
119 views

Clean up attributes

I want to clean up the attribute table of a road shapefile for all the entries in the fields. For example: As seen below I have a road feature with a "Name", Name From and Name To in the attribute ...
7
votes
2answers
2k views

Maximimum length of text fields in shapefile and geodatabase formats?

The maximum text string for a field in a geodatabase is 320 characters. The data I am importing has long character strings and it seems to be truncating when I convert into shapefile at the max ...
1
vote
1answer
61 views

Using only part of inline variable substitution string in ModelBuilder?

I am using an inline variable substiution to alter a field name. I do this within an iteration model in model builder. The inline variable is the name of the feature class which I use as my input for ...
0
votes
1answer
4k views

How to change field formats in ArcGIS 10.1 geodatabase? [duplicate]

I am working with data in an ArcGIS 10.1 geodatabase. I wanted to complete the simple task of taking a ten-digit ID field that is currently in String/Text format and create an identical field in ...
1
vote
1answer
72 views

Create and immediately update field using Field Calculator

You can create fields and once created, populate them with data using the Field Calculator. But can you do both at the same time using an expression? Or must you do it in 2 steps?
2
votes
2answers
316 views

How to set NULL as default value for a date field in QGIS 2.4?

In QGIS 2.4, i am unable to set the default value as NULL if i have not updated any value on date fields. Its automatically taking the current system date. I am expecting to set the default ...
1
vote
2answers
95 views

MultiLine field-name label referencing

A labeling routing (which is updated often) is being implemented via pyqgis and a QComboBox. The attached code below worked great, that is until needs for narrowed column headers spawned the use of ...
1
vote
1answer
429 views

How to use UUID Generator in Qgis 2

I try to generate a UUID (edit widget) for a vector shapefile in qgis 2 but the field value is always NULL. Does the field requirea specific datatype? I used integer. In the manual I found the info ...
1
vote
1answer
117 views

How do I change the isNullable property for a field?

Once in awhile I encounter a field in my featureclasses that have their isNullable property set to No. Is there a simple way using python to correct this? I came up with this code, but ...
0
votes
1answer
244 views

How to count number of fields in table (or feature class) using ArcPy?

arcpy contains a ListFields method, which "Lists the fields in a feature class, shapefile, or table in a specified dataset". The resulting object has a count method, but I can't see how to return the ...
0
votes
2answers
107 views

Attribute Table Doubt in Qgis

I am having a shape file which consists of various fields for example: shape area ,shape length, locality, sub-locality,district etc.In my company they are demanding seprate shapefiles say for example ...
0
votes
0answers
29 views

Raster attribute field error [duplicate]

I am trying to add jpegs to a raster data type attribute field. I want to this field to be managed by the file geodatabase. When I load the photos and try to save my edits it get various errors but ...
0
votes
1answer
355 views

qgis how to assign a field to map tips

I am a beginning user of QGIS 1.8. I cannot find the way to assign a field to 'map tips'. There seems to be no way in 'properties' of the layer to do so.