Skip to content

Spatial Additions to H2 - #1

Open
JakeSchmitz wants to merge 4 commits into
masterfrom
spatial-h2
Open

JakeSchmitz wants to merge 4 commits into
masterfrom
spatial-h2

Conversation

@JakeSchmitz

Copy link
Copy Markdown
Owner

This PR will track the work necessary for supporting a couple additional operations on Geometry types in H2. Currently, H2 supports Geometry columns in WKT format, and supports an "envelope intersection" operation. We want to add support for 2 additional operations in query conditions:

"COVERS": This operator should return true if the first geometry completely contains the second (boundary inclusive).

"EXPAND": This operator should take a geometry and a distance (radius), and return a geometry that contains all points within distance of the input geometry.

COVERS will allow us to query for points in polygons, and that, in conjunction with EXPAND will allow for queries that select points within a distance of a polygon.

So far, we've got rough drafts of Covers and Expands, however this is incomplete, especially with regards to the handling of index conditions for these new operators (which is after all why we are adding these functions to H2, to leverage H2s internal Spatial Indexes on queries for geometries near or within other geometries).

…er geometries to support 'near' conditions in the future
… as this is a more logical place. At this point we can support intersection, within (covers) and near queries (using expand).
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.

1 participant