Opened 11 years ago

Closed 8 years ago

#4728 closed defect (fixed)

[Shapelib - PATCH] Distinguish error case from empty intersection case in SHPSearchDiskTreeEx() and SBNSearchDiskTreeInteger()

Reported by: Even Rouault Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: unspecified
Severity: normal Keywords: shapelib
Cc:

Description

Currently, SHPSearchDiskTreeEx() and SBNSearchDiskTreeInteger() return a NULL pointer, if there was an error during the search or if the intersection is empty. Those are 2 different situations. The fix returns a non NULL pointer when the intersection is empty (with a count still at 0 of course).

Attachments (1)

shapelib_ticket4728.patch (2.3 KB ) - added by Even Rouault 11 years ago.

Download all attachments as: .zip

Change History (4)

by Even Rouault, 11 years ago

Attachment: shapelib_ticket4728.patch added

comment:1 by Even Rouault, 11 years ago

r24638 /trunk/ (4 files in 2 dirs): Shape: distinguish error case from empty intersection case in SHPSearchDiskTreeEx() and SBNSearchDiskTreeInteger() (#4728)

comment:2 by Jukka Rahkonen, 8 years ago

This is also ready for closing I think.

comment:3 by Jukka Rahkonen, 8 years ago

Resolution: fixed
Status: newclosed

Fixed 3 years ago.

Note: See TracTickets for help on using tickets.