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

Why aren't my rows being inserted into the table?

I am attempting to insertRows into my new table from my existing table. It should be scrolling through the existing table and taking that value and placing it into the new table. Code:     #b. search...

View Article


Batch Open Numerous Stacked Attribute Tables

I'm wondering if anyone has used python or any other tools to open numerous attribute tables simultaneously and automatically stack them as horizontal tabs. In my daily workflow it is very common to...

View Article


Primary/Foreign Key from Relationship Class

I was able to get the relationshipClassNames property to work (thanks Xander!), but did not realize the relationshipClass property did not have a primary and foreign key field. Code:...

View Article

PHP or Python? For web application development

Hi folks, I would like to try web development. I have been researching different languages. Many of them suggested Python and PHP. I know little about PHP. But coming to Python I don't rightly know....

View Article

Help with arcpy.ListDatasets

I am simply trying to create a list of all the features within a geodatabase. It seems easy enough, but here is what happens with my script: Code: >>> import arcpy >>> from arcpy...

View Article


error script with project_management tool

hello guys, I'm using the script for project features that is in the help of arcgis desktop, but I get a generic error 999999 this is the script code HTML Code: import arcpy, os from arcpy import env #...

View Article

Trying to extract individual bands from a multiband raster file.

Hi, I have a bunch of rasters that contain multiple bands. I only want to use a few of the bands from these rasters, but I'm having a hard time extracting them automatically in Python. The only...

View Article

Changing the data source of an annotation layer/joined table in ArcMap with...

Hey everyone; since ESRI is forcing us to go with Direct Connects on SDE, I'm tasked with writing a script that repairs map documents so the layers are connected to their source via direct connection...

View Article


2.7 vs 3.3.3

I am learning python using 2.7 and much of the published materials is using 2.7. Why are we not using 3.3? what is the big difference?

View Article


Python and PyWin on Server 2008

Hi, Trying to get Python and PyWin installed and running on Windows Server 2008(64). Had it all up and running on 32 bit system, and currently have it on 64 Windows machine. Unsuccessful thus far...

View Article

threading vs multiprocessing for concurrent gp tool runs

If I want to run 15 spatial joins at the same time, would it be better to use threading or multiprocessing? I've implemented threading already in a test and it cut 50 minutes (running sequentially)...

View Article

Python Add-In Combobox will not populate

Hi all, I'm trying to create a simple add-in combo box using the new python interface. I have read the ESRI help on creating an add in project (http://resources.arcgis.com/en/help/...0000022000000/) as...

View Article

Image may be NSFW.
Clik here to view.

Script crashes python but works in Model Builder

I recently upgraded to 10.1 SP1. The attached script works as a model in model builder but when I try to run it as a stand alone script or scheduled task it crashes python. The code is exactly how it...

View Article


Table Joins

Hi, i am having some trouble getting a table join to perform correctly in Python. The two files are File GDB tables... i am trying: import arcpy Fawn_Weather_Stations =...

View Article

Export raster attribute table into CSV using Python automation !

Hello, I am learning python scripting. I am trying to export raster attribute table (integer value) in to .CSV file. I can manually export attribute table into .txt file but would take many hours to...

View Article


programmatically add feature class to feature dataset

Hi, We are using ArcGIS 10.0. We have several existing feature classes that we want to add to a feature dataset. Of course you can drag and drop the feature classes in the dataset, but our requirements...

View Article

Problem with ArcPy and datasources containing periods

Hi Im using ArcPy to extract all the datasource from mxd-files. It is working well as long as the paths does not contain periods. Using lyr.dataSource on a path like "C:\Data\Filename.001.shp" only...

View Article


Python Performance Vs Model or Manually

Hi I'm new to ARCGIS and Python and I've written several python scripts to automate some of the regular nightly data extraction. This very simply script takes 2-3 hours to run when I can manually...

View Article

Copy Features to FC w/ established fields

This is a simple process when performed in ArcMap but I'm having trouble getting the solution in Python. For example, in ArcMap you can select features from one FC and copy/paste them to another FC...

View Article

gp.Reclassify_sa (ERROR 010255: String remap must be used with a string field)

I am receiving the following message when executing my python script: ERROR 010255: String remap must be used with a string field. My input raster is floating point and I would like to reclassify it in...

View Article
Browsing all 2485 articles
Browse latest View live