Book Image

Python Geospatial Development Essentials

By : Karim Bahgat
Book Image

Python Geospatial Development Essentials

By: Karim Bahgat

Overview of this book

Table of Contents (15 chapters)
Python Geospatial Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating the management module


We start by creating a separate submodule to contain the functionality, one for vector, and one for raster. First, create the vector/manager.py file and start it up with the following imports:

import itertools, operator
from .data import *

Next, create the file raster/manager.py as follows:

import PIL, PIL.Image

To make these manager modules available to their respective vector and raster parent package, add the following import statement to both vector/__init__.py and raster/__init__.py:

import . import manager