[Mapserver-dev] layerObj resultcache?
sgillies at frii.com
sgillies at frii.com
Wed Apr 21 05:39:13 EDT 2004
Hey, just checking in on email before my return ... protecting
the resultcache from mapscript was a mistake. I didn't mean to
change the usage and think that we should revert to rexposing
resultcache for 4.2.
In the future, what I'd really like to see is a cursor-like
class for queries. Aren't we all using something like this
with the DBI modules of our favorite languages?
cur = the_layer.cursor() # implicitly opens layer
cur.queryByRect(the_rect)
while 1:
result = cur.fetchone() # or something like that
if not result:
break
...
> Daniel Morissette wrote:
>>
>> I think the nest would still be to add a $layer->getNumResults() call
>> like we have in PHP MapScript. Then you would be able to tell the
>> number of results before you start iterating.
>>
>> Actually, I think I'll add getNumResults() to mapscript.i now.
>>
>
> FYI I've created bug 614 to discuss this:
> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=614
>
> --
> ------------------------------------------------------------
> Daniel Morissette dmorissette at dmsolutions.ca
> DM Solutions Group http://www.dmsolutions.ca/
> ------------------------------------------------------------
>
> _______________________________________________
> Mapserver-dev mailing list
> Mapserver-dev at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev
>
More information about the mapserver-dev
mailing list