spatial4j
spatial4j copied to clipboard
Recent deprecations in SpatialContext do not include new method to use
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.
You are right of course. Thanks for reminding us of this omission.
@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?
If you just want to parse WKT, consider JTS -- https://locationtech.github.io/jts/javadoc/org/locationtech/jts/io/WKTReader.html