Opened 8 years ago

Closed 3 years ago

#5374 closed enhancement (wontfix)

Progress callback on OGR GetNextFeature

Reported by: oleinik Owned by: warmerdam
Priority: normal Milestone: closed_because_of_github_migration
Component: OGR_SF Version: 1.10.1
Severity: normal Keywords:


Can your add possibility to get progress callback during GetNextFeature? or get current position in reading datasource as separate function. This method can use approximated value, something like file position.

Change History (5)

comment:1 Changed 8 years ago by rouault

With getfeaturecount and a counter incremented at each getnextfeature you should be able to have the progress

comment:2 Changed 8 years ago by oleinik

On the large dxf files getfeaturecount works very long and as result reading process time is doubled.

comment:3 Changed 8 years ago by Even Rouault

ok, I understand the use case better. That might be a worthwhile addition. I'd rather see that as a new method at the layer level than as a callback. If that's something important to you, you might want to contract a GDAL developer to implement it.

comment:4 Changed 8 years ago by oleinik

Thanks for your suggestion. But I'm not so familiar with C++. I'm using GDAL/OGR with Delphi.

comment:5 Changed 3 years ago by Even Rouault

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub?. If you believe this ticket is still valid, you may file it to if it is not already reported there.

Note: See TracTickets for help on using tickets.