Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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

Rendering

Typical usage in a GIS is to add one or more geographic data sources or layers to the application, which then gets immediately rendered in a map window. In Chapter 3, Designing the Visual Look of Our Application, we set this up as a MapView widget. Although the MapView widget is responsible to show the map in the interactive GUI, we want to separate the actual rendering logic in a module of its own. This way the user can also batch generate map renderings strictly through coding if they want.

Usually, graphics rendering is done most efficiently using the graphic capabilities of the user's hardware to draw on the screen. However, Tkinter's screen drawing capabilities (the Tkinter Canvas widget) can be slow, quickly runs out of memory if too many items are drawn, and produces only rough jagged graphics with no anti-aliased smoothing. We instead use the approach of drawing the graphics onto a virtual image, and then sending that image for display in Tkinter. This gives...

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