Open
Description
Hi!
I'm trying to implement a TypeDecorator which will convert a GeometryColumn to and from shapely.geometry.
I've the following code:
class DatabaseGeometry(types.TypeDecorator):
impl = geoalchemy.Polygon
def process_bind_param(self, value, dialect):
logging.debug("saving")
return to_db_geom(value)
def process_result_value(self, value, dialect):
logging.debug("loading")
return to_shapely_geom(value)
When I load a Column from database, I can see "loading" in the log, but when I write object.geom = shapely_geom
no "saving" occurs.
How can I fix my code?
Metadata
Metadata
Assignees
Labels
No labels