POST
|
I have an empty table with an integer type field, let us call it "field1" I want to populate field1 with numbers ranging from 1-5, so that my table looks like this OBJECTID FIELD1 1 1 2 2 3 3 4 4 5 5 I have come across this example - How To: Create sequential numbers in a field using Python in the Field Calculator But do not know how to adapt it to fit my need. Regards,
... View more
03-04-2017
07:40 AM
|
0
|
1
|
1137
|
POST
|
I added - arcpy.SetLogHistory(True) # Import system modules import arcpy, os from arcpy import env arcpy.SetLogHistory(True) ... The script is running as expected for all feature classes - all the fields are added. As to why the script was not executing as expected, I am still not sure of what the problem is. Thanks Dan for some pointers.
... View more
05-03-2016
04:24 PM
|
0
|
1
|
354
|
POST
|
All of them are feature classes. I am using the script to add multiple fields using the python script. I have also attached a sample filegeodatabase. I am only able to add the fields to the Farm_Portion feature class.
... View more
05-03-2016
03:14 PM
|
0
|
1
|
354
|
POST
|
I am experiencing a strange issue, not all the feature classes have been updated when running the following python script in ModelBuilder The filegeodatabase has a total of 9 feature classes (six of the feature classes have been updated and three are not), no errors are shown in ModelBuilder. Here is the script I am running: # Import system modules import arcpy, os from arcpy import env #Set the workspace so that Python knows where to look for the feature classes. # In this case, it is a GDB arcpy.env.workspace = r'D:/spatial_data/parcel_data/scratchdb.gdb' # list the feature classes fcList = arcpy.ListFeatureClasses() # loop through list for fc in fcList: #check if field exists, if not, add it and calculate if "RegCode" not in arcpy.ListFields (fc): arcpy.AddField_management(fc, "RegCode", "TEXT", "", "", field_length = 😎 if "IdCode" not in arcpy.ListFields (fc): arcpy.AddField_management(fc, "IdCode", "TEXT", "", "", field_length = 😎 if "PNoCreate" not in arcpy.ListFields (fc): arcpy.AddField_management(fc, "PNoCreate", "TEXT", "", "", field_length = 😎 if "PnNoCreate" not in arcpy.ListFields (fc): arcpy.AddField_management(fc, "PnNoCreate", "TEXT", "", "", field_length = 5) if "IdCreate" not in arcpy.ListFields (fc): arcpy.AddField_management(fc, "IdCreate", "TEXT", "", "", field_length = 21)
... View more
05-03-2016
01:16 PM
|
0
|
5
|
1911
|
POST
|
Robert, Thank you for your response, it is highly appreciated. In terms of advise, it is to see if people have ever implemented something like this and maybe provide further suggestions.
... View more
02-22-2016
06:54 AM
|
0
|
0
|
518
|
POST
|
Hello, We are looking in extending an application created with ArcGIS Webapp Builder Developer Edition to include functionality of accessing document scanners within the application. The typical use case is: A user launches the web application Searches for a property Opens the scanning widget (the scanner could be A4 - A0) Scans the documents (supporting documents, maps, building plans) Saved on file (1 or more documents can be associated with a single property) Hyperlink is added to the table I have also seen the following SDKs: TWAIN Scanning SDK for Web Browser Applications - Dynamic Web TWAIN scanner.js - Scans documents and uploads images to web servers directly from browsers IE Chrome; Java, C# ASP.NET, PHP o… Any advise will be appreciated
... View more
02-22-2016
01:39 AM
|
0
|
2
|
2406
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|