Figure one: Collective demos for python scripting.
|
There were three different sections for the introductory
Python scripting material. The first
section was simply running ESRI ArcMap tools with a script. One will notice
this as the green, pound signed block located roughly in the middle of the
figure one (it was pound signed so as to speed up diagnostics for later
operations). A buffer tool was run shortly before a clip tool.
The second part is listed above the clip and buffer tools is
where variables are being defined so the tools can be used for multiple
datasets without being rewritten for each time. One only needs to redefine the
set parameters for each dataset making it fairly easy to adapt from one place
to another.
The third and final section of this short introduction to
Python was coding to automatically fetch and display file metadata such as
projection. A secondary line of code was used to list raster files in a
geodatabase and display the file name and spatial reference. In figure one this
is expressed below the green buffer and clip tool code.
No comments:
Post a Comment