[mapguide-users] decimal separator problem
Hi Guys, I’ve a strange problem. Here, it is: I make a simple selection on my map, and I get back the data with the object : MgSelection I’m using this piece of code : String filter = sel.GenerateFilter(layer, className); query.SetFilter(filter); reader = layer.SelectFeatures(query); where sel is my MgSelection. Everything works fine, the generateFilter gives me something like ID=56.000 AND ID = 64.000 With the records obtained, I propose different type of file output format (csv, xml,sdf,shp). But the problem comes when I use SHP ! After the generation, the records are well generated in the folder (with all types format : shp,dbf,…). But if I retry the selection elsewhere on the map, the GenerateFilter gives me a result totally different like ID=56,000 AND ID=64,000 The separator value “.” is replaced by “,” and then the selection never works again. As someone an idea of what happening ? I don’t see the relation between the shape creation (osgeo.fdo) and the map server, the twice object are not linked Very strange …. Thanks, Jérôme. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] decimal separator problem
Doesn't SHP files have an optional locale component file or something? Maybe the omission of such a file is causing that decimal separator formatting? - Jackie -- View this message in context: http://osgeo-org.1560.x6.nabble.com/decimal-separator-problem-tp5217353p5217486.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] decimal separator problem
Hi Jackie, No, i'm using all the local files, it's very weird ! Because when i create a sdf file with practically the same code, i've no problem. As workaround, now, i'm using dotSpatial to generate my ShapeFile. But for my knowledge, i want to determine what's change the local settings when i'm generating a shape :( Jérôme. 2015-07-29 9:16 GMT+02:00 Jackie Ng : > Doesn't SHP files have an optional locale component file or something? > Maybe > the omission of such a file is causing that decimal separator formatting? > > - Jackie > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/decimal-separator-problem-tp5217353p5217486.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] decimal separator problem
Hi Jacky and Hi Jérôme, I've seen this, i think... 2 things to try A) try plaing with the regional setting on the server side. B) add this before your code string strCulture = Thread.CurrentThread.CurrentCulture.Name; Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US", false); -- View this message in context: http://osgeo-org.1560.x6.nabble.com/decimal-separator-problem-tp5217353p5217497.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] decimal separator problem
Hi Bruno, Already try,but no effect. The currentculture before and after the shapefile creation is always the same. The same for the property : NumberDecimalSeparator I wonder if it's not a problem with the version of my fdo provider (3.8) 2015-07-29 10:43 GMT+02:00 Bruno Scott : > Hi Jacky and Hi Jérôme, > I've seen this, i think... > > 2 things to try > > A) > try plaing with the regional setting on the server side. > > B) add this before your code > string strCulture = Thread.CurrentThread.CurrentCulture.Name; > Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US", false); > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/decimal-separator-problem-tp5217353p5217497.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] decimal separator problem
I see this ticket was reported after FDO 3.8 https://trac.osgeo.org/fdo/ticket/881 Maybe try the same code on MapGuide 2.6 - Jackie -- View this message in context: http://osgeo-org.1560.x6.nabble.com/decimal-separator-problem-tp5217353p5217511.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] decimal separator problem
Yes you've right ! Thanks Jackie. 2015-07-29 11:33 GMT+02:00 Jackie Ng : > I see this ticket was reported after FDO 3.8 > > https://trac.osgeo.org/fdo/ticket/881 > > Maybe try the same code on MapGuide 2.6 > > - Jackie > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/decimal-separator-problem-tp5217353p5217511.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users