Probably doing something horrible! Using current_app.extensions['sqlalchemy'].db.session to get a valid session for getting the list view maps into the correct SRID