Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msOGRFileOpen(): reset OGR error after trying to run 'SELECT spatiali…
…te_version()' for SQlite and GPKG input datasets
- Loading branch information
4e4885f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rouault - thanks for this, the OGR error is gone, and the image can be successfully created.
Just to note, I built both MapServer and GDAL from source and applied this patch. Interestingly the error is also gone without the above patch when using GDAL master - (2.3.0dev 2017/99/99).
When reverting back to GDAL 2.2.3 (released 2017/11/20) the MapServer OGR error reappears unless the above patch is used. I assume something changed with the CPLPopErrorHandler between 2.2.3 and 2.3.0?
4e4885f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but likely in the GPKG driver we call CPLErrorReset() now