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

ConvertWebMapToMapDocument Python Script With Secure Map Services

I've developed a python script for use in a web application, which works fine for public services, but does not work with secure services. I've setup some code in the script to hopefully handle secure...

View Article


Fixing broken links on multiple mxds

I looked thru the esri sample code and determined that the "replaceDatasource" function may fix broken links. However, I need to modify the script to fix broken links in many mxds. I hoping someone can...

View Article


Updating Custom Metadata Elements using Python automation. Export & Import...

Hi Guys, I have recently been researching the topic of python and metadata. Currently in our organisation we hold a mix of metadata elements from both FGDC and ISO, as well as a few custom elements we...

View Article

new to python...

new to python AND new to arcgis 9.3, coming from mapbasic background. I'm learning some python for scripting in 9.3, and come up with this: import arcgisscripting # create the geoprocessor object gp =...

View Article

10.1 Geodatabase Describe does not work for Measures

I innocently upgraded my 9.3 filegeodatabase to "current" and now Describe does not report the measure values in the describe.Extent object in a python script. It does work from the Interactive Python...

View Article


Clear ArcPy IDLE screen

Does anyone know: How do you clear the IDLE ArcPy screen. Won't work with a screen full of mistakes. Tried general advice from the web about using: import os os.system('cls') #on windows Doesn't work...

View Article

How can I use NZLoad using python or arcpy script?

Hi all, I have CSV file which has millions of feature class record merged with some metadata information which I want to load into Netezza database. I have tried it using insert query but it is very...

View Article

Python Dissolve tool - How to define Statistic type?

I'm trying to dissolve a polygon shapefile using python. I want to dissolve the polygons using the field "COUNTY" AND I want to sum the housing units (field HU00) per County. I wrote this:...

View Article


Ebook download- A Python Primer for ArcGIS

Dear All, Kindly please help me where i can download this Book (A Python Primer for ArcGIS® by Nathan Jennings) i searched in online but couldn't find. i'm going to learn Python and this book is good...

View Article


using a python script to create a custom tool

Greetings, My assignment is to create a custom tool on the tool bar using a python script. All I want to do for now is add a previously created script, set the parameters, and get it to run. - Can I do...

View Article

Python and multiple calls to Hillshade function

Hi Folks, New to these forums, and python. I wish to write a program which aggressively calls the Hillshade function. Specifically, for two important watersheds near Juneau, I want to call this...

View Article

Adding a scale and changing its position

I'm having trouble getting this script to run. I get errors saying line 4-list index out of range, and when I comment out the [0] I get an error saying 'list' object has no attribute...

View Article

env.workspace - how to navigate "up" one folder?

I am familiar with setting the env.workspace parameter in arcpy. That allows me to work within subfolders of the workspace, eg: Code: layer = arcpy.mapping.Layer("Sub\Test.shp") But how do I do the...

View Article


Trying to change elementWidth

Hi I'm using the following code: import arcpy mxd = arcpy.mapping.MapDocument(r"C:\Courtney\TEST.mxd") for elm in arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT"): if elm.name == "author":...

View Article

Complex Attribute Transfer using Spatial Analysis in Python.

Dear GIS professionals I am in need of your professional assistance in completing a hectic job. I've two feature classes named 1)IRI 2)Lanes Lanes represents the lanes of each road and main attribute...

View Article


Image may be NSFW.
Clik here to view.

Running Lake Classification with Python

Hi All, I am going to attempt to write my first script. It is basically a select by attribute/select by location query to classify out some lakes. I have attached the flow chart of the specifications...

View Article

Show Time display on map

Hi, I need to be able to show the time display on the map. I can check the box in the time slider options that says "show time on map display" but I was wondering if there is a script that can perform...

View Article


where clause of my selectlayerbyattribute_management keeps returning error

Refering to ArcGIS 10 Help, I have tried writting my where clause exactly as stated in the help (using quotes, brakets, etc) and I keep getting Error 000358: Invalid expression Failed to execute...

View Article

Split one field into multiple based on a delimiter

I am looking to split one field (BASE) into four based on a delimiter of ^ such as the following: "PT COM 790 W INTER W LINE^B&S RR & S LINES SW LESS ^E200 ^WEST" I want "PT COM 790 W INTER W...

View Article

MultipleRingBuffer_analysis bug

I spent a bunch of time making sure this was reproducible in 10.1 SP1... when I use the NONE option for dissolve option in the arcpy.MultipleRingBuffer_analysis I get the following error: """...

View Article
Browsing all 2485 articles
Browse latest View live