builtins: implement ST_MakeEnvelope(float xmin, float ymin, float xmax, float ymax, integer srid=unknown) #80357
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
good first issue
O-community
Originated from the community
Is your feature request related to a problem? Please describe.
Our app makes extensive use of geometry bounds (e.g. to filter geo-located things).
We use the ST_MakeEnvelope function to build geometries suitable for geospatial indexes out.
But this is not supported by cockroachDB as v22.1.x.
Describe the solution you'd like
Have support for
ST_MakeEnvelope(loat xmin, float ymin, float xmax, float ymax, integer srid=unknown) -> geometry
Describe alternatives you've considered
As of v22.1.x, we only have the following alternative:
ST_SetSRID(ST_Envelope(ST_Makebox2d(ST_Makepoint(?,?), ST_Makepoint(?,?))), 4326)
Additional context
N/A
You'll need to implement both variants to make this work>
See #48814 for example PR
Jira issue: CRDB-15756
The text was updated successfully, but these errors were encountered: