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

get ASCII row and column info

I have a point shapefile and an ascii grid. When you view an ascii grid in a text editor the header tells you the xy coordinates of the center then the values are all displayed in neat rows and...

View Article


access geom obj in arcpy.da.SearchCursor with "*" field param

Although I appreciate the new accessibility of fields and field methods in the da cursors in 10.1 via geometry tokens, I can't figure out how to access the geometry object when I use "*" (all) for my...

View Article


FieldMap object's OutputField property doesn't honor field type mappings

Summary: The FieldMap object's OutputField property does not accept assignment to a Field object with a .type property set to u'Integer'. If this is attempted the resulting FieldMap.OutputField.Type...

View Article

create variable counter name from string functions and then auto-increment in...

Greetings All hopefully the subject makes sense and if not, here's a longer version: I have about 350 mdbs in various folders that have the same schemas and has data captured over 2 years. due to some...

View Article

List index out of range problems

Hi, I have a List index out of range problems. I think that's come from my delete field operation but I'm not sure. Any ideas ??? The resulting layers of my script are what I'm suppose to have. Anyone...

View Article


Python not responding

I have a co-worker that is running a Python script that continually quits responding (i.e., Task Manager shows that Python is Not Responding). The script takes a NetCDF file and creates rasters for...

View Article

arcpy.mapping.tableView.replaceDataSource and multiple databases

We are migrating our geodatabase and multiple business databases to a new server.I am trying to use arcpy.mapping.tableView.replaceDataSource to migrate the OLEDB tables in our MXDs to the new server....

View Article

How to Raise Statements/Handle Errors and Exceptions in a Python Addin?

I'm working with Python Addins and I created a button. The button doesn't work. I'm used to writing a script in IDLE or PythonWin and I've always throw in some error handling codes from:...

View Article


Python to run .rlf reports

Hi I have created reports using the reports functionality in 10.1 I don't have the Data Reviewer, but I would like to use Arcpy to periodically run a .rlf report, and save it in the same location. Any...

View Article


Merge Script

Does this python script look correct for a merge? Code: # Import arcpy module import arcpy, sys, traceback arcpy.env.overwriteOutput = True from os import path as p  # Set Workspace arcpy.env.workspace...

View Article

Mosaic to New Raster (too simple, but yet wont work)

Greetings All I've been stuck on this for most of this evening and would really like to know why its not working. I'm doing a MosaicToNewRaster with a bunch of rasters that need to be mosaiced with a...

View Article

Clip data and add layer to second dataframe using python Add-In

I want to clip a layer from data frame 1 and add it to the data frame 2 using the following script. But instead it just add all grids to current data frame 1 and don't update data frame 2. Please...

View Article

Error when adding rasters and changing null values to zero in Python

Hello! I am trying to run a Python script in ArcMap that will add together several rasters to create hotspots map. I also want to change null values to a value of zero. Below is the script and the...

View Article


Where are the "RUN" and "CHECK" buttons in the Standard Toolbar?

- new install of 10.1. I wanted to run a simple Python command in the Desktop Python Window. I can not find the RUN and CHECK buttons (that according to documentation are suppose to be in the Standard...

View Article

How to clear the Python Window within ArcMap (v10)?

Hello, as I need a lot of experimentng while trying to get some code to work, I always use the history in the python window (hitting "UP-Arrow" on the keyboad to recall the latest code back into the...

View Article


64 Bit Geoprocessing with Python

To All Python Users: From what I have read on the forum, 64 bit geoprocessing is available with python with ArcGIS Desktop v10.1. I would like to make use of this capability on a 64 bit machine. I see...

View Article

Trouble editing centralMeridian of spatial reference

I was trying to make a nice gif for Valentines day to put on our website of the earth rotating in the Werner projection. I made a map with the Bonne projection and changed the central parallel in...

View Article


Change Layer Color

Hi How can I change the color of a polygon layer in my map using python codes. Thanks for your help Babak

View Article

64 Bit Python Geoprocess Speed vs 32 Bit Python Geoprocess Speed

I ran a python script with both the 64 bit python.exe and 32 bit python.exe. I was expecting the 64 bit python.exe to be faster (not sure how much faster it should be), but it was actually slower. Does...

View Article

Defining parameters in a Python toolbox for "FieldMapping"

How do you add FieldMapping to a Python toolbox? Here is the webpage for Defining parameters in a Python toolbox. --- Defining parameters in a Python toolbox ---...

View Article
Browsing all 2485 articles
Browse latest View live