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

Jason Birch jason at jasonbirch.com
Fri Aug 6 18:17:08 EDT 2010


It would be incredibly useful if you could create an MGP that includes an
SDF with just enough features to display the problem, a layer, and a map
displaying the features, along with the code snippet which exercises the
problem, and attach these all to a new defect report:

http://trac.osgeo.org/mapguide/wiki/SubmitTicket

Ideally, you'd be able to test against the 2.2 beta first, since 2.0.2 is
getting long in the tooth and it's quite possible that this problem has been
addressed in the meantime, either explicitly or incidentally.

Jason

On 6 August 2010 14:31, teymeny <teymeny at gmail.com> wrote:

>
> 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.
> _______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
>


More information about the mapguide-internals mailing list