[mapguide-commits] r5830 - trunk/Tools/Maestro/Maestro.Editors/FeatureSource/Providers/Gdal

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon May 23 07:04:29 EDT 2011


Author: jng
Date: 2011-05-23 04:04:29 -0700 (Mon, 23 May 2011)
New Revision: 5830

Modified:
   trunk/Tools/Maestro/Maestro.Editors/FeatureSource/Providers/Gdal/CompositeFileCtrl.cs
Log:
#1679: Convert raster bounds from string using CultureInfo.InvariantCulture.


Modified: trunk/Tools/Maestro/Maestro.Editors/FeatureSource/Providers/Gdal/CompositeFileCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/FeatureSource/Providers/Gdal/CompositeFileCtrl.cs	2011-05-23 02:06:35 UTC (rev 5829)
+++ trunk/Tools/Maestro/Maestro.Editors/FeatureSource/Providers/Gdal/CompositeFileCtrl.cs	2011-05-23 11:04:29 UTC (rev 5830)
@@ -35,6 +35,7 @@
 using OSGeo.MapGuide.MaestroAPI;
 using System.Collections.Specialized;
 using Maestro.Editors.Common;
+using System.Globalization;
 
 namespace Maestro.Editors.FeatureSource.Providers.Gdal
 {
@@ -299,10 +300,10 @@
 
                 if (scList.SpatialContext.Count > 0)
                 {
-                    raster.MinX = Convert.ToDouble(scList.SpatialContext[0].Extent.LowerLeftCoordinate.X);
-                    raster.MinY = Convert.ToDouble(scList.SpatialContext[0].Extent.LowerLeftCoordinate.Y);
-                    raster.MaxX = Convert.ToDouble(scList.SpatialContext[0].Extent.UpperRightCoordinate.X);
-                    raster.MaxY = Convert.ToDouble(scList.SpatialContext[0].Extent.UpperRightCoordinate.Y);
+                    raster.MinX = Convert.ToDouble(scList.SpatialContext[0].Extent.LowerLeftCoordinate.X, CultureInfo.InvariantCulture);
+                    raster.MinY = Convert.ToDouble(scList.SpatialContext[0].Extent.LowerLeftCoordinate.Y, CultureInfo.InvariantCulture);
+                    raster.MaxX = Convert.ToDouble(scList.SpatialContext[0].Extent.UpperRightCoordinate.X, CultureInfo.InvariantCulture);
+                    raster.MaxY = Convert.ToDouble(scList.SpatialContext[0].Extent.UpperRightCoordinate.Y, CultureInfo.InvariantCulture);
                 }
                 else
                 {



More information about the mapguide-commits mailing list