<div dir="ltr"><p class="MsoNormal">Hi Guys,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I’ve a strange problem.</p>
<p class="MsoNormal">Here, it is: </p>
<p class="MsoNormal">I make a simple selection on my map, and I get back the data
with the object : MgSelection</p>
<p class="MsoNormal">I’m using this piece
of code :</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:rgb(43,145,175);background-image:initial;background-repeat:initial">String</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background-image:initial;background-repeat:initial"> filter =
sel.GenerateFilter(layer, className);</span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black;background-image:initial;background-repeat:initial">query.SetFilter(filter);</span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black;background-image:initial;background-repeat:initial">reader =
layer.SelectFeatures(query);</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">where sel is my MgSelection.</p>
<p class="MsoNormal">Everything works fine, the generateFilter gives me something
like ID=56.000 AND ID = 64.000</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">With the records obtained, I propose different type of file output
format (csv, xml,sdf,shp). But the problem comes when I use SHP !</p>
<p class="MsoNormal">After the generation, the records are well generated in the
folder (with all types format : shp,dbf,…).</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">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</p>
<p class="MsoNormal">The separator value “.”
is replaced by “,” and then the
selection never works again.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">As someone an idea of what happening ?</p>
<p class="MsoNormal">I don’t see the relation between the shape creation (osgeo.fdo)
and the map server, the twice object are not linked</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Very strange …. </p><p class="MsoNormal"><br></p><p class="MsoNormal">Thanks,</p><p class="MsoNormal">Jérôme.</p><p class="MsoNormal"><span style="font-family:Wingdings"><br></span></p><p class="MsoNormal"><br></p><p class="MsoNormal"><span style="font-family:Wingdings"><br></span></p><p class="MsoNormal"><br></p></div>