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