Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 18-02-2022, 19:27   #1
Registered User

Join Date: Jan 2017
Location: San Diego
Boat: Kelly Peterson 46
Posts: 103
Supported Zoom Levels for OpenCPN

Good day all. I have been doing drone mapping to make mbtiles of my favorite anchorages. I find the increased resolution invaluable for understanding bottom topography as well as shorline not just for navigation, but snorkeling, spearfishing etc. I have successfully made maps that I'm happy with for my favorite anchorages, however I cannot go above zoom level 19. Anything 20 or above makes the scale all wrong and it ends up not displaying properly. For example, zoom19 provides a 1:1000 scale. Zoom20 is 1:156412 which is obviously wrong. I looked in the mbtile via SQLite and see nothing defined as scale, so I assume it is a calculated value from opencpn.
Anyone experience this and/or have any suggestions?

Thanks in advance
Brad Harley
SV Perspective.
bradfordharley is offline   Reply With Quote
Old 19-02-2022, 00:44   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: Supported Zoom Levels for OpenCPN

Post a sample, please. We have probably never seen a tileset with such a high maxzoom.
There of course is nothing like a scale for mbtiles, the value shown is an estimation calculated from the content.
nohal is offline   Reply With Quote
Old 19-02-2022, 07:57   #3
Registered User

Join Date: Jan 2017
Location: San Diego
Boat: Kelly Peterson 46
Posts: 103
Re: Supported Zoom Levels for OpenCPN

Quote:
Originally Posted by nohal View Post
Post a sample, please. We have probably never seen a tileset with such a high maxzoom.
There of course is nothing like a scale for mbtiles, the value shown is an estimation calculated from the content.
Attached is a zoom level 19 (works) and a zoom level 20 (doesn't scale correctly)

Thanks in advance. If you want me to generate any other zoom levels, just let me know.
I can't attach an mbtile, so here is a link.
https://www.dropbox.com/sh/rxcslbq8l...Z-dxLxGsa?dl=0
bradfordharley is offline   Reply With Quote
Old 19-02-2022, 08:23   #4
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: Supported Zoom Levels for OpenCPN

bradfordharley...
To save some time searching, what is the geographic location of these tiles?


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 19-02-2022, 08:51   #5
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,466
Re: Supported Zoom Levels for OpenCPN

Quote:
Originally Posted by bdbcat View Post
bradfordharley...
To save some time searching, what is the geographic location of these tiles?


Thanks
Dave



Mexico Pacific Coast: center of tiles is ~
19° 32.0037' N 105° 05.1340' W
LeaseOnLife is offline   Reply With Quote
Old 19-02-2022, 09:16   #6
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: Supported Zoom Levels for OpenCPN

lol...
Thanks


@bradfordharley...
The tiles look fine to me.
Can you post a screenshot showing errors or other incorrect information that you are seeing?


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 19-02-2022, 10:09   #7
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: Supported Zoom Levels for OpenCPN

The place (more or less) as S-57/oeSENC from the future Mexico-Pacific set....
Chart scale is 1:8000
Attached Thumbnails
Click image for larger version

Name:	Captura de pantalla 2022-02-19 a las 19.05.49.jpg
Views:	46
Size:	402.1 KB
ID:	253218   Click image for larger version

Name:	Captura de pantalla 2022-02-19 a las 19.08.30.jpg
Views:	47
Size:	401.5 KB
ID:	253219  

bcn is offline   Reply With Quote
Old 19-02-2022, 10:42   #8
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,466
Re: Supported Zoom Levels for OpenCPN

Quote:
Originally Posted by bdbcat View Post
lol...
Thanks


@bradfordharley...
The tiles look fine to me.
Can you post a screenshot showing errors or other incorrect information that you are seeing?


Thanks
Dave

Doesn't work here.. for me: z19 shows, z20 does not. It is in 2 separate files and once I excluded all other tiles but z20, then no tile is shown.
LeaseOnLife is offline   Reply With Quote
Old 19-02-2022, 12:18   #9
Registered User

Join Date: Jan 2017
Location: San Diego
Boat: Kelly Peterson 46
Posts: 103
Re: Supported Zoom Levels for OpenCPN

Here are screenshots showing the zoom. I can actually view the map, it just shows in the wrong order...as in the google sat images will squash it as I zoom as openCPN thinks a zoom level 18 google sat image is 1:4000.

{edit} as an aside, running latest on windows 10. I think it will do the same on the pi, but haven't actually tried... But could if it's of value.
Attached Thumbnails
Click image for larger version

Name:	z19 screenshot.jpg
Views:	45
Size:	329.7 KB
ID:	253220   Click image for larger version

Name:	z20 screenshot.jpg
Views:	53
Size:	165.2 KB
ID:	253221  

bradfordharley is offline   Reply With Quote
Old 19-02-2022, 12:32   #10
Registered User

Join Date: Jan 2017
Location: San Diego
Boat: Kelly Peterson 46
Posts: 103
Re: Supported Zoom Levels for OpenCPN

And here is a screenshot of Zoom 21 which is pretty close to native resolution of my geotiff and the scale actually increases rather than reduces.

aside 1: I have tried this with two different apps that make mbtiles, map tiler and mapc2mapc and the behavior is identical. I expect this if the scale logic is within opencpn.
aside 2: Not related, but if curious my workflow to create these is (manual) drone survey, processed with webodm to create a geotiff, then mapc2mapc (or map tiler) to make mbtile. Great for anchorages of 'interest' where I want high resolution and can shoot on a calm day. Shows bottom formations--good for rocks. Rocks are bad for the boat, good for fishing.
Attached Thumbnails
Click image for larger version

Name:	z21 screenshot.jpg
Views:	49
Size:	87.4 KB
ID:	253222  
bradfordharley is offline   Reply With Quote
Old 19-02-2022, 17:49   #11
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: Supported Zoom Levels for OpenCPN

bradfordharley...
OCPN 5.6.0 as released supports zoom levels up to Z19. It is a simple change to support Z20, or even Z21. No one up to now has asked for this capability. I have tested this, and it seems to work fine. Could be added to a future release.


However, and just for my edification: With your uploaded tileset, I see no practical difference on-screen between Z19 and Z20. In the max OPCN rendering scale of 1:800, they look the same, on my gear.
And if that is so, why use Z20, which is 4 times the size of Z19, for equivalent geo area coverage?



Am I missing something?
Dave
bdbcat is offline   Reply With Quote
Old 19-02-2022, 19:03   #12
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 581
Re: Supported Zoom Levels for OpenCPN

19 zoom is enough!
20, 21 zoom is relevant not for satellite images, but for aerial photographs of a local small area, in such images the detail and clarity is very high. You will have to take such pictures yourself from a drone.
Baikal is offline   Reply With Quote
Old 19-02-2022, 20:04   #13
Registered User

Join Date: Jan 2017
Location: San Diego
Boat: Kelly Peterson 46
Posts: 103
Re: Supported Zoom Levels for OpenCPN

Quote:
Originally Posted by Baikal View Post
19 zoom is enough!
20, 21 zoom is relevant not for satellite images, but for aerial photographs of a local small area, in such images the detail and clarity is very high. You will have to take such pictures yourself from a drone.
With all due respect, read my post. These are drone surveys.
bradfordharley is offline   Reply With Quote
Old 19-02-2022, 20:16   #14
Registered User

Join Date: Jan 2017
Location: San Diego
Boat: Kelly Peterson 46
Posts: 103
Re: Supported Zoom Levels for OpenCPN

Quote:
Originally Posted by bdbcat View Post
bradfordharley...
OCPN 5.6.0 as released supports zoom levels up to Z19. It is a simple change to support Z20, or even Z21. No one up to now has asked for this capability. I have tested this, and it seems to work fine. Could be added to a future release.


However, and just for my edification: With your uploaded tileset, I see no practical difference on-screen between Z19 and Z20. In the max OPCN rendering scale of 1:800, they look the same, on my gear.
And if that is so, why use Z20, which is 4 times the size of Z19, for equivalent geo area coverage?



Am I missing something?
Dave
Good question, and I don't really think you're missing anything. At Z19, it's 91%(according to my maptile program) of the resolution of my image file and there are very slight differences than Z20.
That said, I purposefully scaled down my source image to try and find a balance with size. This example shows the limit of the source image in going to/beyond Z20, but I can easily increase resolution of the source geotiff as my original survey was originally 4k. If it's an easy program change, going up to Z21 or 22 should suffice for anything I could imagine imaging.

As an aside, I would happily provide sources images and re run processing of the surveys if you want different image resolutions etc. to play with.

I do appreciate the responsiveness and discussion.
Brad
SV Perspective
bradfordharley is offline   Reply With Quote
Old 19-02-2022, 21:00   #15
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: Supported Zoom Levels for OpenCPN

Brad...
As I recall, the main reason we originally stopped at Z19 was because neophyte users of the tile preparation software supposed that more resolution must be "better". And so OpenCPN was presented with truly gigantic tile sets, covering enormous geo areas, which could not possibly be rendered at full detail on any reasonable system. Tile sizes of gigabytes....

We stopped at Z19 to save everybody the trouble of trying to load unusable tile sets.
Over time, tile prep code users have learned the practical limits of mbtile usage, and these days we are mostly seeing small-ish photo overlays, instead of chart images. That's good.


In your use case, I assume you will limit the geographic area sufficiently to manage tile set size....


We will increase to Z21 on next maintenance release.


Dave
bdbcat is offline   Reply With Quote
Reply

Tags
enc, opencpn


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
Mbtiles charts Multiple zoom levels phiggins OpenCPN 1 06-05-2019 19:06
Most supported GPS for OpenCPN on OS-X? chris95040 OpenCPN 2 01-08-2016 22:31
Opencpn 4.4.0 - Weather Routing "Grib Plugin Not Supported" TiOlivier OpenCPN 7 22-07-2016 06:22
Charts not showing at all zoom levels rowansmith OpenCPN 8 22-06-2016 04:31
Windows Phone - OpenCPN file type not supported zstine OpenCPN 4 01-04-2014 08:36

Advertise Here


All times are GMT -7. The time now is 04:05.


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.