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

Recent deprecations in SpatialContext do not include new method to use #137

Open
derekbassett opened this issue Mar 10, 2016 · 3 comments
Open

Comments

@derekbassett
Copy link

I am looking to use spatial4j in my application. Looking at the source code for SpatialContext I noticed several methods are noted as being @deprecated the problem is the Javadocs do not explain what the replacement methods are or what alternatives are available?

I noticed after a while you had put a new class ShapeFactory the Deprecations should list where to create the shape and what the new methods in ShapeFactory should use.

@dsmiley
Copy link
Contributor

dsmiley commented Mar 10, 2016

You are right of course. Thanks for reminding us of this omission.

@mikehaertl
Copy link

@dsmiley After 8 years I dare to ask if there is any news.

I'm new to this library and just want to parse WKT. The README states:

The facade to all of Spatial4j is the SpatialContext. It acts as a factory for shapes and it holds references to most other classes you might use and/or it has convenience methods for them.

But it seems that all methods to get a WKTReader or to parse WKT are now deprecated. So what is the alternative? How do I get a WKTReader?

@dsmiley
Copy link
Contributor

dsmiley commented Jan 31, 2024

If you just want to parse WKT, consider JTS -- https://locationtech.github.io/jts/javadoc/org/locationtech/jts/io/WKTReader.html

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

3 participants