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
ArcGIS Learning OpenSuse and Yast2...slowly In case it is not already obvious...yes, I work for Esri and I like to tinker with as much of the software as possible. Most recently this has included trying to get the database (SDE technology) and application server (ArcGIS for Server) running on Linux virtual machines. This has
ESXi Installing ESXi from a USB thumb drive When building my ESXi server, I really did not have much use for a DVD drive in it...except for installing the operating system. Although installing a DVD drive and removing it later was an option, it just seemed like there should be an easier solution. There is. A USB
ESXi The 64-bit ESXi Project ArcGIS for Server is now 64 bit or nothing. My $250 Dell outlet desktop just was not cutting it anymore to push ESXi, at least for this purpose. ESXi version five simply would not install onto the Dell. A change was needed. I upgraded the server and made the Dell
Selway 2012 Pictures Last night I stayed up trying to get these pictures in some semblance of organization. There still are way too many, but I really did not have the time to sort out the best. The entire gallery is after the break. Just click on any of the thumbnails to begin
ArcGIS Desktop ArcGIS for Desktop 10.1 Add-In with Custom Toolbox Note: An example and additional explanation of this is available on ArcGIS.com [http://www.arcgis.com/home/item.html?id=22eaf8fc4ba84adda99220dc2a6c7453]. ArcGIS for Desktop 10.1 introduces the capability to create custom Add-Ins using Python. Unfortunately this new functionality does not include the capability to create a custom dialog
NC Amendment One - Shades of Gray Following the primary election and vote on amendment one in North Carolina, I saw a huge number of hastily created maps passed around online depicting the counties for or against amendment one. These maps however, failed to tell a very complete story. The picture was painted very black and white.