Opened 12 years ago

Closed 12 years ago

#4401 closed enhancement (fixed)

[Patch]Extend test_ogrsf with a test case for delete&create feature

Reported by: rxna Owned by: Even Rouault
Priority: normal Milestone: 1.9.0
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: test_ogrsf
Cc:

Description

the new test case tries to delete the last feature from the test layer, then create it back.

Attachments (1)

test_ogrsf.patch (5.6 KB ) - added by rxna 12 years ago.

Download all attachments as: .zip

Change History (4)

by rxna, 12 years ago

Attachment: test_ogrsf.patch added

comment:1 by rxna, 12 years ago

Summary: Extend test_ogrsf with a test case for delete&create feature[Patch]Extend test_ogrsf with a test case for delete&create feature

comment:2 by Even Rouault, 12 years ago

Owner: changed from warmerdam to Even Rouault

Working on integrating it. It is not immediately trivial as not all drivers behave exactly the same.

comment:3 by Even Rouault, 12 years ago

Milestone: 1.9.0
Resolution: fixed
Status: newclosed

r23602 /trunk/ (3 files in 3 dirs): test_ogrsf: add a test case for delete&create feature; declare OLCDeleteFeature for PG driver; adapt ogr_pcidsk.py to be 'expected_fail' on the new test (#4401, based on patch by rxna)

I've make a few changes in your patch itself to use SetNextByIndex() instead of iterating over the whole layer, which might be faster in some cases. And I've changed a bit a few changes, in particular because some drivers like Shapefile don't recreate features they have deleted with the same FID (emitting an INFO in that case).

Note: See TracTickets for help on using tickets.