[mapguide-users] Base64 encoding decoding scenarios

Warren Medernach wmedernach at rand.com
Fri Mar 6 13:58:06 EST 2009


No ideas, comments, suggestions from anyone?  ;-)

 

Warren M

 

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Warren
Medernach
Sent: Monday, March 02, 2009 10:43 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Base64 encoding decoding scenarios

 

I'm working on decoding the UIDs passed in the selection XML, and I want
to thank the group for all of the posts on decoding base 64 as I can
successfully decode a UID now!

 

However, when I attempt to decode a UID that is NOT made up a single
integer field, I'm running into some problems:

 

Scenario #1:

If the UID consists of 2 integer fields, upon decoding, only the first
value is returned.

Example, objects Key fields are: 

     UID1: value=1684

     UID2: value=1365

 

When I decode this, only the first value, 1684, is returned.

Do I need to do something different for decoding a feature where there
are multiple key fields?

 

Scenario #2

If the UID consists of a text field, the decoded value is incorrect.

Example, object UID = '1365-1684'

Decoded, the returned value is: 892744497

And I noticed if multiple objects are selected, it seems all of the
decoded values are: 892744497

 

Any comments, ideas, suggestions would be greatly appreciated.

Warren M

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090306/00fd028d/attachment.html


More information about the mapguide-users mailing list