Quantcast
Channel: Forums - Python
Browsing all 2485 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

Error when trying to publish geoprocessing service

I am trying to publish a geoprocessing script from a script tool in python. The code runs great in ArcGIS but I am getting error messages when trying to publish the geoprocessing service. Attachment...

View Article


Image may be NSFW.
Clik here to view.

Python + GME (Spatial Ecology) + Subprocess.call

I am attempting to run GME functions using python using "subprocess.call". But every time I receive a Windows error message (see attached image). Apparently the log file cannot be found (incorrect...

View Article


What is going on here?

Hello, So i am trying to do some basic math which i have done before yet i get an error.. Anyone have any idea why? the function I am trying to run to populate a Double Field: math.atan2( !DeltaY! ,...

View Article

arcgisscripting in CGI script

Hi all, I'm trying to write a Python script that imports arcgisscripting (yes, stuck in pre-history here) which is then run as CGI by a web app. It runs fine from the Windows command line but as soon...

View Article

DeleteFeatures.... FeatClass has Attachments

Perhaps I am just missing something very simple here, but the docs say I need to convert the Feature Class to a Feature Layer, apply a selection in order to apply DeleteFeatures on the selected...

View Article


Add layer works for a dataframe but not the other

I am creating a tool that the user can use to clip polygons to soils. So he first starts editing, draws a polygon, clicks the tool, choose the soil file to be used for the clipping, then runs the tool....

View Article

Python Add-In does not report to python window

Hi, I just began to take a look at the Python Add-Ins. Simple tests with buttons and tools do work, after normal installation. But in my case the Add-Ins do not report any information to the python...

View Article

python precission

Hi All: I have just started programming some scripts in Arcgis. So, the problem i have encountered is the next one. I traverse all the vertices in a shp feature, and create another shp with all the...

View Article


One point, one foot from the end of many lines?

Is there a tool which will place a point a specific distance from the end of a line? I have a .shp with 2345 lines, all which need one single point about a foot from their end point. These lines are...

View Article


Scipy install steps for ArcGIS v10.1

I would like to install the scipy site package (not the entire scipy "stack"), and am looking for someone's advice (a brief how-to) who has done this before and not totally whacked their ArcGIS Python...

View Article

Need help with editing value in versioned sde. Using arcpy.da.Editor

I have a python script that updates the tiles for a cached basemap using a feature class of polygons for the area of interest. Once the tiles are updated, I would like to update the values in the...

View Article

cut & paste annotations

Can Python be used to cut & paste Annotations? I have read through arcpy.CopyFeatures_management and arcpy.Copy_management ESRI help docs. I have been unable to find anything that mentions cut...

View Article

Randomly occuring python errors in script

I've got a long script that performs a bunch of different geoprocessing tasks. It creates a File GDB, creates empty feature classes and builds data, often with cursors. 1/2 the time I run the script,...

View Article


arcpy.MakeGraph/arcpy.Graph() not respecting template design

Hi I'm using ArcGIS 10.2 Advanced/32-bit Python 2.7.3. I'm needing to create multiple graphs using Arcpy (4 feature classes per graph: 2 vertical line, 2 scatter plot). My code works great using a...

View Article

Image may be NSFW.
Clik here to view.

Replacing SDE connection in MXD's

Hi All, Like many before me (and yes, I have perused the forums looking for pointers) I am having to change servers for one of the several SDE databases. I would like to have a script that can be run...

View Article


Passing Hidden Arguments to a script tool script

I am wanting to pass a hidden argument to a script tool script which will be passed to a child script. The only solution that I have found that works is to create a derived parameter with a default...

View Article

Converting multiple labels to annotations and back

Hello all! My team and I are working over a very large area and creating hundreds of small maps in layout view for permitting purposes. We are looking for a way to change a bunch of labels to...

View Article


Re: ArcToolbox GUI Behavior on Closing

Hi Mike, I've generally had it return to the dialog window as you have stated, although its a bit long winded I tend to use the results window to access previous dialogs. The only option I know of for...

View Article

data driven pages - check if true - arcpy

is there any code to check if an mxd has data driven pages activated? e.g. if datadrivenpages = true then xx else yy

View Article

Setting GraduatedSymbolsSymbology.classBreakValues with joined fields by ArcPy

Hi, I tried to set breakvalues and breaklabels on a graduatedsymbol-layer. When the layer has no join it works fine, but I need to join a SDE table in order to classify one field of the joined table....

View Article
Browsing all 2485 articles
Browse latest View live