This project is read-only.

Format Double to String on WMS URL


I think There is a bug on method of WmsTileSource.GetTile(int,int,int) and other methods that similar to this.
That code is wrong ,
string wmsUrl = string.Format(TilePath, lon, lat, lon2, lat2, TILE_SIZE);
Bug fixed code ,
string.Format(new CultureInfo("en-US"),TilePath, lon, lat, lon2, lat2, TILE_SIZE);
If Regional settings is setted to other than english double values can be converted to wrong text as below sample.
double(123.456789).ToString() = 123,456789 (Creates wrong url and wms server returns error.)
But if we change as that,
double(123.456789).ToString(new CultureInfo("en-US")) = 123.456789 (creates true url and image returns from wms server)