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 analysis module


We start by creating what we will call the app/analyzer.py module with the necessary imports. One in the vector folder:

import itertools, operator
from .data import *

import shapely
from shapely.prepared import prep as supershapely

And one in the raster folder:

import itertools, operator
from .data import *
from .manager import *

import PIL.Image, PIL.ImageMath, PIL.ImageStat

As usual, we must make these new modules importable from their parent packages, to add the following import statement in both vector/__init__.py and raster/__init__.py:

from . import analyzer