Skip to content

Conversation

@kimakan
Copy link
Contributor

@kimakan kimakan commented May 28, 2025

This PR adds support for the postgreSQL native geometric functions/types point and polygon.

Now it is possible to run queries of the type

SELECT *
FROM "test_schema"."test_table" as t
WHERE POLYGON '((235.04, 24.95), (235.04, 52.90), (272.69, 52.90), (272.69, 24.95), (235.04, 24.95))' @> POINT(t.x, t.y);

The query selects all points inside the defined polygon using Cartesian coordinate system.

@coveralls
Copy link

Coverage Status

coverage: 96.154%. remained the same
when pulling 93b5b22 on add-postgis-udf-for-selection
into 653cd50 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

coverage: 96.154%. remained the same
when pulling 93b5b22 on add-postgis-udf-for-selection
into 653cd50 on master.

@kimakan kimakan merged commit 36d3416 into master May 30, 2025
6 checks passed
@kimakan kimakan deleted the add-postgis-udf-for-selection branch May 30, 2025 10:08
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