Changes between Initial Version and Version 1 of Ticket #3975, comment 2
- Timestamp:
- 01/11/18 06:50:55 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3975, comment 2
initial v1 1 1 OK, I can see two fixes right now, both equally ugly in their own way. 2 2 3 Fix #1:3 Fix 1: 4 4 5 5 * Change `st_transform` and `postgis_transform_geometry` into SQL wrappers move the actual C bindings into `_st_transform` and `_postgis_transform_geometry`. … … 7 7 * Potentially cleaner but still ugly variant: change the signature of `st_transform` and `postgis_transform_geometry` to have an extra 'schema' parameter that has a default value of @extschema@, then we can avoid the extra level of indirection and get the install schema injected still. Depends on defaults working and involves changing signature of existing heavily used function. 8 8 9 Fix #2:9 Fix 2: 10 10 11 11 * Go into the C guts of `st_transform` and `postgis_transform_geometry`. … … 13 13 * In the PgSQL syscache, look up the namespace that is associated with that function Oid. 14 14 15 Both fix #1 and #2 will require changing a lot of proj lookup code to take not just the SRID number being looked up, but also the schema to look for spatial_ref_sys in.15 Both fix 1 and fix 2 will require changing a lot of proj lookup code to take not just the SRID number being looked up, but also the schema to look for spatial_ref_sys in.