Beginner having trouble importing arcpy
Hey everybody, I am looking at python for my first time ever, trying to follow a tutorial to create a shapefile for each unique value in my attribute table for a specific field. The tutorial suggests I...
View ArticleUpdate\change features data source.
I have some layers that i need to change the data source for. The current script i have gives me the following error. I don't know why. if anyone would be kind to help me out please? thanks. Code:...
View Articleerror in arcpy sourcecode?
Trying to create any Geometry object results in this message: Traceback (most recent call last): File "C:\Data\Daten\Untersuchungsgebiete\FeatureClass ertstellen.py", line 15, in <module>...
View ArticleArea Solar Radiation from Python script - error
Hello, I am attempting to execute Area Solar Radiation in a stand-alone python script (shown below). The basis for the script was provided in the ESRI tool help. I made a few adjustments to this...
View Article.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 Article