geoalchemy/geoalchemy — Issue #10: Creating an sql.alias() around a function.distance(g1, g2) function fails with NotImplemented
Author: abourget
Created: 2012-02-23 16:27:27+00:00
State: open

The error is here:

NotImplementedError: Dialect "default" is not supported by GeoAlchemy

This is because at some point, when resolving the alias for the function, SQLAlchemy calls str(my_function), and by doing so, calls compile() without a bind or a dialect, so sets the Default dialect for the resolution, which isn't supported by GeoAlchemy.

I don't know the exact solution..