[mapguide-internals] PATCH: MgNullableProperty XML serialization fix

Jackie Ng jumpinjackie at gmail.com
Tue Apr 13 10:23:32 EDT 2010


Hi All,

Could you please review this patch, which fixes the XML serialization of
MgNullableProperty subclasses.

The patch simply places an IsNull() check around the code that writes the
actual value between the <Value></Value> elements, such that a null property
value will not write anything between the elements. For the
MgGeometryProperty, an additional exception handler is in place to handle
exceptions thrown due to invalid geometry (such as Sheboygan Parcels record
#97). Again, nothing is written if an exception is caught when attempting to
get the text of the geometry.

This fixes a whole load of tickets (all related) including:

- #708
- #1228
- #1238
- #1080

This patch results in a SELECTFEATURES mapagent operation that is actually
usable instead of blowing up on any feature source containing null values

In case you can't see the attached patch, I've put another copy as an
attachment to ticket 708.

- Jackie

-- 
Blog: http://themapguyde.blogspot.com
LinkedIn: http://www.linkedin.com/in/jackieng
Twitter: http://twitter.com/jumpinjackie


More information about the mapguide-internals mailing list