OCA / geospatial

Odoo and GIS
http://oca.github.io/geospatial/index.html
GNU Affero General Public License v3.0
187 stars 281 forks source link

Future RFC: Once Odoo moves on Psycopg 3.2.0 use register_shapely #341

Closed yvaucher closed 8 months ago

yvaucher commented 1 year ago

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.

github-actions[bot] commented 9 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.