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

"arcpy module does not exist"

Quick background of the hardware and software I'm using: OS: Windows 7 64-bit Arc Info 10.0 IDE: Wingware Python IDE 4.1.3 Python 2.6 (installed with ArcGIS) AND 2.7 are installed on my machine I am...

View Article


Python add-ins: Event listeners can cause problems

I would not normally start an edit session programmatically while listening for an onCreateFeature event, but this problem was brought to my attention and I was able to duplicate it. If I have a Python...

View Article


Image may be NSFW.
Clik here to view.

Address Point Labeling Script

The goal of this project is to rotate address point labels (house number specifically) to be perpendicular to the street to which they belong (purely by street name comparison thus far). Inputs are an...

View Article

SPEED: da.UpdateCursor vs. field calculation?

I need to add 12 integers together for 1.5 billion points. Would it be faster to do in a da.UpdateCursor or should I just use the standard field calculator?

View Article

Time-Driven Phyton Script

Hi, Does anybody know a script in phyton which automatically runs a model, after a pre-defined period i.e. 5 Mins, 10 Mins etc. Thanks Jun

View Article


automated symbology for many layers

HI THERE i have to szmbolyse a lot of rasterdatasets the same way. as I allready read, it should be possible to use arcpy.mapper i tried it to create a iteration< to get all rasters with the name...

View Article

Using a Variable in a Search Cursor with Python

Ok, so I have been having a problem setting up a search cursor with python that uses a variable as the desired value. It seems that I am missing an operator, however, I am lost as to what operator I am...

View Article

Image may be NSFW.
Clik here to view.

Graph, changing item names in legend

I'm having python produce a multi-series graph. How do you change the series name in the legend, the default being Vertical Bar, Vertical Bar1, Vertical Bar2.... Thank you for the help! Code:...

View Article


arcpy export pdf not all labels displaying

I have a python script that updates an xy layer event in a mxd updating point locations. It also updates labels for this new xy layer event. It then exports the mxd to pdf. I have noticed that only my...

View Article


Cumulative Sum by year?

Hello, I have a table that is something like: Object Year Acres 1 1980 5 2 1979 3 3 1978 2 4 1980 8 5 1979 2 6 1976 6 I would like to use python to create a cumulative sum so that I end up with a table...

View Article

Setting Parameter Data Type/Properties

I have a script which I've added to a toolbox in ArcGIS 10.0. The script asks the user for a geodatabase (I'm creating and storing rasters from a NetCDF file) and either uses an existing geodatabase or...

View Article

If-then statement/true-false condition

I'm having a problem with my second If-then statement. It seems like it should be a simple fix, but I'm new to coding so I'm struggling to figure out why I have my first and second If-then statements...

View Article

Invalid Expression Error

I am trying to write a script that runs a select by location then a subset selection of select by attribute but I keep getting an invalid expression error. The last where clause is to selected any...

View Article


Problem with Intersect_analysis

Hello, I have a script that is to geocode addresses from a database, intersect the results with three boundary files and do a tabletotable conversion on the results. Below is the intersect statement I...

View Article

str object has no attribute append

I am trying to run an array where it loops through my "Cont_Buff" layer selects the first record, then selects all the culverts from the "Culvert_subset" layer that fall within that first record. Then...

View Article


Assign Z value from DEM to line ends

PLEASE HELP URGENT - Is there anyone at all who can help with this? I wrote a script based on the Extract Value To Points tool but it doesn't work properly. I have a simplified line shapefile and I...

View Article

How to add an image to an existing data frame using Python?

This is the first time I am using Python on my own, and I have searched for this answer for a few hours with no luck. I am wanting to take a .JPG image and put it in an existing data frame. The image...

View Article


Refresh Active View Automatically

I am trying to work out how to have the arcmap active view refresh every few minutes or so automatically. This is so I can track the movement of some ships. At this stage it is to prove a concept. I...

View Article

Problem Writing Attributes w/ UpdateCursor

Hello, I have two feature classes with features snapped together. In one area I might have 3 points from feature class A, and 3 points snapped to those points 1:1 from feature class B. The points from...

View Article

arcpy.mapping.AnalyzeForSD(sddraft) - Missing warnings

Hi, I have a problem with the arcpy.mapping.AnalyzeForSD() function. I'm trying to automate everything and is in need to get all the warnings/messages from the mxd analyze. Somehow i dont manage to get...

View Article
Browsing all 2485 articles
Browse latest View live