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

Image may be NSFW.
Clik here to view.

Python script to derive new cells values from the current ones,

Python script to derive new cells values from the current ones, I couldn’t figure out how to develop a code that change the values of cells based on If –Then statements. Suppose that I got a raster...

View Article


Traffic Data

I have written a script to attempt to download traffic data but it has shown some errors i have tried to rectify but returning the error. Here is my script: # Olawumi Lanlehin import arcpy from arcpy...

View Article


CSV Field Types

Newbie to Python, but have written a script to concatenate multiple CSV files into one file and add a couple of computed fields. I was wondering if there is a way specify field types in python where...

View Article

script tool for df.time.currentTime ???

I'm getting this error when I run my script tool. Traceback (most recent call last): File "C:\Users\Courtney\Desktop\ScriptTool.py", line 233, in <module> df.time.currentTime =...

View Article

New feature class and saving data

I'm very new to Python and I have a question about building an add-in for ArcMap. I've looked all over for a tutorials, but there are none that answer my question. I would like to build an add-in where...

View Article


Mulitvalue string parameter with drop-down list in Python Script Tool

I am trying to build a script tool using ArcGIS's 10.0 built-in python functionality. I have been trying to create a multiple value string parameter with a pre-determined set of values that each of the...

View Article

Intermittent error on CostDistance_sa loop-calculations

Hi All, I'm newbie in python geoprocessing. I created CostPath calculation permutations. The problem is it runs sometimes and errors on different "set" of permutations. It's an intermittent issues.....

View Article

Image may be NSFW.
Clik here to view.

select max value python or vb script

hello, i'am have some problem with my task. i want to try create model builder from my shp layer. how to select max value in field prio with VB script or Pyhton in model builder ? Attachment 23112...

View Article


Please read: How to post Python code

Please try to post code in code blocks in the forums. This is especially important with Python scripts, as indentation is part of the syntax! Here's how: Method 1: (This is the method to use in the...

View Article


Python calculates incorrect date

Using the python expression time.strftime("%d/%m%Y"), my date is calculated as 12:00 am. If I drop off the day and month variables, i.e. time.strftime("%Y"), I get the date claculated as July 5, 1905....

View Article

copy user privilege / role access to gis object across database

Hi, I can use python to copy dataset , feature class, table from one database to another database using a script similar to this article : http://support.esri.com/en/knowledge...s/detail/40831 My...

View Article

Clipping a raster and renaming it

I am still pretty much a beginner when it comes to python, so go easy on me. I am trying to clip a raster to a tiled polygon layout. I have a feeling that my errors: ERROR 000628: Cannot set input into...

View Article

python version 2.7.3 usable?

The current documentation for 10.1 says that Python version 2.7 is compatible with ArcGIS, but does that mean 2.7.x? Wondering because I am thinking of installing the current version of GeanyPy, a...

View Article


Delete dbf fields

I have a dbf table with four fields: OID,TYPE,FREQUENCY,COUNT. I only want to keep TYPE. I got this script off this forum and modified it to fit my data but it is not working. Is that because it is a...

View Article

Creating Polygons with MouseDown

I would like to create an add-in using the "onMouseDown" and create polygon shape files. I have done this with model builder, but I'm not sure how it works with Python. I exported the Python code from...

View Article


Image may be NSFW.
Clik here to view.

Facing Problem while Join managment through Python

Hi, I am automating LAYER dissolve process through pyhthon almost done.But faced some strange thing today. While running the python script from ARCMAP every thing is running fine(PFA screenshot), but...

View Article

Update Cursor "Instance has no attribute" error

I am looking to use an Update Cursor over a feature layer in a map document to, well, update a handful of attributes. I seem to be getting an error that tells me the instance of my object does not have...

View Article


how to use pythonwx in python-addin

I am using Python-addin under ARCMAP10.1 I want to use Media player , i found pythonwx has window media player control. I have develop a program using that control.I want to add this code as...

View Article

Esri python arcpy.da.UpdateCursor - create cursor has failed (script error)

Hi, I'm working with the arcpy.da module for the first time and just trying to get a handle on how it operates. I have a PostgreSQL database with a simple table that includes these fields: id, field1,...

View Article

SCRIPT TOOL ERROR - TRYING TO GET USER TO SPECIFY TIME FRAME ON DATA FRAME

Layer time is only read access. in order to specify the data frame time (ie time slider options) I need to be able to have the user select the time frame they would like. Data frame time has read and...

View Article
Browsing all 2485 articles
Browse latest View live