[mapguide-users] Selection Issue (FeatureReader only grabbing 20 items)

nclayton nclayton at gmail.com
Wed Jul 23 09:50:03 EDT 2008


Thank you for pointing this out Ronnie, doubt I would've found them myself.
Kind of a harsh workaround, significant modification to my code for
something that looks like it will be gone in the next update. I'll post my
workaround code here for anyone else needing the fix.


Ronnie Louie wrote:
> 
> Your code is calling MgSelection::GenerateFilters() which has limitation
> in that it only generates a filter for the first 20 items.  This
> limitation was introduced by
> http://trac.osgeo.org/mapguide/changeset/3053.
> 
> A follow up submission to address this added a temporary, undocumented
> API, GenerateFilters to resolve the limitation.  See
> http://trac.osgeo.org/mapguide/ticket/501.
> 
> To workaround the issue until a fix for GenerateFilter is available, you
> can use the undocumented GenerateFilters to create the filters, and then
> perform your selection based on each of the filters.  Iterate through the
> features in each feature reader to get all your features.  Please be aware
> this is offered only as a workaround until GenerateFilter is fixed.
> 
> Have a look at
> http://svn.osgeo.org/mapguide/branches/2.0.x/MgDev/Web/src/mapviewerphp/buffer.php
> for a sample of how to use the GenerateFilters method to setup the query
> for selection.
> 
> 
> Ronnie
> 

-- 
View this message in context: http://www.nabble.com/Selection-Issue-%28FeatureReader-only-grabbing-20-items%29-tp18570994p18611168.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list