[mapguide-internals] Re: Plus sign (+) in the middle of the ID

teymeny teymeny at gmail.com
Fri Aug 6 17:31:35 EDT 2010


Thanks for the reply.
Well, I'm using the MapGuide Opensource 2.0.2.3011, with the Ajax viewer.
I believe the space is not the problem, becouse the selection XML has the
"plus sign" on the server side (I'm using the Java API to develop the
application). When I do run this code:

MgMap map = new MgMap();
map.Open(resourceSrvc, MAP_NAME);
MgSelection selection = new MgSelection(map, selectionXML);

the selection returns nothing. It does generate any errors. Just doesn't
return anything! If I have more elements at the selection, like:

<?xml version="1.0" encoding="UTF-8"?>
<FeatureSet>
<Layer id="a7a48890-ffff-ffff-8000-0023aeb7984e">
<Class id="KingOra:SICAF_PROJETO~INSTALACAO~GEO_LOCALIZACAO">
<ID>AAAAAAAAkEA=</ID>
</Class>
</Layer>
<Layer id="a7a6ab70-ffff-ffff-8000-0023aeb7984e">
<Class id="KingOra:SICAF_PROJETO~SEGMENTO~GEO_GEOMETRIA">
<ID>AAAAAACb0kA=</ID>
<ID>AAAAAAC+s0A=</ID>
<ID>AAAAAMCa0kA=</ID>
</Class>
</Layer>
<Layer id="a7a83210-ffff-ffff-8000-0023aeb7984e">
<Class id="KingOra:SICAF_PROJETO~POSTE_CEMIG~GEO_LOCALIZACAO">
<ID>KhwAAA==</ID>
<ID>NAUAAA==</ID>
</Class>
</Layer>
</FeatureSet>


All others features returns with no problem. Only the feature with the plus
sign in the ID is missing from the result selection. 

I don't know if I can give you more details about the situation that lead to
this error, but I was able to find out that if I change the primary key
value for the feature with the plus sign the generated ID is changed, and
the new ID doesn't have the +, thus this problem doesn't happen. But if I
change back the value, it happens again.

If there's any more information that I can give you, let me know.

Thanks again.
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Plus-sign-in-the-middle-of-the-ID-tp5380639p5382269.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.


More information about the mapguide-internals mailing list