Menu

#7 Wrong coordinates generation at some non-english locales

closed-fixed
boseefus
None
5
2007-02-21
2007-02-14
No

Wrong coordinates are generated at some non-english locales if locale used comma instead of point as a separator.

Methods ToKML and ToTuple of class geCoordinates generate string of coordinates separated by comma and write it to KML file or return it.
If locale (russian as sample) used comma (instead of point) as a separator of two parts of number, then generated string is incorrect, because of all additional commas.

I'm temporarily fix the problem by replacing all calls of ToString() without parameters in ToKML and ToTuple methods to the calls of ToString with parameter System.Globalization.CultureInfo.InvariantCulture

Discussion

  • boseefus

    boseefus - 2007-02-14
    • milestone: --> Low - Works, but quirky
    • priority: 5 --> 3
     
  • boseefus

    boseefus - 2007-02-14

    Logged In: YES
    user_id=1516276
    Originator: NO

    Currently researching areas in ge-kml that use ToStrings() that might be affected byt CultureInfo.

     
  • boseefus

    boseefus - 2007-02-14
    • priority: 3 --> 5
    • assigned_to: nobody --> boseefus00001
     
  • boseefus

    boseefus - 2007-02-21
    • status: open --> closed-fixed
     
  • boseefus

    boseefus - 2007-02-21

    Logged In: YES
    user_id=1516276
    Originator: NO

    Fixed in version 2.1.0.6

     

Log in to post a comment.