[fdo-internals] resetting a feature reader

Badreddine Karoui badreddine.karoui at autodesk.com
Fri Jan 26 14:04:22 EST 2007


Train,

 

   Did you try the scrollable reader(ExtendedSelect). You can call
GetFirst and iterate through the reader again. Or you can call GetLast
and do that in reverse.

 

Badreddine

 

  _____  

From: fdo-internals-bounces at lists.osgeo.org
[mailto:fdo-internals-bounces at lists.osgeo.org] On Behalf Of Traian
Stanev
Sent: January 26, 2007 1:42 PM
To: FDO Internals Mail List
Subject: RE: [fdo-internals] resetting a feature reader

 

 

 

In the case of a spatial query (the most likely case), feature readers
for providers like SDF and SHP have a list of the feature IDs that match
the query. So the reader can be reset for free. I realize this is not
the case for all providers, but the lack of a reset means I have to pay
the select penalty for all providers even though I don't need to for
some.

 

 

 

  _____  

From: fdo-internals-bounces at lists.osgeo.org
[mailto:fdo-internals-bounces at lists.osgeo.org] On Behalf Of Orest
Halustchak
Sent: Friday, January 26, 2007 1:36 PM
To: FDO Internals Mail List
Subject: RE: [fdo-internals] resetting a feature reader

Hi,

 

Unless the provider internally has cached the results of the select or
provided some other tracking of the select results (e.g. as needed by
the new scrollable feature reader), the provider effectively would have
to re-execute the query anyway. So, I don't think you'd be saving
anything.

 

Thanks,

Orest.

 

  _____  

From: fdo-internals-bounces at lists.osgeo.org
[mailto:fdo-internals-bounces at lists.osgeo.org] On Behalf Of Traian
Stanev
Sent: Friday, January 26, 2007 12:23 PM
To: fdo-internals at lists.osgeo.org
Subject: [fdo-internals] resetting a feature reader

Hi,

 

How hard would it be to provide a Reset() capability for the
FdoIFeatureReader interface?

 

The example use for that would be for two-pass rendering of features.

I know that one could re-execute the Select command to get the same
reader, but this would in theory incur a higher penalty, since it would
have to redo a spatial query for example.

 

 

Traian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fdo-internals/attachments/20070126/6bd63b62/attachment-0001.html


More information about the fdo-internals mailing list