Back to ST_GeomFromText as geom placeholder.
A SpatialRefSys implementation using data copied from
SYS.ST_SPATIAL_REFERENCE_SYSTEMS.
Distance function registration and implementation.

ST_Distance and call support from ops.get_distance/ops.spatial_lookup_sql.
Sample ST_SPATIAL_REFERENCE_SYSTEMS install SQL scripts.