Tag Archives: python

Heard of Conda? Wondering how it relates to using Python in ArcGIS Pro (version 1.3)?

apro1-3After installing ArcGIS Pro 1.3, you may notice a few changes. The scope of this blog will detail Conda – what it is? why this change occurred? and how conda has affected the usage of ArcGIS Desktop functionality when used by ArcGIS Pro? – specifically as at version 1.3 (and later releases).

For those reading, I am assuming your understanding of python is that when used in both ArcGIS 10.x and ArcGIS Pro, this is the primary language to automate, configure and consume your GIS ecosystem. One of the cornerstones within each ecosystem is knowing Continue reading

Ever wondered what layers reside in all my MXD’s? Is there a way to summarize each layers’ properties?

Here’s one way forward utilizing ArcGIS for Desktop and Python….

Working at Esri Australia in the Support and Training realm, we listen to numerous client’s requests, concerns and workflow issues. To keep abreast of how our technology is heading, one source I frequent is Continue reading

Automating Workflows

Directions LIVE

Whilst some people may enjoy the security of knowing that they have done something before and can therefore do it again, others find this work boring and unchallenging. Perhaps you have a repetitive task that is part of your work day routine, something you have done so many times you can allow your mind to wander and focus on more important things like what you’re having for dinner. Personally I dislike repetitive tasks about as much as repetitive music.

So in the interest of working smarter … I will be presenting a Tips & Tricks session at the Sydney Directions 2015 showing users how to automate workflows using ArcGIS Desktop Model Builder. For those who have not used Model Builder before you will see both how easy it can be to graphically create a model to automate your ArcGIS business processes, as well as how powerful using a model can be.

Continue reading

Ozri 2014

Python across the platform: an insider’s guide to the top Python libraries

Solving real-world problems with existing solutions

With so many great presentations at Ozri it’s hard to choose which one to go to. In case you missed our session, here are the key messages.

Python is a “batteries included” language. The Python Standard Library (which you get when installing Python) has nearly 300 packages which help you get the job done. The modules vary in functionality, ranging from running code in parallel with the multiprocessing library to making your terminal beep with winsound.

Continue reading

Ozri 2014

Python Map Automation: beyond the basics of arcpy.mapping

Easy improvements to your Python experience

This morning Stoyan and I shared our knowledge of Esri’s ArcPy mapping module, as well as some other handy Python tips and tricks in our three-hour workshop: Python Map Automation – Beyond the Basics of ArcPy Mapping.

During this workshop we covered everything from how to manipulate layers within a map document to using time aware layers, printing multi-page PDF documents and publishing GP services to ArcGIS for Server. We also explained how it is possible to use any geoprocessing tools within a Python script.

If you would like to have a go, the course material has been made available online for everyone.

Haydn D

Wondering how to use Python with ArcGIS? Esri Australia have courses that can help

Learning how to complete your ArcGIS Geoprocessing steps using Python will allow you to reduce the time spent on complex and/or repetitive tasks and will enable your staff to learn a more productive and dynamic pathway to return results.

So the question is; which course is for you?

The Introduction to Geoprocessing Scripts Using Python (10.2) course will teach you how to create Python scripts to automate tasks related to data management, feature editing, geoprocessing and analysis, and map production using ArcGIS. You will also learn how to share your Python scripts so your key GIS workflows are accessible to others. This course is designed for GIS analysts, specialists, data processors, and others who want to automate ArcGIS tasks and workflows.

After completing this course, you will be able to: Continue reading

Error handling with Python – writing messages out to a text file (log file)

Debugging geoprocessing scripts in Python is never easy, especially when these scripts are run as a scheduled task.
I’ve had a number of requests of how to debug a scheduled python script (especially when issues occur), and write the output to a text file.

Please find below a simple python script that I hope will help others to debug their scripts: Continue reading

The “HOW” of the ESRI AddIn

Much of what I have read about Esri Add-Ins describe these unique containers of custom ArcGIS Desktop functionality as having behaviours that make deployment, installation and development “easier”. That is, easier than that required by their predecessor – the Classic COM component, which became an essential for Desktop customisation when ArcObjects first hit the scene in the late 90’s.

I have “walked through” numerous help references and tutorials that are based around the Esri Add-In type, but none that I have found articulate the “how” of the Esri Add-In. That is, how can the Add-In type have such new and appealing deployment characteristics ? – There is many a forum posting and support request focused on the intricacies of COM registration and deployment; The first Add-In type , to which we were introduced at Desktop 10.0, utilises ArcObjects libraries; ArcObjects libraries are COM libraries. How then, could the Esri Add-In model employ ArcObjects “COM” libraries, without the need for registration on the underlying operating system?

….And so for an explanation: Continue reading

How to export your raster datasets referenced in a “raster” attribute field (file geodatabase) using Python.

Although I can’t call myself a Python expert, from time to time I come across some interesting workflows worth sharing through this blog. This short story will be my first post on using Python to solve some non-standard tasks in ArcGIS for Desktop 10.2.1

This blog was actually created from a support incident where one of my clients asked me how to export the raster datasets that are stored within a file geodatabase, and referenced in a “Raster” attribute field, into a set of external files stored in one of the common files “. TIF” or “.JPEG.”

Ok, so here are a few pointers:

1. Imagine that we have a geodatabase with a point feature class and it contains two important attribute fields [image] and [name] (raster and text field types accordingly).


Continue reading