arcadedb icon indicating copy to clipboard operation
arcadedb copied to clipboard

Support for native indexing of points and shapes (polygons)

Open lvca opened this issue 2 years ago • 3 comments

With the issue #796, ArcadeDB supports points and polygons. It's still missing the native indexing of such new types.

The following approach will be used:

  • create a new index type LSM_SPATIAL
  • use a property as an array of pairs of doubles to store points (x,y) and polygons. One Point is one pair, polygons as multiple points = multiple pairs
  • allow geo spatial functions like isWithIn() and intersectsWith() to use the index in transparent way

lvca avatar Feb 01 '23 23:02 lvca

Wouldn’t a native spatial index require native spatial data types?

vic0824 avatar Dec 09 '23 06:12 vic0824

Wouldn’t a native spatial index require native spatial data types?

We already such types, look at: https://github.com/ArcadeData/arcadedb/issues/796.

lvca avatar Dec 10 '23 07:12 lvca

I mean ArcadeDB data types, such as the ones defined in https://github.com/ArcadeData/arcadedb/blob/0c8653efca31b698de347a65138308ed9a7cc68d/engine/src/main/java/com/arcadedb/schema/Type.java

Without native ArcadeDB data types, how would one store, for example, a lineString as a property of a document?

vic0824 avatar Dec 10 '23 09:12 vic0824