Ticket #1115 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

OGRShapeDataSource.Open leaves CPLErrors on success

Reported by: ari.jolma@… Owned by: warmerdam
Priority: high Milestone:
Component: OGR_SF Version: unspecified
Severity: normal Keywords:
Cc: ari.jolma@…

Description

Calling OGRShapeDataSource.Open on a directory, which has lone dbf files without
shp files, leaves CPLErrors on success if shpopen.c is compiled with USE_CPL
defined. This could be probably fixed by calling CPLErrorReset in the function
if the result is ok.

Change History

Changed 7 years ago by warmerdam

I have modified the shape driver to clear the error in the case of a lone
dbf.   Leaving to Ari to test in his perl test case.

Changed 7 years ago by ari.jolma@…

(In reply to comment #1)
> I have modified the shape driver to clear the error in the case of a lone
> dbf.   Leaving to Ari to test in his perl test case.

This is not tested in the swig/perl/test.pl but I confirm that the bug is fixed.
Note: See TracTickets for help on using tickets.