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

Running the script in the Python Window


Open up the map document called MapAdjust.mxd if it is not open already. Open the Python Window and right click in the window. Select Load from the menu. When the file dialog opens, find the script called Chapter8_6_AdjustmapCURRENT.py and select it, making sure that the file paths within it are correct. Push OK and it will load in the Python Window. Push Enter once the script is loaded to run the script. It can take a few seconds or more for it to be obvious that the script is running.

Note

Note that the Python Window is not a great place to execute ArcPy scripts in most cases, as it is somewhat limited when compared to IDEs. Using it to load and execute a script that performs these map document adjustments is one of the best uses of the Python Window.

Once the script is running, the adjustments to the map document will begin to appear and repeat. This is a fascinating process, as the effects of running the script are visible in a manner that is not...

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