Module morphpg
source code
Morphing ADQL into queries that postgres/pgSphere can understand.
Basically, Postgres support most of the stuff out of the box, and it's
just a matter of syntax.
We morph most of the geometry stuff to pgsphere; while some of it
would work with plain postgres in a plane approximation, it's certainly
not worth the effort.
There's also code to replace certain CONTAINS calls with q3c function
calls.
|
__package__ = ' gavo.adql '
|
replaces ADQL functions with (almost) equivalent expressions from
postgres or postgastro.
This is a function mostly for unit tests, morphPG does these
transformations.
|