spatial4j
spatial4j copied to clipboard
Drop ParseUtils
This is extremely complex code just to parse latitude, longitude. We should simplify it and put it where it belongs (if we even have a need for it).
I think we have a need for the underlying functionality, at least some of the methods therein. Where do you propose it "belongs"?
The underlying functionality is parsing a comma-separated list of doubles and doing some validation. It's only used in the dubious ShapeReadWriter.readLatCommaLonPoint. We can hugely simplify the functionality there so it quickly parses the two doubles.
I don't see the need for generic 'multi-dimensional' point parsing in Spatial4j today.
I agree; I'm going to mark this as deprecated for 0.4 and remove in a subsequent release. I'll move the code in question to perhaps a utility class in Lucene-spatial or Solr.
+1