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 →
Following on from my post on functions in this post I am going to expand the usage by creating a module to hold the functions. A module in the simplest form is a Python script accessible to you program. Modules you create can either be stored in the same folder and the script you are importing into or if you include the folder you want to save them into the PYTHONPATH environment variable you can store and used them from there. Modules can hold a lot of useful tools that you want to reuse without having to retype or copy a lot of code. They would normally have a set of functions that have a common purpose and the module would be names accordingly, like the string and math modules.
When coding it is often useful to be able to create a function that allow reuse of code throughout your program. The good news is that Python allows you to create your own functions. Functions are very easy to create and use. Lets look as a simple example: