Tutorial: Advanced high-quality web map printing/exporting using arcpy.mapping
Hi guys, I am trying to learn more about publishing webmaps with geoprocessing services. I followed a tutorial to create high-quality webmaps: http://resources.arcgis.com/en/help/...00000mq000000/...
View ArticleBackup creates duplicates
I have created a Geodatabase backup script for my sql geodatabase. Everything runs fine, except for it creates duplicates and adds a 1, 2 ,3 onto the end and i just want it to replace over it. What am...
View ArticleCalculate Left/Right Zone Fields in Road Centerline
I am working on scripting our GIS data update process for our CAD (911 Dispatch) software. The road centerline is geocoded with left and right address ranges, as well as, left and right community, zip,...
View Articleembedding the “code” (*.py) with the “script tool” (*.tbx),
embedding the “code” (*.py) with the “script tool” (*.tbx), I’m wondering if there is a way to keep the “code” (*.py) with the “script tool” ” (*.tbx). It happens very often that the script tool is...
View Articlepoint to raster, i got the error..
Code: ###########Point to Raster # Import arcpy module import arcpy, os from arcpy import env from arcpy.sa import * # Set environment settings arcpy.env.workspace = "C:/py2/extract"...
View Article“Python script tool” for “gravity model” for the distribution of trips...
“Python script tool” for “gravity model” for the distribution of trips generated by zones and attracted by bus stations, I’m looking for a Python script tool that can generate a table (matrix) that...
View ArticleError message with Deleting srow' not defined -- how to fix this?
Not that I haven't worked with my professor on this, but really, this is insane. I simply want to use a script to show the Functional Classifications of roads in a county. I have set up a definition...
View ArticleSelecting related items in Arcmap using python script.
Dear Experts, I have one requirement in arcmap i searched all but no luck..!! see the below screen shot for my explanation clearly,I need to select each "TRANSMEDIA" (Feature Class) related items which...
View ArticleUsing ExportTileCache_management to create tiled packages dynamically
Hi, I have tried to create a service that takes polygon / envelope as a parameter and returns string that contains URL to TiledPackage that is created by the python script but I cant get even prototype...
View ArticleLines of Python above cursor executing before enter is pressed twice
I am new to Python but I have been having an issue with the lines of code in the ArcMap Python window above where I am typing beginning to execute before I have completed everything and pressed enter...
View ArticleError Trapping: ArcHydro LongestFlowPath
I'm looking for some assistance in error trapping. I have 650 watersheds that I need to calculate the Longest Flow Path for. I have incorporated the tool into a much larger model and currently its...
View ArticleHelp with Logging
I am having some issues actually getting my python script to write out to a log file. It is running to the point of the script that says "with open(rapLogFile, 'r') as f:" then I am getting a traceback...
View ArticleHow do I get ToolValidator to limit the acceptable layer types?
I've been writing ToolValidators for a bunch of tools and this one has me stumped, though it seems it shouldn't. I am working in ArcGIS 10.0 so Composite Types are not allowed. I have a tool which...
View ArticleError Handling: Try Exception
I've developed a model within ModelBuilder that utilizes a large number of tools from various toolboxes as well as python scripts. I'm pretty new to Python as well as Programming. The model that I've...
View Articlecustom geoprocessing tool error
Trying to complete a python tutorial that shows how to make custom tools. I run the code below and it still produces an error message stating that "cur" is not defined. I've experimented with the...
View ArticleScript Crashing Python
I'm attempting to use the ArcSDESQLExecute class to run a simple query but when I do it completely crashes Python each time. Below is the simple script I'm testing. Any ideas on what is going on here?...
View ArticleTrying to create a list of strings from rows
I'm trying to create a list of strings from the rows in a table, but I'm only getting the first letter of each string and not the string. Code: import arcpy arcpy.env.workspace =...
View ArticleMemory issues, ideas?
Hello all, I have written script based on input from a csv that contains 4 lat, lon points per record. It works fine for quite a few features but attempting to run it over 100,000 or so it runs out of...
View ArticleProgrammatically return Feature Class file size and date modified
There doesn't appear to be a function in arcpy to return the file size of a feature class or it's date modified timestamp. Anyone have any idea how to do this? I know there is a property somewhere...
View Articleneed help with UpdateCursor and .updateRow(row)!!!
Hi all, I am studying python scripting for geoprocessing and am having trouble with a update cursor loop. "Property_Layer" is a feature layer and I want to narrow the arcpy.UpdateCursor to empty...
View Article