-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
geo/geomfn: implement ST_FlipCoordinates({geometry}) #48932
Labels
A-geometry-builtins
Builtins which have geometry as args.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
E-easy
Easy issue to tackle, requires little or no CockroachDB experience
X-nostale
Marks an issue/pr that should be ignored by the stale bot
Comments
otan
added
A-geometry-builtins
Builtins which have geometry as args.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
labels
May 14, 2020
otan
changed the title
geo/geomfn: implement ST_Flipcoordinates({geometry})
geo/geomfn: implement ST_FlipCoordinates({geometry})
May 14, 2020
otan
added
the
E-easy
Easy issue to tackle, requires little or no CockroachDB experience
label
May 14, 2020
Can I work on this? |
Yes
…On Sat, 22 Aug 2020, 9:16 am Themis, ***@***.***> wrote:
Can I work on this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#48932 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA32FQ473YN6YQWSPCONBOLSB7VMZANCNFSM4NAZN3RQ>
.
|
Used reverse as a guide to compensate for no Go/GIS experience. Linters + Local unit/logic tests pass but getting timeouts on the big ones that ran with
|
I don't think those commands are expected to not time out. The issue
description has instructions on a small subset of test work - otherwise
feel free to senda PR and let CI do the work!
You can test 3D/4D with geom.T objects. We don't support them right now. If
yours doesn't test for it don't worry.
…On Sun, 23 Aug 2020, 1:52 pm Themis, ***@***.***> wrote:
Used reverse
<https://github.com/cockroachdb/cockroach/blob/master/pkg/geo/geomfn/reverse.go>
as a guide to compensate for no Go/GIS experience.
Linters + Local unit/logic tests pass but getting timeouts on the big ones
that ran with make check or make pre-push so I'm not gonna open a PR just
yet, since I got no idea why the fails occur.
1. My change is here
<themistoklik@f61c7fc>
temporarily. I wanted to check if you think I should PR nonetheless or you
wanted to take a quick scan at my change first.
2. PostGIS doc <https://postgis.net/docs/ST_FlipCoordinates.html>
mentions support for M/Z indices and various surfaces that I do not
immediately see supported in the codebase. In the unit test
<https://github.com/cockroachdb/cockroach/blob/master/pkg/geo/geomfn/reverse_test.go>
for reverse I only saw 2d geometries being tested, so I went ahead and
did the same for my command. Is this ok?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#48932 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA32FQ76FMXLGPKTWAP76SDSCF6PXANCNFSM4NAZN3RQ>
.
|
otan
added
the
X-nostale
Marks an issue/pr that should be ignored by the stale bot
label
Sep 3, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-geometry-builtins
Builtins which have geometry as args.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
E-easy
Easy issue to tackle, requires little or no CockroachDB experience
X-nostale
Marks an issue/pr that should be ignored by the stale bot
Implement
ST_FlipCoordinates
on arguments {geometry}, which should adopt PostGIS behaviour.Observers: Please react to this issue if you need this functionality.
For Geometry builtins, please do the following:
pkg/geo/geomfn
(parse and output related functions can go inpkg/geo
). Add exhaustive unit tests here - you can run through example test cases and make sure that PostGIS and CRDB return the same result within a degree of accuracy (1cm for geography).pkg/sql/sem/builtins/geo_builtins.go
. Note that we currently do not support optional arguments, so we define functions that have optional arguments once without the optional argument (using the default value in the optional position), and once with the optional argument.pkg/sql/logictest/testdata/logic_test/geospatial
to call this functionality at least once. You can callmake testbaselogic FILES='geospatial' TESTFLAGS='-rewrite'
to regenerate the output. Tests here should just ensure the builtin is linked end to end (your exhaustive unit tests go the above mentioned packages!).make buildshort
. You can also play with it by calling./cockroach demo --empty
afterwards.You can follow #48552 for an example PR.
🤖 This issue was synced with a spreadsheet by gsheets-to-github-issues by otan on 2023-09-03T23:16:38Z. Changes to titles, body and labels may be overwritten.
The text was updated successfully, but these errors were encountered: