Skip to content

Conversation

@osipovartem
Copy link
Contributor

https://docs.snowflake.com/en/sql-reference/functions/st_contains

Example

SELECT st_contains(
                      st_polygon(st_makeline(
                                                St_point(3.3, 30.5),
                                                St_point(1.7, 24.6),
                                                St_point(13.4, 25.1),
                                                St_point(14.4, 31),
                                                St_point(3.3, 30.5)
                                            )
                                ),
                      St_point(7.9, 28.4)
                  ) as t

Copy link
Contributor

@DanCodedThis DanCodedThis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Base automatically changed from issues/323_geom_min_max to main March 6, 2025 12:08
@osipovartem osipovartem merged commit 21265cb into main Mar 6, 2025
4 of 5 checks passed
@osipovartem osipovartem deleted the issues/326_measurement_contains branch March 6, 2025 13:53
osipovartem added a commit that referenced this pull request Mar 7, 2025
* Add ST_MakePolygon, st_polygon

* Add docs

* Add ST_dimention

* Add license

* Add ST_Endpoint, ST_PointN

* Reimplement ST_Point to work with snowflake linestring

* Add St_x, st_y, st_srid

* St_min max for x,y

* Add macro for end and start points

* Add ST_Contains

* Add ST_Within

* Add ST_Within

* Remove macro print
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.

3 participants