Sublayers Network Analysis not found when unchecking 'display geoprocessing...
Hello, I'm writing a script that calculates routes for +600.000 records by using the 'for'-function. When the route is calculated, it is saved in a general layer, thus summarizing all routes that are...
View ArticleAdd Feature to Feature Class Using Python Scripting
I am a GIS Analyst and I am extremely new to Python scripting. I need to take input from a mouse click in ArcMap and then create a buffer around that point. Creating the buffer is simple, but using the...
View Articleweird issue using geometry objects in python
Hi, I am writing a script in python to generate polygons from lists of coordinates that I have saved in csv files. I have followed the proper method of assigning the coordinates as point objects,...
View ArticleAccessing Data in Remote SDE
I have separate App and DB servers on Azure. I need to run a python script on the App server that accesses an SDE featureclass on the DB server. The python script was written on the DB server so it had...
View ArticleProgira Plan on ArcGIS and Python Scripting
Hi there, I work as a research assistant on a project where I must calculate the range of an antenna. The software used is called Progira Plan which is a plug-in on ArcGIS...
View ArticleExported PDF failing to reflect showClassLabels = False
Hi, I'm having trouble getting my exported .pdf and saved .mxd to show that my labels have been turned off using the LabelClass object. The code works fine when run from the python window in ArcMap and...
View ArticleAlter sequence Add Location arcpy
Hi, I want to know, if is possible create a add location in arcpy associated field "SEQUENCE" in "Stops" a one field in my feature class. Because when I used the Add Location, this not optional field...
View ArticleTry/Except statement inside of For Loop
This script is meant to loop through several records. I a problem arise with processing a record I want the tool to skip that record and loop to the next record. I was working for an error code I was...
View ArticleLabeling with Dates
Hello everyone, I'm trying to label a feature class that has a date field in it. My problem is that I only want to get the mm/dd/yyyy, but when I try to label it through python it will bring up the...
View ArticleSelect by Near - Delete by Date
Hello All, I have some survey data for points that has had the "same" point picked up on different dates. The differences in the locations for the same point vary and there may be more than two points...
View ArticleEdit Extract Data script to work with mosaic layer
Hi I've edited the attached script so that the Server tool Extract Data accepts mosaic layer as an input raster.The script works at version 10.2.1 but will not work at version 10.1 SP1. I need it to...
View Articlemerge or append features classes based on a part of their names
Hi everybody! I've got ONE file geodatabase with about 400 feature classes (FC). Here attached is a part of that .gdb. I need to merge that features (or better append one feature - 00 - to the other)...
View ArticleProgramatically list all feature classes used by a published map service?
Hi all, I'm trying to figure out how to list all features used by a published map service. So "xyz" is published on a map server, I'm wanting to programatically list all the feature classes (in a gdb)...
View Articlepython addin: best practise for persisting custom setting?
Dear, For the development of a Python addin (extension) for ArcMap I would like to manage a user setting which persists over multiple arcMap sessions. I have been exploring several options with an xml...
View ArticleDelete Annotation Class
Is there a way to delete/manipulate annotation classes using arcpy? As far as I can tell there is no geoprocessing tool that will do this. For example, when using the Append Annotation tool, I would...
View ArticleProblem committing edits with arcpy.da.updatecursor
I'm having a whale of a time trying to use the arcpy.da.updatecursor while using an edit session to update the feature data. Here's the problem: I've got a script that is trying to update an...
View ArticleLayer's Display Expression still not supported?
I'm working on a script that creates KMLs. It would be nice if it could set the display expression. After a little digging I came across a post that stated setting a layer's display expression is not...
View ArticleExtract the same Polyline attribute from multiple DWG Files
Hi Listers, From a collection of over 1,000 CAD DWG files I need to extract PolyLine features where each Layer field attribute is the same, in this case it's called AR_WALL_EXT. How would I go about...
View ArticleDate and time calculations
Just wondering if anyone can tell me why my expression is not working to calculate some values in a table? Below the !DateTime! and !Time! are fields in a File geodatabase. Basically I need to combine...
View ArticleHow do you reload a module imported into a Python Toolbox?
Python Gurus, I have downloaded the Spatial Analyst Supplemental Tools which is a Python Toolbox and there appears to be a bug in the Peak tool. I know a little bit of Python and thought I would have a...
View Article