GeoJSON.NET icon indicating copy to clipboard operation
GeoJSON.NET copied to clipboard

Bug when KML coordinates are separated by only \n

Open JamesKosher opened this issue 5 years ago • 0 comments
trafficstars

In class GeoJsonRootObject line 217: v = Regex.Replace(v, "\n", ""); should be v = Regex.Replace(v, "\n", " "); where "\n" is replace by a one character string. This was breaking on my KML as there was no longer any space between coordinate groups.

The error was "Input string was not in a correct format."

JamesKosher avatar Jul 23 '20 18:07 JamesKosher