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

Get workspace from mxd

Hi All, I have written script to update data from excel to pgdb for ArcGIS 10 and it is working fine. We have upgraded to 10.1 recently and the script is not working. The ListWorkspaces() give the...

View Article


Dispersing geocoded points within a Polygon

I have posted the following question within the geocoding forum: http://forums.arcgis.com/threads/977...thin-a-Polygon But perhaps it is more suitable to be listed here as it is more a Python question....

View Article


arcpy mapping: getting the selected features of one data frame selected in...

does anyone have example code showing how to get the features that are already selected in one data frame to also select the same set of features that are in a different data frame?

View Article

Help choosing Script parameter Data Type

Windows 7 Pro SP 1 ArcEditor 10.0 Python 2.6.5 I want to write a python script that acts on tabular data. With that said, the input could be a stand alone table, a feature layer (in the TOC) or a...

View Article

arcpy.Buffer_analysis() fails sporadically

Hi Folks, I'm experiencing a frustrating and inconsistent issue when I try to generate a buffer around a polygon. I'm using arc 10.1. Over the course of my program, I call: Code:...

View Article


Calculate value in a joined table

Hi, I've to calculate a field based on another field in a joined table, but an error occurs: "Parameters are not valid. ERROR 000728: Field !Table_A.field_A! does not exist within table" Code: import...

View Article

Python Script: Create a polygon (rectangle) using a single point feature

I've got 563 photos that have been taken as part of a survey. I've also got a GPS location for each Photograph that has been taken. Jake Skinner from ESRI provided me with a starting point:...

View Article

Arc Server Update User Roles using Python Script

Hello, I am using Python Script (below) to create users and user roles and set permissions, and this works perfectly........ http://resources.arcgis.com/en/help/...000061s000000/ However if I try and...

View Article


nested loops to cluster and erase all points in a dataset

Hi all, I'm trying to create a python script to do the following things: 1- choose objectID=1 of a dataset 2- generate a cluster with all the points within a 80m distance between each others 3- erase...

View Article


Comparing Raster Extents

Greetings, I'm very new to Python having just taken ESRI's 3-day Python scripting course. I'm trying to clip a large raster into smaller rasters that are the size of DOQQs. I found some code that...

View Article

Image may be NSFW.
Clik here to view.

python Scripting Problem

When i run attached script. the following error message appear Traceback (most recent call last): File "J:\Gampaha\Scripts\Script1.py", line 70, in <module>...

View Article

Check field before populating field

I would like to find a way to have my code check the field (FacltyType) and see if there is any text and if there is skip that feature and continue to check each selected feature and if there is not...

View Article

Field Calculator

I'm trying to clean up some tables with the field calculator using python. Python is new to me so I'm not sure if it's possible. It would be nice if someone could post any page that can provide me with...

View Article


Population Density in Census Tracts

I am quite new to Python and I am attempting to practice by making a simple program with ArcGIS. I wanted to make a script that automated the calculation of population density of selected census tracts...

View Article

error: Number of shapes does not match the number of table records

Hi everyone, I have a point shapefile with over 2 millions of records. I used field calculator to edit one field and deleted another field. After that, if I try to open this shape file again, it showed...

View Article


exportToJpeg in a different coordinate system?

I've written a python addin toolbar tool to take a screen grab and save it as a georeferenced overlay in a KMZ file for use on newer Garmin GPS units. Our map documents are in projected coordinate...

View Article

Field Calculate in Python Script

Hi, I am trying to use the field calculator in a stand alone python script. I am trying: expression = '(!"infield"!)*2' arcpy.CalculateField_management(inshape,infield,expression,"PYTHON"). I am...

View Article


Cascading Dropdown

Im still fairly new to pyhton scripting in Arcmap and the whole scripting process. I have made a scripting tool that is made to help the user to navigate to an address on a map. what i need to do...

View Article

Threading in a Python Addin tool

So, I put together a Python Addin tool to download aerial photography based on a user defined extent. It's available on GitHub here: https://github.com/RowanGeolab/arcgi...vices_addin.py Now, the tool...

View Article

Changing Column Order with Python Export CSV

If I wanted to change the order of columns and export a shapefiles attribute table to csv is there any way to do that with the following script? (I'm still really new at python sorry) Currently using...

View Article
Browsing all 2485 articles
Browse latest View live