[mapguide-users] Re: Sorting within query results

Jackie Ng jumpinjackie at gmail.com
Mon May 14 11:10:35 EDT 2012

This gets a bit tricky because you now have to query the capabilities XML of
the underlying feature source and you have to look in the capabilities XML
for a particular element (I believe it's

If you find this element, it means the FDO provider for that feature source
says ordering is supported, then it is safe to call SetOrderingFilter() in
the MgFeatureQueryOptions.

Also ideally from a safety standpoint, your sort ordering field in your UI
should be enabled/disabled based on this capability check, to prevent
illegal user actions like specifying sort ordering on a Feature Source that
does not support ordering.

- Jackie

View this message in context: http://osgeo-org.1560.n6.nabble.com/Sorting-within-query-results-tp4968350p4974480.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

More information about the mapguide-users mailing list