ranathunga / kml-samples

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

separator bug in generated kml #223

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which products are affected?
googleearth

What steps will reproduce the problem?
1. using any OS with system decimal separator like "," (ie: french windows xp)
2. open googleearth create kml with polygon and save it.
3. open the kml with googleearth.

What is the expected output or behavior? What do you see instead?
polygon not displayed

What application versions (if any) are you using?
all

Which operating systems and browsers are affected?
all os with decimal separator different form "."

Please provide any additional information (code snippets/links) below.
Hi,

GE using system decimal separator('.' or ',' or ....)
HKEY_CURRENT_USER\Control Panel\International\sDecimal

But not system list separator (',' or ';' or ...)
HKEY_CURRENT_USER\Control Panel\International\sList

so, generated coordinates tag are unusable because "," everywhere !

<coordinates>
-0,6031686795430176,44,74290553115249,10
-0,4548993500726652,44,74411030656823,10
-0,5611849320318214,44,81570495047038,10
-0,6031686795430176,44,74290553115249,10 </coordinates>

must be:
<coordinates>
-0,6031686795430176;44,74290553115249;10
-0,4548993500726652;44,74411030656823;10
-0,5611849320318214;44,81570495047038;10
-0,6031686795430176;44,74290553115249;10 </coordinates>

Original issue reported on code.google.com by spotit....@gmail.com on 20 Jan 2009 at 1:24

GoogleCodeExporter commented 9 years ago
Hi, can you try this with Google Earth 5.0 and see if this is still the case? 
The
correct behavior in Google Earth would be to convert decimal separators to 
periods,
as defined in the KML spec.

Original comment by api.roman.public@gmail.com on 3 Feb 2009 at 2:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
5.0 doesn't correct the problem :(

Original comment by spotit....@gmail.com on 26 Feb 2009 at 1:41

GoogleCodeExporter commented 9 years ago
Seems to be corrected in 6.0.2 version :)
GE now use "." as decimal separator (and "," as list separator)

Original comment by spotit....@gmail.com on 9 Jun 2011 at 9:47