[mapguide-users] decimal separator problem

Jérôme DUCKERS jerome.duckers at gmail.com
Tue Jul 28 05:01:02 PDT 2015


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20150728/ed4672d6/attachment.html>


More information about the mapguide-users mailing list