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 Python Geospatial Development Essentials
  • Table Of Contents Toc
  • Feedback & Rating feedback
Python Geospatial Development Essentials

Python Geospatial Development Essentials

By : Karim Bahgat
4.5 (2)
close
close
Python Geospatial Development Essentials

Python Geospatial Development Essentials

4.5 (2)
By: Karim Bahgat

Overview of this book

This book is ideal for Python programmers who are tasked with or wish to make a special-purpose GIS application. Analysts, political scientists, geographers, and GIS specialists seeking a creative platform to experiment with cutting-edge spatial analysis, but who are still only beginners in Python, will also find this book beneficial. Familiarity with Tkinter application development in Python is preferable but not mandatory.
Table of Contents (10 chapters)
close
close
9
Index

Weaving functionality into the user interface


Next, let's make the analysis functionality created so far accessible in the user interface of our application.

Layer-specific right-click functions

In Chapter 5, Managing and Organizing Geographic Data, we instructed our application that right-clicking a layer in the LayersPane give us a menu of actions to choose from that is specific to that particular layer. In the current chapter, the only layer-specific functionality we made is the buffer operation. Therefore, we add the buffer menu option to the RightClickMenu_VectorLayer class in app/dialogues.py. Remember to find and save an app/icons/buffer.png icon so that it can be displayed next to the menu's buffer item:

        # Buffering
        def open_options_window():
            window = VectorBufferOptionWindow(self.layeritem, self.layerspane, self.layeritem, statusbar)
        self.imgs["buffer"] = icons.get("buffer.png", width=32, height=32)
        self.add_command(label="Buffer", command...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Python Geospatial Development Essentials
notes
register here to use this feature" > bookmark Notes and Bookmarks register here to use this feature" > search Search in title register here to use this feature" > playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

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

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon