Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 115

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

15 votes
4 answers
11k views

Re-ordering fields permanently using ArcGIS Make Query Table tool?

In the Answer to Reordering fields (permanently) in file geodatabase using ArcGIS Desktop? it was stated that the Make Query Table tool could be used to re-order fields in tables and feature classes p …
PolyGeo's user avatar
  • 65.4k
13 votes
Accepted

Re-ordering fields permanently using ArcGIS Make Query Table tool?

I figured out how to do this by using the Make Query Table tool, Copy As Python Snippet, the Python window and the Copy Features tool. After running the Make Query Table tool to pull through just the …
PolyGeo's user avatar
  • 65.4k
7 votes
Accepted

Deleting all fields from feature class with ArcPy?

I think you could do this with MakeFeatureLayer on your original feature class, using field_info to "hide" all the fields, followed by CopyFeatures to get the features with no fields in a new feature …
PolyGeo's user avatar
  • 65.4k
7 votes
Accepted

Counting number of fields in table (or feature class) using ArcPy?

To count the number of items in any list (including a list of fields) you can use the Python len function. For example: print len(fields) count = len(fields) or print len(arcpy.ListFields(<table> …
PolyGeo's user avatar
  • 65.4k
6 votes
Accepted

Using arcpy to separate surface objects mixed into one file into different shapefiles

The tool that I would use to "separate some information in a [shape]file into separate shapefiles based on values for a field" is Select_analysis: Extracts features from an input feature class or …
PolyGeo's user avatar
  • 65.4k
5 votes
Accepted

Insert variable to query builder of Arcpy

Assuming that your Source.shp has a field named Field, instead of: "\"Field\" = " + Var + " try: "Field = '{0}'".format(Var) A two variables example syntax is: "TextField = '{0}' AND NumFiel …
PolyGeo's user avatar
  • 65.4k
5 votes

Can colon (":") character be used in shapefile field names?

According to the same Esri article that you cite: These limits are imposed so that ArcGIS is able to function with the maximum amount of data types. Consequently, even if you are not prevented …
PolyGeo's user avatar
  • 65.4k
5 votes

Debugging ERROR 000664 when changing field name with arcpy.AlterField_management()?

In the Help for arcpy.AlterField_management() it says with my bolding: This tool provides the ability to rename fields or rename field aliases for any geodatabase table or feature class. From …
PolyGeo's user avatar
  • 65.4k
5 votes
Accepted

Changing sequence of point features into order along line using ArcPy?

To do this using linear referencing: Turn the line into a route. Use the points to add measures along that route as an event table. Then read the order of those points (now point events) in the even …
PolyGeo's user avatar
  • 65.4k
5 votes
2 answers
1k views

Creating numpy.array with variable number of fields to test arcpy.da.ExtendTable performance?

There was anArcPy Café blog posting entitled Adding Fields: Performance Tips which advocated: Two approaches to help increase performance when adding numerous fields to a table or feature class. …
PolyGeo's user avatar
  • 65.4k
5 votes
Accepted

Returning list of field names in joined table using ArcPy?

Instead of: for fields in arcpy.Listfields(Feature): print fields try: for field in arcpy.Listfields(Feature): print field.name My changing of fields to field is not important but I think it …
PolyGeo's user avatar
  • 65.4k
4 votes

What might cause "ERROR 000728: Field <fieldName> does not exist within table" in this code?

Confirm that the field FID_Con_st exists immediately before your line of code tries to use it by running this test. for field in arcpy.ListFields(Intersect_str): print field.name str_Dissolve = ar …
PolyGeo's user avatar
  • 65.4k
4 votes
Accepted

ArcGIS Field Calculator returning 0 values when decimals are expected?

I just ran a test at ArcGIS 10.0 SP5. You can see my results below. To achieve this in a file geodatabase polygon feature class, I had field cnt1 as Short Integer, pop1 as Long Integer, and Stnd3 …
PolyGeo's user avatar
  • 65.4k
3 votes

Identify duplicate polygons to enable removal after reviewing attributes

I think Intersect will enable you to quickly identify the overlaps and give you an attribute table that you can use to zoom from one overlap polygon to the next. "Intersect can run with a single inpu …
PolyGeo's user avatar
  • 65.4k
3 votes

Spatial join including attributes - like SQL right join?

I would use the Union tool of ArcGIS for Desktop to do this: Computes a geometric union of the input features. All features and their attributes will be written to the output feature class. Ho …
PolyGeo's user avatar
  • 65.4k

15 30 50 per page