.shp labels continued to .kmz in "For" Loop
Pretty new at working with python and am Stuck...I have a for Loop that looks in a folder and, based on a criteria (Homes valued over 500k), creates .kmz's with symbology for each of the .shp files in...
View ArticleGetting ESRI's python libraries on a mac
Hi there. This may be a stupid question but figured I'd ask as it would make my life 1000x easier. I'm a GIS guy, turned mobile/web GIS developer. I do most of my work using objective C (iOS...
View ArticleDescribe workspace noodle scratcher
Here's a funny one. I've got a python script that runs the arcpy.Describe method on an sde connection file. When I run the script from the command line, it runs fine (script is attached). However, when...
View ArticleTroubles Importing XTools Pro Tools In Python
Okay, I have tried a few options based upon what I could find online, however I am still getting errors when I try to import and run an XTools Pro tool in python. Everything works fine when I run it as...
View ArticleSQL expression to python expression
Hi I have a SQL expression that I use in Make Feature Layer in Model Builder ("HOSPITAL" = '% HOSPITALNAME%'). The expression makes a selection in a OD Cost Matrix that a patient is patient only at one...
View Articledata source SQL Server Express databases
I need to update about 25 mxd's layers data source. The layers old data source is an SDE workspace, but now have moved to a SQL Server Express databases. In the help They indicate that i have to a...
View ArticleHow can i use ' symbol in a select set
I want to select all the names with the ' character using a select set query but I've been getting the error message below; Code: arcpy.SelectLayerByAttribute_management("GISMainFabric_Parcels",...
View ArticleRunning a model from python script to use in Task Scheduler
Using examples from http://blogs.esri.com/esri/arcgis/20...portmodeltopy/ and http://joelmccune.com/2011/05/05/run...heduled-tasks/ and posts from the forums here, I'm trying to run a model from...
View ArticleUpdateLayer/AddLayer lose join properties, field map (.lyr with arcServer souce)
Hello, I will try to be brief and give all the background - skip down to the bold *** to see the crux of the issue... I am running Arc 10.2 Standard License on a WinServer2008R2Standard sp1 os,...
View ArticleSelect Feature Classes from a Geodatabase, based on values within a field
I need some assistance in getting started with the following python script, that I would like to insert into a model (ModelBuilder) that I'm currently buidling. I’ve got a table that I’ve generated...
View Articleusing update cursor from python script
Hi I am trying to update a field from File geodatabase using update cursor using where clause. but the search string has quote. I tried all different way to use where clause but did not work. I really...
View ArticleArcpy Calculate Field error
Hi all, I have a simple script that adds a field to a set of feature classes Code: for fc in fcList: arcpy.AddField_management(fc,Source,FieldType2,fieldLength) arcpy.AddMessage("Fields...
View ArticleESRI Pyhton Addin Assistant
Good Morning I created an Addin using the Addin Assistant using a python script and every time I run the script via the addin I created, ArcGIS crashes. I can reproduce it on another computer with the...
View Articleimport arcpy Fail!
I'm a python beginner. When I try to import arcpy in pythonwin I get this: >>> import arcpy Traceback (most recent call last): File "<interactive input>", line 1, in <module>...
View ArticleUpdating fields from another table
Here is my situation. I have a featureclass that has a few attribute fields that I need to update from an Access database. I have an OLE Database connection set up, but I also have a copy of the...
View ArticleSet Address Locator "Properties" using arcpy
Hello, I am trying to script an address locator using arcpy (10.2) The issue I am having is that I need to set the "Geocoding Option" of "Match With No Zones" to "No" for my geocoding to run...
View ArticleScripting "Create Geometric Network" Input feature class problem
I'm trying to write a script that will ultimately create a large number of geometric networks for a stream basin modeling project. The script will run through a list of geodatabases, and in each gdb it...
View ArticleError 000212: Cannot create XY event source
I had the Python script below running on my old machine (Windows XP with ArcGIS 10). When I run it on my new machine (Windows7 with ArcGIS 10.1), it throws up the 000212 ERROR. It also says: "File...
View ArticleRe: Need "Service Properties" for mapping.TableView
Jeffrey: I have a python script that I started to create in ArcMap v10.0 where I resource SDE connections. In v10.0 I just flagged standalone SDE tables as I was unable to resource them with a python...
View ArticleReading Extension data from MXD
Is there a way to read extension data stored in the MXD in Python? We have a third party extension to ArcGIS. This extension stores information in the MXD according to Esri guidelines using the...
View Article