Opened 12 years ago

Closed 6 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:


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 by Jukka Rahkonen, 9 years ago

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 by Even Rouault, 6 years ago

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.