Tagged Questions
0
votes
1answer
23 views
Can an arcpy.da.SearchCursor be used on a dataset residing in a ParcelFabric?
I'm using ESRI's LocalGovernmentMI.gdb data model and am managaing parcel data in a ParcelFabric dataset. I'm trying to use a search cursor on the ParcelFabric_Parcels dataset but I recieve this ...
...
2
votes
2answers
51 views
Run Python child script using Python Add-In button class?
I have a Python script which I want to execute using Python Add-In button class. Right now, I am using following:
class child(object):
"""Implementation for Toolbar_addin.button2 (Button)"""
...
0
votes
1answer
24 views
UnboundLocalError: local variable referenced before assignment
I have following simple function to get percent values for different cover types from a raster. It gives me following error:
UnboundLocalError: local variable 'a' referenced before assignment
which ...
2
votes
2answers
87 views
Help with Python and adding a grouplayer to arc, renaming it from a folder name, then adding layers to it from that folder
I am trying to use os.walk to go through a directory tree, pull out all the .shp files in it, create a grouplayer in the mxd, rename the grouplayer the folder name, then add the layers from that ...
1
vote
1answer
48 views
Make Table View with field_info Output
I am using Make Table View to copy data from one table to a table view object and in the process hide and/or rename some fields. When I output the data to a dbf it hides and/or renames the fields ...
0
votes
3answers
34 views
Using Sort_Management for multiple tables
I like to convert tables (100+) living in access database to a geodatabase tables, sorting them and deleting unnecessary fields in each table at the same time. I figured I use the Sort_management ...
3
votes
2answers
235 views
Read specific column and row value from a text file using Python [closed]
I have a text file as following:
1.25 177.
1.50 220.
2.00 272.
5.00 427.
10.00 556.
25.00 763.
50.00 916. ...
3
votes
2answers
250 views
How to draw rectangle to clip layers using python addin in ArcGIS 10.1?
I want to clip rasters in data view using interactive rectangle (to define Area of Interest) and add them to current dataframe. Following is a piece of code which is not returning anything. Any ...
3
votes
1answer
146 views
Pasing multivalue parameter using arcpy
I am trying to get my head around how multivalues derived from the arcpy command GetParameterAsText gets looped through a script. Could some please provide a sample script that does the follow basic ...
0
votes
0answers
495 views
Use Python to change datasource from a feature class to a view built on the feature class
I'm trying to replace the datasource for all of the layers in my map document using Python but I keep running into an error. Right now, all of the layers point to a feature class called ...
