Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Python Geospatial Development Essentials

You're reading from   Python Geospatial Development Essentials Utilize Python with open source libraries to build a lightweight, portable, and customizable GIS desktop application

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781782175407
Length 192 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Karim Bahgat Karim Bahgat
Author Profile Icon Karim Bahgat
Karim Bahgat
Arrow right icon
View More author details
Toc

Putting it all together

We have now defined all of the necessary building blocks of a basic rendering application. These can be used and combined in many different ways. For instance, if you want to you can build an application that has a single LayerGroup/LayersPane connected with multiple independently zoomable MapViews, to view different locations of the same data simultaneously. In this book, we go for a more basic desktop GIS look.

Let's return to our GUI class that we created in Chapter 3, Designing the Visual Look of Our Application, and add more content to its startup phase. First we give the GUI a LayerGroup instance to hold our layers and link it to both the MapView and LayersPane widgets so they can communicate later on.

We also need a button to add data layers. There are many possible places to put such an important button, but for our current application, let's place it in the header of the LayersPane widget so that all things related to layers are kept logically grouped...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image