Overlapping polygons to non-overlapping polygons
This is in some way related to my last post about collapsing geometry using da.InsertCursor. That was solved by input from Chris Fox, thanks again. My problem was a whole bunch of very badly captured...
View ArticleScript works in ArcMap, won't publish to ArcServer
Hi, I wrote a python script, wrapped it in ModelBuilder and tried to publish it. It just gets stuck in a loop, forcing me to cancel the publish. It passed the analysis and all the data used in it is in...
View Articlearcpy methods / functions and SDE connections
I have a stand alone python script that runs under arcgis server using the arcpy interface. Basically this script contains a primary loop where it: 1. Selects first/next U.S. State 2. Compiles a list...
View ArticleBreaking Out a Time Enabled Layer into sub-layers organized by Month Year
Thought I'd post some code I just wrote. Situation is I have a master index feature class showing footprints of imagery collects over the last 8 years. I'm going to publish these as a pdf document, but...
View Articlearcpy.da.updatecursor with list
I'm using the arcpy.da module with the updatecursor class to populate specific values for specific fields in several hundred shapefiles. I'm specifiying the fields of interest for the updatecursor in a...
View ArticlePrinting web maps - rectangular PictureMarkerSymbol graphics incorrectly...
Hello all, I think this is a Python issue, because I believe it occurs at the point when the arcpy.mapping.ConvertWebMapToMapDocument() function is used to translate Web_Map_as_JSON data submitted by...
View ArticleUsing Wildcard to extract values with Field Calculator?
I'm trying to extract a portion of an existing field in an attribute table to a new field using Field Calculator and have been running into some difficulties. It seems like there must be a way to do...
View ArticleTableToGeodatabase using MySQL input
I am trying to convert a MySQL table to a personal geodatabase table using TableToGeodatabase and MySQLdb (to connect to the db). I'm able to successfully connect to the database and query it, I am...
View ArticleCreating a Feature Layer for each Record in a Feature Class
I’m converting a geoprocessing Python v2.5 script we used for years with ArcGIS 9.3.1 into a v2.7.2 to work with ArcGIS 10.1. The script is pretty long, and basically just runs relatively simple...
View ArticleSimple question
Hi everyone, I'm working with a large dataset, and I want to do something simple, but it's been a long time since I've used code. I'm familiar with VB and somewhat with python. I have full road...
View ArticleMultiple locking issue with 10.1
I'm running ArcGIS Server 10.1 SP1 and Desktop 10.1 SP1 and have been getting multiple locking errors when coping features from an 9.3.1 SDE database to a file geodatabase. This occurs when doing a...
View ArticleTest for Null values Field Calculator
Ok, I just finished reading a bunch of threads on this, but need to double check this issue. I want to put something like this Code: def i(x): if x is None: return "Used to be Null" else:...
View ArticleIs there a way to open an Attribute Table programatically in ArcMap using...
Is there an arcpy command that can will OPEN and display an attribute table of a given feature class (programatically)? I'm using arcpy.mapping.UpdateLayer to change the symbology and field visibility,...
View Articleparameter dependencies fc to field python toolbox
so I have been looking but I can not seem to find how to populate a input field parameter that is based on the fc parameter. please note the dependence for p2. Code: import arcpy class Toolbox(object):...
View ArticleSelectLayerByLocation returning incorrect
Have been trying for some time now to create a script to extract the polygons whithin a extent, but unable to get the same result as when i use the UI manual method. Maybe someone can see the fault of...
View ArticleTool Validator edit - How to change what editor is used ?
Hi When editing a tool validator class I do as described in the help: " ... to program a ToolValidator class, right-click your tool, click Properties, click the Validation tab, then click Edit. This...
View ArticleMakeXYEventLayer_management
Hi, I am trying to create a feature class from a CSV file using the MakeXYEventLayer_management function. The function works correctly the very first time the script is run but after the script has run...
View ArticleLayer.workspacePath returns wrong value
Hi, I am using ArcGIS for Desktop 10.1 SP1 I have created a database connection with name Test1 and stored in a directory as follows: C:\Temp\Test1.sde I right clicked the connection file in ArcCatalog...
View ArticleQuery Oracle Table -- Need advice
Task: query a very large Oracle table, build an XY Event layer, apply symbology with .lyr file, create GP service, and output to web app using web API. I have this running using ModelBuilder at AGS v10...
View ArticleLabeling expression
Hi, I have an SQL Query that determines if the label is on or off ("area" >= 20000) ! Also I have a conditioning label expression for the field i want to display. I was wondering if it's possible to...
View Article