Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying ArcPy and ArcGIS: Geospatial Analysis with Python
  • Table Of Contents Toc
  • Feedback & Rating feedback
ArcPy and ArcGIS: Geospatial Analysis with Python

ArcPy and ArcGIS: Geospatial Analysis with Python

By : Silas Toms
3.9 (11)
close
close
ArcPy and ArcGIS: Geospatial Analysis with Python

ArcPy and ArcGIS: Geospatial Analysis with Python

3.9 (11)
By: Silas Toms

Overview of this book

If you are a GIS student or professional who needs an understanding of how to use ArcPy to reduce repetitive tasks and perform analysis faster, this book is for you. It is also a valuable book for Python programmers who want to understand how to automate geospatial analyses.
Table of Contents (14 chapters)
close
close
13
Index

Creating a Script tool


Creating a script tool is a powerful combination of the power of ArcPy and the ease of use of the tools in ArcToolbox.

The first step is to create a custom toolbox to hold the script tool. To achieve this, do the following:

  1. Open up ArcCatalog and right click in the SanFrancisco.gdb File Geodatabase.

  2. Select New and then Toolbox from the menu.

  3. Call the toolbox Chapter8Tools.

  4. Right click on Chapter8Tools, select Add, and then select Script.

The following menu will appear allowing you to set up the script tool. Add a title with no spaces and a label, as well as a description. I prefer to run script tools in the foreground to see the messages it passes, but it is not necessary and can be annoying when needing to start a script and still work on other tasks. Click Next once the menu has been filled out.

The next menu contains an entry field and a file dialog button, allowing the user to find the script to which the parameters collected will be passed. Use the file dialog to navigate...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY