Pulling Feature Layer from Group Layer and apply Symbology?
I'm trying to use the symbology from a layer file, to apply to a layer in my map via python. My layer file is a group layer file. The layer in the map is not a grouped layer file. When I do this: Code:...
View ArticleAdd a topology and its associated layers to a map document with a python script
I would like to add a topology and its associated layers to a map document with a python script (the script does many things and at the end I want it to load the layers to the mxd). When I try to use...
View ArticleCombobox Issue: When editable=false and selection entered, selection disappears
I'm using ArcGIS 10.2.1 and have written an Arcpy addin with multiple comboboxes. I need most of my comboboxes to be non-editable. However, when I set self.editable = false and a selection is made I...
View ArticleRunning x64 bit geoprocessing Python in Python IDLE 2.7.6 x64 error
I am trying to set the Python IDLE 2.7.6 x64 to run the arcpy module from ArcGIS x64 bit geoprocessing (10.2.2). I copied the file DTBGGP64.pth from C:\Python27\ArcGISx6410.2\Lib\site-packages to...
View ArticleManage mark draw in AutoCAD
Dear Sir Can you pl explain how to manage Following type of mark (See attachment) in geodatabase that draw in AutoCAD drawing Thanks Padmasiri Attached Thumbnails Â
View Articlefind number of overlaps between segments
Hi I have two files File1 68 310 File2 61 64 159 162 169 172 113 116 252 255 266 269 271 274 290 293 could you please help me to calculate overlap of region from file1 and file2 Thanks in advance Jyothi
View ArticleBatch Raster Clipping
Hi ArcGIS Users, Good Day! I have been searching for answers in the web but haven't find any plausible answers yet. What I want to do is automate the clipping of my raster files using a set of...
View ArticlePython oracle connection script works in IDLE but not in a toolbox in arcgis
The python code bellow works fine running in IDLE. ====================================================== #!/usr/bin/python import cx_Oracle connstr='scott/tiger' connection =...
View ArticleSearch Cursor against date field and using date with python
Good Afternoon ArcPy Wizards! I would love some input on my code. I am trying to capture the earliest positive in a grid and then count the negative sample that were required before the positive. The...
View ArticleServer Admin Toolkit Question...
In the Server Admin Toolkit, using agsAdmin.exe I cannot figure out how to properly reference a service that resides inside a folder for start/stop operation. This was possible using AGSSOM.exe. Is it...
View ArticleCustom Search tool with Python Add-Ins
I have a search toolbar created in a different "GIS" software which runs via straight SQL. I am re-creating this tool in ArcGIS Desktop 10.2 with Python Add-Ins. The toolbar contains a toolpalette with...
View ArticleIssues Reading a table from Geodatabase
Hi, I have scripted a process to read a CSV file into a file geodatabase. Then, I want to read this imported file and work on it by adding new fields and calculating values. However, while using the...
View ArticleDetermine if generated row and column numbers exist in RasterToNumPyArray object
I'm using RasterToNumPyArray to convert rasters to numpy arrays, and then iterating using: for [i, j], theVal in numpy.ndenumerate(my_raster): I want to be able to check that additions to either i or j...
View ArticleSelect polygons by width
Hello, I was wondering if anyone would have any idea on how to solve my problem? I have polygon LandUse layer (stored in geodatabase) and I need automatically select all polygons whose width is less...
View ArticleField Definitions
I am looking for a tool that will list field names and definitions in a feature class and output the values to a spreadsheet. It's easy to get the names with the .name attribute but to get field...
View Articleflipping lines with ArcView (Basic)
Hi there. So I used to have a VB script that could flip multiple selected lines, using an ArcView licence. Of course, now we can do this with an ArcEditor (Standard) licence via Python but, alas, I...
View ArticlePython Add-In GPToolDialog modal dialog box
I am calling a python tool (i.e. within a python toolbox) using the pythonaddins.GPToolDialog() function. The call to the to tool is made from within a python add-in button tool. The python tool dialog...
View Articlearcpy.da.UpdateCursor "SHAPE@" error when updating M-values
When updating M-values in a feature class using the data access module, I encounter the error below when I run the following code on a selected segment in ArcMap using a Python Add-In call to a Python...
View ArticlePython script to calculate the area (!shape.area!),
Python script to calculate the area (!shape.area!), I wanted to calculate the are in a particular field. I used the script shown in the screenshot below (!shape.area!): Attachment 34143 The ArcGIS...
View ArticleUse Arcpy to manipulate Representation Legend Properties
I have a Unique Values layer file (.lyr) that has a couple dozen unique value symbols in it. I have been working for a while to get a python script tool to apply this symbology to an ouput from the...
View Article