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

How to use JTS Queries #387

Open
stolarinhoo opened this issue Dec 4, 2021 · 1 comment
Open

How to use JTS Queries #387

stolarinhoo opened this issue Dec 4, 2021 · 1 comment

Comments

@stolarinhoo
Copy link

Hi,
I found in documentation topic about querying.
Is it exist any tutorial how deal with this library?
Is it possible use these methods on WKT objects, particularly regarding to 3D cartesian coordinates?

Thank You in advance,
Jakub

@craigtaverner
Copy link
Contributor

This library does not really deal with 3D coordinate systems. It is based on JTS and GeoTools and was originally written using versions of those libraries that did not provide good support for 3D. Some early work was done to support 3D, but it is far from complete. Neo4j itself, however, provides complete 3D support for Cartesian points, but not for complex geometries.

However, we did add some support for CQL querying of layers, whether they use WKT or not. This support is wrapped in a concept called Dynamic Layers. This means you define a dynamic layer as a subset of a real layer where the subset is the results of a CQL query. This capability is only available using the Java API, so it is not accessible directly from Cypher unless you write your own procedures.

For an example of some basic CQL used to query imported shapefiles, see https://github.com/neo4j-contrib/spatial/blob/master/src/test/java/org/neo4j/gis/spatial/TestDynamicLayers.java#L76

What is your use case? Perhaps adding a procedure to accomplish what you want is not too hard?

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

No branches or pull requests

2 participants