wellenvogel / avnav-ocharts-provider

OCharts for AvNav
MIT License
2 stars 3 forks source link

Correctly handle chart open error 3 (PI_INIT_FAIL_NOERROR) #47

Closed wellenvogel closed 1 year ago

wellenvogel commented 1 year ago

Some chart sets (like "British Isles") contain charts the create an PI_INIT_FAIL_NOERROR (3) when opening them by the o-charts plugin. The AvNav ocharts provider currently treats this as a serious error - and if there are too many such errors for a chart set it will be marked as failed and will not be usable. By cross checking the plugin and OpenCPN code those errors simply should be ignored and the affected charts simply should not be loaded.

wellenvogel commented 1 year ago

The errors will be ignored and the chart set status will contain both the number of chart candidates (second) and the number of successfully opened charts (first)

145/147, minZoom=10, maxZoom=16
wellenvogel commented 1 year ago

release 20230702