ArcGIS Create List of Unique Table Values using Data Access Module A while back I posted a slightly more verbose solution for this. [https://joelmccune.com/2012/02/14/create-list-of-unique-table-values-using-python-for-arcgis-analysis/] Since then two things have changed. First, I have used Python a LOT more and understand how to use sets, lists and functions a little better. Second, the data access module
Python Toolbox Toolsets in Python Toolboxes Creating toolsets within ArcGIS Python Toolboxes is surprisingly simple, but unfortunately somewhat difficult to locate in the documentation. Hopefully this will make it a little easier. A tool's membership in a toolset is determined by category property of the tool class. Implementing this looks like the following in
ArcMap Add a True North Arrow to ArcMap Page Layout This has, for quite some time, been a request of clients in classes. This is a great tip to be aware of. Until seeing this today, I was not aware this had been included in the software either. Add a True North Arrow to Your ArcMap Page Layout | ArcWatch [http:
iterate Iterate and Assign Object Values from XML in Python This drove me crazy for the better part of a couple of hours. I had an object defined in Python. Each one of the variables created in the constructor corresponded to an xml tag I needed to search for, and if found, populate the object variable with the contents in
ArcGIS Lessons Learned and Ideas for Python Toolbox Coding Note: A colleague asked for a ready to run PyScripter template implementing these suggestions. This template can now be found on GitHub at: https://github.com/knu2xs/python-toolbox-template. Instructions for using PyScripter to create ArcGIS Python Toolboxes can be found in a previous blog posting [https://joelmccune.com/2013/03/
ArcGIS SDE Workspace Creation Toolbox As an instructor teaching ArcGIS Server classes, I frequently have the need to quickly set up new enterprise geodatabases for teaching demonstrations. To streamline this process, I recently created an ArcGIS Python Toolbox with three tools and have made it available on GitHub. To streamline the process even more, there
Python Add Module Directories for a Single Python Script Sometimes it can be useful to have a Python script load modules from a different location than the normal installed library locations. Fortunately this can be accomplished by accessing the system path property. The path property of the system module is nothing more than a list of directory locations Python
ArcGIS Desktop Use Modulus to Identify Layers Divisible by a Number [http://res.cloudinary.com/joelmccune-com/image/upload/v1408383827/startContours_yhfvvz.png] Recently I had a need to filter features in a layer by a specific numeric value in ArcGIS Desktop. Specifically, I created contour lines at one foot intervals, and needed to display the 10 foot contour lines with a
ArcGIS Set Up PyScripter to Create ArcGIS Python Toolboxes For the last year or so, my Python IDE of choice has been PyScripter. Recently I have started to create ArcGIS Python Toolboxes. PyScripter is still my editor of choice for this task...with a bit of customization. This requires two steps, adding the unique file extension (pyt) to the
PyScripter Modify the PyScripter Default Template For Python scripting I have come to rely on PyScripter as my editor of choice. With code assist and an interactive interpreter built right into the same dialog, it makes putting together scripts much easier. [http://res.cloudinary.com/joelmccune-com/image/upload/v1408383866/pyscripterTemplateMenu_xejdgg.png] PyScripter includes another nice
API ArcGIS API for JavaScript Resource Page Sometimes I work with it more and sometimes less. For the last few months I have been focusing on other things. As a result, I have not been paying as much attention to the updates to the Esri web API's. This morning though, I went to see about
data collection Field Data Collection Kit Although I remember learning how to read, I cannot remember not knowing how to interpret a topographic map. No matter where we happened to be wandering around at the time, my dad always had a USGS topo of the area. The plethora of long ago abandoned and overgrown logging roads
code sample Esri on GitHub There are quite a few code samples available from Esri, but they are somewhat scattered around the Esri Resource Center. Now Esri is starting to share many of these resources on GitHub where you can access these resources. If you are familiar with any of the ArcGIS for specific industry
ArcGIS Resources Introducing the Spatial Analyst Supplemental tools | ArcGIS Resources The Esri development team has released a supplemental package for Spatial Analyst. This is released as a geoprocessing package (gpk) and includes the following tools: * Create Dendrogram tool * Draw Signatures tool * Filled Contours tool * Maximum Upstream Elevation tool * Peak tool * Viewshed Along Path tool Esri Blog Posting:Introducing the Spatial
ArcGIS Create Custom GPX to Features Tool for Garmin Data Collection 26 Jan 2013 Update:The developer who maintains this tool discovered this post last week, got in touch and asked for a sample GPX file. He implemented a fix to recognize the <cmt> tag. Look for the <cmt> tag to be automatically imported by the GPX
ArcGIS for Desktop Use PyScripter to Edit ArcGIS Python Scripts It is possible to set up any text editor to be the default editor in ArcGIS. This way, when choosing Edit from the context menu, your code editor of choice appears for you to edit your script. Personally, my preference is to use PyScripter, an open source Python IDE. It
ArcGIS Download Raster Tiles from an Image Service in ArcMap Image services created from mosaic datasets can be set up to enable downloading of individual tiles through client applications including ArcMap, web mapping applications and custom ArcGIS Runtime applications. In ArcMap individual tiles can be downloaded from this image service. This can be used to make available data covering a
ArcGIS Publish a Cached Map to ArcGIS.com Without Burning Credits Publishing a map to ArcGIS.com, typically it is preferable to cache the map for faster rendering and performance. However, the larger the spatial extent, the more credits will be used to create the cache. Recently a solution to this has been created. ArcGIS.com can now publish tile packages
ArcGIS Create Enterprise Geodatabase from XML Workspace document Note: I have updated this toolbox to include more functionality, ported it to a Python Toolbox, and created a GitHub repository [https://github.com/knu2xs/sde-workspace-creation-toolbox] for it. Teaching classes frequently necessitates quickly creating and setting up enterprise geodatabases using ArcGIS SDE technology. To make my life easier, I keep
Defeating the Cleats - Recycling Road Bike Shoes My wife Gina and I, we have almost identical inseam and torso lengths. We are so close to where I can jump on any of her bikes and not even have to move the seat. Everything is in perfect proportion. Given she is a complete bike snob, this works out
Use GIS to Figure Out Where To Go Paddling Although the impending hurricane has huge potential to wreck havoc, for those of us who like to paddle whitewater rivers, big rain events such as these have a bit of a silver lining. The game always has been to figure out where the rivers are coming up and just how
12.04 Install Webmin on Ubuntu 12.04 Server Playing with Linux Ubuntu servers both as virtual machines on ESXi at home and as Amazon EC2 instances requires some administration. Since I have a hard time remembering all the commands I frequently need to use, I like to have Webmin installed to make the administration process much easier. Thankfully,
Bank of America Federal Prosecutors Sue Bank of America Over Mortgage Program - NYTimes.com Wow, this should prove interesting to see how it plays out and what effects it has on a multitude of things. Federal Prosecutors Sue Bank of America Over Mortgage Program - NYTimes.com [http://dealbook.nytimes.com/2012/10/24/federal-prosecutors-sue-bank-of-america-over-mortgage-program/] .
Geodata ArcGIS Can Now Rename Fields Although I have not investigated which release, 10.1 or 10.1 Service Pack 1, this was implemented in, it is good to see this frequent request by students in class has been implemented. True, it is a bit on the geeky side. However, I am a geek and I
development Getting a Harvard Education One of these days I really do need to learn how to program. Most of the things I want to do with computers at this juncture, they just are not even possible, or would be immensely easier if I had some sort of programming background. There is a university here