Skip to content

Instantly share code, notes, and snippets.

View roganov's full-sized avatar

Yegor Roganov roganov

View GitHub Profile
@roganov
roganov / shapely_geo.py
Created March 15, 2018 22:30
ShapelyGeography: integrate shapely and geoalchemy2
class ShapelyGeography(Geography):
def result_processor(self, dialect, coltype):
super_process = super().result_processor(dialect, coltype)
def process(value):
value = super_process(value)
if value is not None: