Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 03-06-2023, 14:48   #1
Registered User

Join Date: Apr 2010
Posts: 26
Mbtiles gets turned off at random (red X)

The problem: The mbtiles charts get turned off at random with red x at the bottom when I shift between O-charts and mbtiles. Sometimes opencpn only displays the mbtile that is in the middle, the rest of the mbtiles are not shown and no indication with red x. If I shut down the program with mbtiles displayed it will sometimes start up with all of them with red X and sometimes they will be enabled and shown.

I have created the mbtiles using mapc2mapc64 from geotiff.

System:
Win10 64 bit
i5-10210U
32Gbyte RAM
230 Gbyte SSD
1920x1080 screen

Charts, they are in 3 separate groups so I can select between them
O-charts installed for Sweden (works great)
3 Gbytes of hi res mbtiles, 0.25 meter/pixel (in total 46 files)
680 Mbytes of mbtiles from drone photogrammetry, 0.1 meter/pixel

The reason for mbtiles is that the charts in Sweden is lacking a lot of data in shallow areas.

Click image for larger version

Name:	1.jpg
Views:	48
Size:	88.2 KB
ID:	276210

Click image for larger version

Name:	2.png
Views:	37
Size:	177.5 KB
ID:	276211

Click image for larger version

Name:	3.png
Views:	37
Size:	246.4 KB
ID:	276212

Click image for larger version

Name:	4.png
Views:	38
Size:	386.0 KB
ID:	276213

Cheers
Hakan
herkam is offline   Reply With Quote
Old 03-06-2023, 23:22   #2
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 466
Mbtiles gets turned off at random (red X)

This has been happening for the last couple of releases. Most of the time only the mbtiles file that covers the centre of the screen gets displayed but just occasionally they all get drawn correctly.
AedanC is online now   Reply With Quote
Old 03-06-2023, 23:28   #3
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 466
Re: Mbtiles gets turned off at random (red X)

Look at post number 4 in this thread.

https://www.cruisersforum.com/forums...-a-271721.html
AedanC is online now   Reply With Quote
Old 04-06-2023, 13:38   #4
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,384
Re: Mbtiles gets turned off at random (red X)

Hakan...
What version of OpenCPN are you using?


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 04-06-2023, 15:33   #5
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 466
Re: Mbtiles gets turned off at random (red X)

It happens on 5.8.0 and 5.8.2 for me.
AedanC is online now   Reply With Quote
Old 04-06-2023, 16:47   #6
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,384
Re: Mbtiles gets turned off at random (red X)

Aedan....
I think we have two issues here:


1. MBtiles that are not covering the center of the screen do not appear in chart bar.


2. Sometimes, MBtile keys in the chart bar have a red "X".


These are different problems. Please clarify your observations.
Thanks
Dave
bdbcat is offline   Reply With Quote
Old 05-06-2023, 06:55   #7
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 466
Re: Mbtiles gets turned off at random (red X)

Hi Dave,


Here is an example to show what I mean for issue 1 above, I'll address no 2 separately.


Two example mbtiles can be found at: https://drive.google.com/drive/folde...usp=drive_link, then look at location 51° 31.1419' N 009° 09.7043' W.


If that location is in the centre of the screen then both mbtiles will be drawn, so you'll get something like the attached file called DesiredView. However if you pan just a little east or west then one or the other mbtile will be drawn and other will disappear, see pictures PanSlightlyEast and PanSlightlyWest. Note that their outlines do remain but they do not appear on the piano bar.


If you need anything more just let me know.


Aedan
Attached Thumbnails
Click image for larger version

Name:	Desired_view.jpg
Views:	31
Size:	404.5 KB
ID:	276274   Click image for larger version

Name:	PanSlightlyWest.jpg
Views:	34
Size:	387.2 KB
ID:	276275  

Click image for larger version

Name:	PanSlightlyEast.jpg
Views:	28
Size:	398.9 KB
ID:	276276  
AedanC is online now   Reply With Quote
Old 05-06-2023, 07:02   #8
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 466
Re: Mbtiles gets turned off at random (red X)

Dave,


Regarding issue no 2 above, to reproduce it using the same example files as above do the following:


Pan until both mbtiles are visible.


Exit OpenCpn and then open it again.


I get both mbtiles turned off but visible on the piano bar, see picture below.


Best regards,


Aedan
Attached Thumbnails
Click image for larger version

Name:	BothXedOnStartup.jpg
Views:	30
Size:	365.2 KB
ID:	276277  
AedanC is online now   Reply With Quote
Old 05-06-2023, 15:57   #9
Registered User

Join Date: Apr 2010
Posts: 26
Re: Mbtiles gets turned off at random (red X)

Hi Dave,
I'm using 5.8.2-0.

if it stops showing some mbtiles without any piano bar it will restore all mbtiles if you select the chart group with mbtiles again used the short cut key. If you select using the menu nothing happens. It also helps to switch between vector chart and mbtiles to restore it.

One way to get some of the mbtiles to be disabled with piano bar is to switch between two chart groups with mbtiles and pan a bit.

/hakan
herkam is offline   Reply With Quote
Old 06-06-2023, 18:44   #10
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,384
Re: Mbtiles gets turned off at random (red X)

AedanC...
Regarding issue #2:
This is an intentional design decision. Logic goes like this:


If MBTiles overlays appear in a Chart Group that contains other types of charts (e.g. ENC or RNC), then MBTiles are disabled (red-X) intentionally on OCPN startup.
The idea is that many (most?) MBTiles overlays are "not suitable for critical navigation", as they often are georeferenced but un-validated photo overlays.
So this is a safety feature of sorts.


I can see an argument when using MBtiles that are not photo overlays, as your samples show, that they should be loaded verbatim.
But I am not convinced. The little extra effort required to click the piano key might be a mental signal that you are shifting from a validated navigation chart to something else...


Sadly, MBTiles do not contain any metadata describing the quality, provenance, or even Unit Of Measure for soundings. Quick, what is the UOM for soundings on your sample tiles? I cannot tell, either.



So my opinion is to play this conservatively...


Thoughts?
Dave
bdbcat is offline   Reply With Quote
Old 06-06-2023, 23:22   #11
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 466
Re: Mbtiles gets turned off at random (red X)

Hi Dave,

That all makes sense, I’m all for being conservative on such matters. As you say a click or two is not a big effort but could be a reminder. Thanks for the clear reply.

Is there anything I can do to provide more information regarding #1 for you?

Aedan
AedanC is online now   Reply With Quote
Old 07-06-2023, 05:13   #12
Registered User

Join Date: Apr 2010
Posts: 26
Re: Mbtiles gets turned off at random (red X)

In my case the mbtiles are much more accurate than the o-charts and they are from an official source with guaranteed accuracy for the georeferencing (I paid for the geotiff).

I would prefer a setting in the config file not disable the mbtiles, it could be default off.

It is a safety feature to be able to quickly change between vector chart and mbiltes using the short cut key. I use my boat in a very rocky archipelago with poor charts and I need the information quickly, having to deal with mouse handling when the boat is jumping around is not safe.

Cheers
Hakan
herkam is offline   Reply With Quote
Old 07-06-2023, 11:17   #13
Registered User

Join Date: Apr 2010
Posts: 26
Re: Mbtiles gets turned off at random (red X)

By the way, I have the mbtiles and o-charts in separate chart grups to be able to switch between them using short cut keys, but they still gets disabled randomly.
/Hakan
herkam is offline   Reply With Quote
Old 07-06-2023, 12:09   #14
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,683
Re: Mbtiles gets turned off at random (red X)

All o-charts ENCs are from official sources with identical content of "official charts". Just can't be called officials as that badge requires an official distribution channel as well - see S-63 and VARs.



Guaranteed geo-referenced correctly if the official source does not fail.


Are you referring to raster charts as you are mentioning geotiff? Which ones?
bcn is offline   Reply With Quote
Old 07-06-2023, 13:02   #15
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,384
Re: Mbtiles gets turned off at random (red X)

Hakan...
If MBtiles are in separate group that contains no other chart types, then they will be also disabled from startup if any tileset is larger than 5 GBytes in size. This is a performance optimization for low power systems.


Is this the case for any of your tiles?
If not, I'd like to see more specifics on the case.
Thanks
Dave
bdbcat is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Garmin AIS800 power off when plotter turned off? PiperBill Marine Electronics 3 21-04-2021 15:15
Android 8 - GPS Turns off when screen turned off UFO General Sailing Forum 2 25-07-2018 18:11
Hey ! Who Turned Off the Hot Water ??? mjwarner Plumbing Systems and Fixtures 12 23-05-2011 08:59
The alternator gets turned off. mestrezat Electrical: Batteries, Generators & Solar 1 12-12-2008 05:21
Manta Display at Miami Show 2008, why I was turned off Turnone Multihull Sailboats 34 21-02-2008 07:41

Advertise Here


All times are GMT -7. The time now is 01:35.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.