How to load image to Raster attribute field with python
I'm working with ArcGis 10.0 and I try to load dinamically images to Raster attribute field using python, anyone knows any method to load an image in this field. This is my code Code:...
View ArticleMultiple Parameters for Python Addin?
I'm running ArcGIS 10.1 and I'm creating a Python Addin. I'm am wondering if we can have multiple parameters for a python addin tool/button/combobox? This is what I want to do. I want to create a...
View Articleupdate an attribute if record found in a query
I am trying to update an attribute in one table, if that record is found in a MakeQuery table (I made a table view of all records not yet processed, and once processed, I want to turn the 'Processed'...
View ArticleHow to write geometries that are perfect circles?
Hello! Is anyone out there familiar with writing geometries that are perfect circles (..err should I say arcs?). In one of my scripts I deconstruct, then reconstruct polygon features point by point. It...
View ArticleCopy FeatureClass
Hello, i want to copy a FeatureClass which is in a Feature-Dataset into an other Feature-Class (which is also in a Feature-Dataset).Both Feature-Classes are on different SDEs. Code:...
View Articlevalues in csv
I have a csv that looks like this: A,B,C,D (Newline) 2,3,4,feature_1 1,2,4,feature_1 #Average line "","",4 (Newline) 3,6,7,feature_2 1,2,6,feature_2 #Average line "","",""6.5 I want to be able to take...
View ArticleSnapping Features together from two separate databases based on a similar point.
Hey guys, I just wanted to know if there was a way to snap to features together based on a unique ID. The way I am envisioning it would be to only snap the two features together if this unique ID...
View Articlewhat arcpy function does Data/Export Data correspond to?
I need to export an xyEvent layer to a shapefile. It is a big file with about 59000 records. When I used the context-sensitive menu/Data/Export Data option in ArcMap, the export took only a few...
View Articlecoordinate conversion, for excel/csv files
I have an excel file (or in fact converted to csv for easy use. Arcpy seems to be buggy about excel files...) with some lat/long coordinates that I would need to add corresponding projected...
View ArticleProblems downloading Pythonwin
Hello, I am a current GIS certification student trying to learn Python from the Python for everyone Module from ESRI. During the module it prompts me to download Pythonwin with the following steps; If...
View ArticleWhy does the next() method fail after the last record, using...
Using the older arcpy.SearchCursor, the next() method would return Nothing once the last record had been passed. Using the newer arcpy.da.SearchCursor, I'm finding that the next() method crashes the...
View ArticleOmitting 0 values in script
Hi guys, this is my first time posting so please forgive mistakes. I am a python newbie, and I have a census tract shapefile joined to income category data. I want to calculate an entropy value, which...
View ArticleHow to tell if a layer is in a group layer
Is there a way to tell if a layer is in a group layer? I was writing out the datasource for layers in a map, which worked fine, but can't tell if a layer is in a group or not. Can test whether a layer...
View ArticleNear analysis within a single feature
Greetings, I would like to code a near analysis that generates the distance from each point in a point feature to its nearest neighbor within the same feature. Near Analysis and the like all require an...
View ArticleCalculate field based on substrings within a string contained in another field
Hi I am in need of a python code block that I can place into the calculate field tool in model builder. I have a field called REF_ID. REF_ID contains a string which is essentially just a list of...
View Articlepython scripting in arcmap 10
Hello I want to create a python script that do the same as the GO To XY but using a customized user interface. I start to write the interface code and creating the point but I don't know how can I...
View ArticleCalculate Area Add In - problem with multiple dataset types
I am working on what I thought was a simple button to calculate the area of a selected polygon.. however the script fails if there is a raster dataset loaded in the .mxd - even if it is not selected,...
View ArticlePredefine Input Path Parameter
I hope this is the correct forum... I have a Python script that I'm running as a tool within a toolbox. As a parameter, I require the user to pick a .sde file from the file system. Is there a way for...
View Articledifficulty calculating field in Python
Hi All, I'm having difficulty calculating a field in my Python script. I have a bunch of polylines and I want to get the azimuth for each line in degrees. This is where my code crashes (the math module...
View ArticleProblem for execute two buttons AddIns at the same time in ArcMap
Hi, I am working on a AddIn button for ArcMap to Export and Import a ShapeFile, my problem is: when I want execute the two buttons in the same time, ArcMap generate the next error “ArcGIS Desktop...
View Article