Opened 9 years ago

Closed 3 years ago

#4564 closed enhancement (wontfix)

Add maxFeatures option to OGRDataSource::CopyLayer

Reported by: Ari Jolma Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: unspecified
Severity: normal Keywords:
Cc:

Description

maxFeatures option in CopyLayer? would be useful at least in GML datasource (which does not override the default) and WFS implementations.

I guess this could be quite simple to do and not break anything as the CopyLayer? method has an options arguments. The added overhead is minimal.

Change History (2)

comment:1 Changed 6 years ago by Jukka Rahkonen

A question to Ari: Wouldn't it be even better if it had also an option for offset? Like &COUNT=&START_INDEX in WFS and LIMIT x OFFSET y in PostgreSQL and SQLite.

comment:2 Changed 3 years ago by Even Rouault

Resolution: wontfix
Status: newclosed

Probably no longer needed with the availability of GDALVectorTranslate() that has a -limit option

Note: See TracTickets for help on using tickets.