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

Simple Merge of Shapefiles in a single folder

Hello, I am very new to Python scripting and apparently not very good at it. I have a single folder with many shapefiles that I need to merge into a single shapefile. They are in the same projection...

View Article


List Toolbox then Run

I'm trying to figure out how to call a tool from another tool in python. In my python script of got something similar to the code below to get a list of all tools and I basically want the script to run...

View Article


make raster layer using each band separately (ArcGIS 10.0)

Hello, I am trying to take several classifications of the same image and automate the symbology so that I can visually inspect before going any further. This might not even be the best way to do it,...

View Article

Select features using onRectangle

I found an interesting function to use in an add-in called onRectangle. I would like to use this to build a feature set and get values from fields. Code: def __init__(self):     self.enabled = True...

View Article

If feature class has the same name as feature class in another database

I have two databases (Staging and Prod) each containing the same feature classes. I want to append the data from each individual feature class in the staging.gdb to its matching feature class in the...

View Article


Spatial Join: Disk vs In Memory

I have a script setup where I do a Spatial Join. I recently upgraded to 10.1. I wrote it in 10.0 and the spatial join worked fine when I ran it using feature classes from the 'in_memory' workspace....

View Article

Anyone know how to replace degree symbol?

For some reason I am unable to replace the Degree symbol with the field calculator. I'm guessing it has something to do with the formatting of the degree symbol. This does not work Code:...

View Article

Intersect issue in an iterative python script tool

Hello, I have a script tool (10.0 SP5, Python 2.6) that intersects a fishnet polygon and a line feature class. The script uses an iterative loop to process individual single-part area of interest (i.e....

View Article


Mysterious rounding of seconds problem.

Hello All, I'm experiencing a strange "rounding of seconds" problem during some date conversions and was curious to know if anyone had any theories as to what may be happening. Any suggestions would...

View Article


Need to sort MDBs based on how many featureclasses they contain

Hello. I have a script that takes any number of MDBs and mashes them together into a Combined MDB. What i am trying to accomplish is to have it run in descending order from Most -> Least number of...

View Article

Image may be NSFW.
Clik here to view.

label related table - in one staked label

Hello all, I am hoping someone who knows python can figure this out. I have a similar posting here http://forums.arcgis.com/threads/688...d-table-labels . There was an old arcscripts that worked at 9.3...

View Article

Image may be NSFW.
Clik here to view.

determining maximum cell from a Numpy array

hello i have a large numpy array and i would like to write a python script for assigning zero (0) to every maximum cell in every four adjacent cells. For example, see figure below: Attachment 19775 Any...

View Article

Image may be NSFW.
Clik here to view.

Tyring to modify MXD symbology with Python - Is it possible?

Hello, everyone. I've got a script that downloads a large number of shapefiles from an FTP site. Those shapefiles are then imported into a FileGeodatabase FeatureClass. I need to use a python script to...

View Article


GridIndexFeatures - syntax error

Hi all, I am trying to create a grid with this GridIndexFeatures tool. I keep getting a syntax error on the parameter for the "polygonWidth" and "polygonHeight". I'm doing this in IDLE: here is what I...

View Article

Select from currently loaded layers in map

I have a script that creates a buffer and I added it to a toolbox. When the script is ran and user goes to select the feature class to buffer there is no drop down to select from the currently loaded...

View Article


concatenation of fields using python

Hi Python Guru's I need help figuring out how to populate an attribute field using python I need to create a label field that is a concatenation of 4 fields in my dataset; Quad, Township, Range and...

View Article

Read CAD XDATA via Python

Is it possible to read Autocad's XDATA via Python? H

View Article


Cannot add/remove attachments in python when table/featureclass is versioned

Hello all, Has anyone run into problems when using the arcpy.AddAttachments_management() function with tables that have been registered as versioned? I can't seem to successfully do it...even though...

View Article

Zooming to selected features.

Hi all, I have been told that in ArcGIS 10 we can now script display behaviors. I'm very new to scripting and trying to write a simple script that will zoom to a selected feature. The zoom would apply...

View Article

composite bands cannot open input dataset

Hello, I have been trying to composite 3 bands and keep getting this error message: ExecuteError: ERROR 000271: Cannot open the input datasets Failed to execute (CompositeBands). I have run several...

View Article
Browsing all 2485 articles
Browse latest View live