Closed yvaucher closed 8 months ago
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
Is your feature request related to a problem? No
Describe the solution you'd like Ease the conversion from postgis to shapely geometries. Possibly reduce our codebase.
Describe alternatives you've considered
Introduce psycopg
register_shapely
function on the cursors to make a transparent conversion.Additional context
https://www.psycopg.org/psycopg3/docs/basic/pgtypes.html#psycopg.psycopg.types.shapely.register_shapely
Odoo 16.0 and current master are using psycopg 2 thus while we could use register_adapter instead the predefined types in psycopg3 would makes it much easier to handle.