spatial4j icon indicating copy to clipboard operation
spatial4j copied to clipboard

Recent deprecations in SpatialContext do not include new method to use

Open derekbassett opened this issue 8 years ago • 3 comments

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.

derekbassett avatar Mar 10 '16 00:03 derekbassett

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

dsmiley avatar Mar 10 '16 03:03 dsmiley

@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?

mikehaertl avatar Jan 30 '24 17:01 mikehaertl

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

dsmiley avatar Jan 31 '24 05:01 dsmiley