Arcpy Script as Geoprocessing service
Greetings all, Please tell me you can use a arcpy script as a geoprocessing service... I was under the understanding that this could be done, and now that I am actually try to do it, I am not sure this...
View ArticleReg : Getting Difference of 2 polygons
Hello All , I have 200, 000 features in Polygon_A Feature Class . Another Feature class Polygon_B having 210,000 . Whenever I run Intersect Tool I run into Topology Error . I have run Check Geometry on...
View ArticleIterate and add rasters from multiple folders
Hello, I am trying to add raster files from four folders together (i.e. file1 from folder1 + file1 from folder2 +file1 from folder3 + file1 from folder4). This would be easy enough to do with the...
View ArticleForce script tool featureset default location to use in_memory workspace?
I have a script tool (not an add-in) that gets raw interactive point input from users using a parameter with a 'featureset' data type. Technically it works, but with one pretty major performance issue:...
View ArticleExporting Landscape and portrait maps using arpy.datadrivenpages
Dear GIS community, I am very much a Python N00b so am in need to your expertise. Scenario: I am using data driven pages to export to PDF. Each PDF focuses on a single polygon (in this case a postal...
View ArticleRecursive Feature Compare
I have a requirement to compare two geodatabases to ensure that the copy procedure has worked correctly. The Feature Compare tool gives me the basis for the Python script and then I am looping using:...
View ArticleHide Unselected Features
I have used the following codes to delete the selected features: Code: if int(arcpy.GetCount_management(layer).getOutput(0)) > 0:Â Â Â Â Â Â Â Â Â Â Â arcpy.DeleteFeatures_management(layer) I have...
View ArticleCounting Features in a Feature Class with the Field Calculator using Python
Hi experts, first things first: I'm a Python-noob, so keep the answers as simple as possible ;-) My problem is: I have a Shapefile that represents Drill-Core-Data. The column "UK_GES" represents the...
View ArticleInvalid Topology error when running feature to line in a script tool.
I am using Arc 10.1 advanced and trying to run a script that checks for slivers and dangles in forrestry data. When i run the script I get an error message that says invalid topology. I think the...
View ArticleMake XY Event Layer in Python Crashes But Not in Model Builder
Hi, I am trying to automate a table (in geodatabase) with lat longs and convert it into a feature class. I first created the steps in model builder where it works fine. But when I export out into...
View ArticleSet Vertical Datum using Arcpy
Hello , Is it possible to set Z coordinate System using python ? I am creating the Spatial Reference object like below sp =...
View ArticleArcGIS 10.1:Using XYZ coordinates to do MakeXYlayer-Runtime Error 000732. Why?
Hi all, I have the following Excel .xls file: ID Pt_ID X Y Z 1 BH1 -76.301725 39.392986 0.1 2 BH2 -76.300981 39.392928 0.2 3 BH3 -76.301694 39.392611 0.3 . ..... .............. ............ .... 9 BH9...
View Articlepython UI using GTK+ and GLade?
Has anyone used GTK+ and Glade for building a python user interface for use in ArcGIS? or a standalone front-end importing arcpy? http://www.gtk.org/ http://glade.gnome.org/
View Articlecheck to see if workspace is being edited
Hello, just a quick thing that I'd really like to add to a ToolValidator script: Is there a way to see if a geodatabase that I have as an input parameter is currently being edited? I'm running Python...
View Articleget_ParameterInfo issues
Hi, I'm receiving blank error windows entitled "Testing get_ParameterInfo" after viewing the Validation tab in the Properties window for Python scripts. When inside the script tool window, the first...
View ArticleIf then statement for python
Hi Everyone, I think I am not understanding the logic, but what I want to do is make an if then statement. I want to create a file and then create another file. The code creates the first file, but...
View ArticleRun Dialogue Box
I am currently attempting to run a very large model using the model builder package in ArcGIS. It has a mix of Python scripts and toolboxes that are running in iteration. I left the model to run...
View ArticleSelect layer by attribute does not work in standalone script, does in arcmap
I'm having trouble with the SelectLayerByAttribute_management() tool. Although it produces no errors or whatsoever, I get an empty selection. This is the code I am using in my standalone script. I've...
View ArticleExport features to new shapefile
I am trying to write a small script to export each feature in a featureclass to a new shapefile. When I run it, all I see is red (errors). Any help would be greatly appreciated. Code: import arcpy from...
View Articlespecify spatial reference for ExportToPNG
Hi, We're using ExportToPNG() to export an image from a data frame, but we're also separately and "manually" writing out coordinates to HTML image maps. (By "manually", I mean we're not using a builtin...
View Article