ThinkGeo.com    |     Documentation    |     Premium Support

KML Fails to load

Hi,

I received the attached KML file which loads fine into Google Earth, but when I try and load it to KMLFeatureLayer and GetAllFeatures from the FeatureSource, it fails.

Exception thrown: ‘System.ArgumentOutOfRangeException’ in mscorlib.dll

Any ideas?

21US_02170.zip (1.8 KB)

Thanks,
Damian

hi Damian,

There’s something wrong with this KML, the line 61 shows as below, there’s no comma between the numbers, it’s not the standard format and we cannot parse it.

<coordinates>-90.4196 27.32</coordinates>

If you add a comma to make it right, everything works fine.

<coordinates>-90.4196,27.32</coordinates>

Thanks,
Leo