Skip to content
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

Geospatial data types: set SRID for geometry #1514

Merged
merged 8 commits into from
Mar 21, 2024
Merged

Conversation

Amogh-Bharadwaj
Copy link
Contributor

@Amogh-Bharadwaj Amogh-Bharadwaj commented Mar 20, 2024

From Snowflake docs:

For GeoJSON, WKT, and WKB input, if the srid argument is not specified, the resulting GEOMETRY object has the SRID set to 0.

So we need to explicitly set the SRID in our WKT geospatial strings so that this is set on the target rows and can be seen with ST_SRID.

Test added
Functionally tested

@Amogh-Bharadwaj Amogh-Bharadwaj merged commit 156a9b2 into main Mar 21, 2024
7 checks passed
@Amogh-Bharadwaj Amogh-Bharadwaj deleted the datatypes/set-srid branch March 21, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants