locationtech / jts

The JTS Topology Suite is a Java library for creating and manipulating vector geometry.
Other
1.95k stars 440 forks source link

Fix KMLReader to read coordinates with whitespace #1062

Closed tohidemyname closed 3 months ago

tohidemyname commented 3 months ago

KMLReader will raise "Invalid coordinate format" error for coordinates with extra whitespace. Example file: https://developers.google.com/kml/documentation/KML_Samples.kml

Added line to trim and replace whitespace in coordinates string before processing.

dr-jts commented 3 months ago

Thanks!