glump1 / kml-library

Automatically exported from code.google.com/p/kml-library
0 stars 0 forks source link

Culture Invariant #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?

1. Retrieve KML by Core.Xml.XMLSerializer<>
2. In e.g France this will parse floats with comma separator, in USA 
punctuation

What is the expected output? What do you see instead?

The output kml will be like:
  <coordinates>65,95314,23,2202</coordinates> 
although it should have been
  <coordinates>65.95314,23.2202</coordinates> 
for e.g. google earth to be able to read.

What version of the product are you using? On what operating system?

Please provide any additional information below.

The workaround i implemented might not be the best solution, so you might 
want to take a look at it, but in the  
"Point.coordinates get" method i now return the floats as:
((float)m_Latitude).ToString( CultureInfo.InvariantCulture );

Original issue reported on code.google.com by stein...@gmail.com on 11 Jun 2008 at 10:54