Tagged Questions
3
votes
1answer
33 views
How to check via Arcpy if ArcMap is currently in an edit session or not?
I've created a Python add-in button that helps speed up my coworkers workflow by copying one feature class attribute to another. It uses the arcpy.UpdateCursor function to update a row in the target ...
0
votes
0answers
19 views
Receiving Label Expression error
Writing simple label expression in python. It looks like this [Well_Name]+'\r'+ [TCA] . They are both string fields. I receive the following error "TypeError: coercing to Unicode: need string or ...
5
votes
2answers
89 views
How to do advanced Python labeling in Arcmap?
Does anyone have a good reference for advanced/complicated labeling expressions in Arcmap? I am attempting to write a Python label expression that would involve multiple label definitions.
Here is ...
1
vote
2answers
60 views
ArcMap label expressions with Python
Having trouble here: I'm trying to use python to write selective label expressions. I have several concentrations and depending on its "_Ex" number I either want it labeled red, not red, or not ...
1
vote
1answer
83 views
Search cursor stops selecting after two iterations
I have a script which selects an extent from a grid and exports the data frame.
import os, arcpy
mxd = arcpy.mapping.MapDocument('CURRENT')
df = arcpy.mapping.ListDataFrames(mxd,"Layers")[0]
...
6
votes
3answers
121 views
How to efficiently read and reclassify many rasters in R
I've been tasked to create a suitability analysis of wave conditions in the Gulf of Mexico. I have 2 thousand or so raster files that are about 8 MB each (2438 columns, 1749 rows, 1km cell size). ...
0
votes
1answer
35 views
Rendering a layer in ArcMAP using ArcObjects and Pyhon
I succesfully wrote a script to render a Uniquevaluerenderer in a layer in ArcMAP using symbols from 4 parameters (values) read from the attribute table of the layer. I used ArcObjects and VBA, but ...
1
vote
1answer
70 views
Calculate Field using Esri Python Addin
I am trying to select a polygon then it must automatically change (calculate) the status to "C". The tool seems to work in the background but nothing actually happens (the status is not updated). I ...
1
vote
1answer
33 views
How to keep specified separation distance between features in printout from ArcMap?
Does anyone have a solution to select features using attribute values and print only the selection keeping a specified separation distance between the features in the printout in ArcMap.
1
vote
0answers
38 views
Clipping Buffers
I have buffered a line shapefile where many lines are intersecting but not broken at intersections. I am trying to select each record in the buffer file and clip all intersecting polygons in the same ...
3
votes
1answer
165 views
Calculate area within Python script in Arcmap
I am trying to calculate the area of a polygon within my Python script. I create a new polygon from merging two together, and I'd like to add the area of the resulting polygon to a field in the output ...
1
vote
0answers
55 views
Creating Raster with values based on function output
I have a function that calculates a price based on the input slope and distance. I want to write the price to a raster as the rastervalue. How do I do that? OpenSource and ArcMap solutions would work.
...
2
votes
0answers
95 views
Python script to create a point on a line with attribute data
I have a line feature class with 2 lines (Engineering and Continuous Station series) co-incident on each other. I have created a toolbar(ArcGIS Desktop add-in 10.1) with 3 tools on it, add control ...
5
votes
2answers
214 views
Code to open web browser crashes ArcMap when run from a Python add-in
I created an ArcMap Python add-in using ArcGIS 10.1 to open a webpage after the map is clicked. It opens the page but then ArcGIS crashes.
import arcpy
import pythonaddins
import webbrowser
class ...
5
votes
2answers
363 views
Select and copy features in ArcMap using Python add-in tool
I'm trying to add a tool to an add-in toobar to select features from an existing feature class and copy them across to another feature class. I need two tools, one for a point and one for a rectangle. ...