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

Add geographic shapes #44

Open
mkalus opened this issue Feb 12, 2017 · 2 comments
Open

Add geographic shapes #44

mkalus opened this issue Feb 12, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@mkalus
Copy link
Owner

mkalus commented Feb 12, 2017

Add geographic shapes to maps: lines and polygons.

@mkalus mkalus added this to the Wishlist milestone Feb 12, 2017
@mkalus
Copy link
Owner Author

mkalus commented Aug 30, 2021

Hm, Lucene 5.3 can work with complex shapes, using JTS Topology suite => https://lucene.apache.org/core/5_3_2/spatial/index.html

Question is, can OrientDB integate this? Testing this a bit now...

@mkalus mkalus self-assigned this Aug 30, 2021
@mkalus
Copy link
Owner Author

mkalus commented Aug 30, 2021

Ah, OrientDB can work with spatial stuff starting with version 2.2: http://orientdb.com/docs/2.2.x/Spatial-Index.html

So, this should actually work - uses the JTS stuff with WKT, as I see.

For testing, one can play a bit with collections:

OShapeFactory factory = OShapeFactory.INSTANCE;

		ODocument odoc = factory.toDoc("GEOMETRYCOLLECTION (POINT (40 10), LINESTRING (10 10, 20 20, 10 40), POLYGON ((40 40, 20 45, 45 30, 40 40)))");

		Shape shape = factory.fromText("GEOMETRYCOLLECTION (POINT (40 10), LINESTRING (10 10, 20 20, 10 40), POLYGON ((40 40, 20 45, 45 30, 40 40)))");

		System.out.println(shape);
		System.out.println(odoc);

Question is, how to index collections to OrientDB. OrientDB works with Lucene spatial indexes internally?

Ok, some hints here:

Possible problem:

OrientDB documentation is a bit sparse here, I will need to test a bit...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant