Importing modules

To enable the processing of web requests, we need to import functionality from Flask, GeoAlchemy2, and Shapely, a Python module for creating and processing geospatial data. We will also import the models and forms: 

from application import appfrom flask import render_template,jsonify, redirect, url_for, request, Markupfrom .forms import * from .models import *import geoalchemy2,shapelyfrom geoalchemy2.shape import to_shape

Get Mastering Geospatial Analysis with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.