Introduction to GIS Programming and Fundamentals with Python and ArcGIS®
eBook - ePub

Introduction to GIS Programming and Fundamentals with Python and ArcGIS®

  1. 302 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Introduction to GIS Programming and Fundamentals with Python and ArcGIS®

About this book

Combining GIS concepts and fundamental spatial thinking methodology with real programming examples, this book introduces popular Python-based tools and their application to solving real-world problems. It elucidates the programming constructs of Python with its high-level toolkits and demonstrates its integration with ArcGIS Theory. Filled with hands-on computer exercises in a logical learning workflow this book promotes increased interactivity between instructors and students while also benefiting professionals in the field with vital knowledge to sharpen their programming skills. Readers receive expert guidance on modules, package management, and handling shapefile formats needed to build their own mini-GIS. Comprehensive and engaging commentary, robust contents, accompanying datasets, and classroom-tested exercises are all housed here to permit users to become competitive in the GIS/IT job market and industry.

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Section II
Python Programming
3
Introduction to Python
Learning a programming language is a practical and progressive journey. You will begin with the basics, and gradually increase your skills at complex coding. This chapter will introduce fundamental Python components, including classes and objects, syntax, data types, operators, functions, flow control, exceptions, input/output, and modules. A number of libraries are available for specific development, including graphical user interfaces, databases, Internet, and web programming. To facilitate the learning process, you will utilize your understanding of GIS to start building a mini-GIS package while learning the programming language.
3.1Object-Oriented Support
One of Python’s most important characteristics is object-oriented structure. Foundational Python programming requires understanding concepts about classes and objects, inheritance, composition, package, and class sharing. Python provides the mechanism to define a class and create objects from that class.
Classes and objects are widely used in Python. Objects are instances of classes. Objects have attributes and methods. Dot(.) refers to attributes and methods of an object. In Chapter 2, this book defined Point class and created p1 as a point object. You can use p1.x and p1.calDis() to call the attribute and method of the object. Inheritance helps you reuse the attributes and methods of a class (superclass) by using the super class to define new classes in the format ‘class subclass (superclass)’. All public and protected attributes and methods are inherited by subclasses automatically. Private attributes and methods will not be inherited. For example, three vector classes (Point, Polyline, and Polygon) are defined by inheriting the Feature class’s method draw() as detailed in Chapter 2. Composition helps maintain the part–whole relationship, where one object of a class includes objects of other classes. Python uses object reference to implement the composition relationship. As discussed in Chapter 2, a list of points are used to keep the coordinates of a polyline or polygon border.
When classes and met...

Table of contents

  1. Cover
  2. Half Title
  3. Title Page
  4. Copyright Page
  5. Dedication
  6. Contents
  7. Preface
  8. Acknowledgments
  9. Editor
  10. Contributors
  11. Section I: Overview
  12. Section II: Python Programming
  13. Section III: Advanced GIS Algorithms and Their Programming in ArcGIS
  14. Section IV: Advanced Topics
  15. References
  16. Index

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Introduction to GIS Programming and Fundamentals with Python and ArcGIS® by Chaowei Yang in PDF and/or ePUB format, as well as other popular books in Technology & Engineering & Computer Engineering. We have over one million books available in our catalogue for you to explore.