OpenSeaMap / online_chart_ol3

OpenSeaMap chart framework - an interative online chart
https://alpha.openseamap.org
GNU Affero General Public License v3.0
13 stars 5 forks source link

Recreate the Europe Map #233

Open pgrawehr opened 4 years ago

pgrawehr commented 4 years ago

Would it be possible to recreate the Europe map? Currently, both the KAP format and the mbtiles format only contain level 16 for this map, and no lower levels. This causes strange issues both in OpenCPN as well as in Signalk/Freeboard-sk, where nothing is shown until exactly that level is reached. Other maps (like the one for the baltic sea) does not have this problem, although it could start at lower levels as well.

To be really usable, the maps should have all levels between 2 and at least 16 (better 17 or 18 for harbours), or maybe every second level in-between.

I could create the maps myself, but I want to avoid downloading that many tiles just for myself. (I'll eventually need all european waters from St. Petersburg down to Athens)

stevo01 commented 4 years ago

Hi

Would it be possible to recreate the Europe map? Currently, both the KAP format and the mbtiles format only contain level 16 for this map, and no lower levels. This causes strange issues both in OpenCPN as well as in Signalk/Freeboard-sk, where nothing is shown until exactly that level is reached.

Thanks for your feedback. The maps are based on MOBAC project files stored here: https://github.com/stevo01/SeaChartCreator/tree/master/sample/atlas/mobac/inland-water-ways Feel free to update the files and send me pull request. After a review I can integrate your changes and build new kap and mbtile files.

Other maps (like the one for the baltic sea) does not have this problem, although it could start at lower levels as well.

The reason is that the project files come from different authors. The authors used different tools and strategies to design the maps. Biggest challenge is to reduce the number of needed tiles and cover everything whats important for the navigator.

To be really usable, the maps should have all levels between 2 and at least 16 (better 17 or 18 for harbours), or maybe every second level in-between.

There is a wiki article available which describes how to "design a chart": https://wiki.openseamap.org/wiki/OpenSeaMap-dev:De:Chart-Designer

pgrawehr commented 4 years ago

Thanks for the links, I'll have a look at that.

pgrawehr commented 4 years ago

Question: Can your tool handle non-square (polygon-shaped) areas, as MOBAC can? Just curious: What's the advantage of your tool over directly using Mobac?

stevo01 commented 4 years ago

Question: Can your tool handle non-square (polygon-shaped) areas, as MOBAC can? Just curious: What's the advantage of your tool over directly using Mobac?

Honestly, I haven't figured that out yet. The "Chart Designer" is based on Mobac and most functions are available in both applications.

pgrawehr commented 4 years ago

@stevo01 I've done Lake Constance as a first start. It works fine with SignalK, but OpenCPN only displays one single small section of the map with only one resolution. Any idea how to analyze that?

(I would upload my created map, but Github doesn't like anything > 10MB 👎 )

stevo01 commented 4 years ago

@pgrawehr: have you generated/tested mbtiles or kap files? I will generate both and give you feedback...

pgrawehr commented 4 years ago

I have created mbtiles, because that works in both applications (or is supposed to work in both...)

stevo01 commented 4 years ago

@pgrawehr: next question: Which application do you used for generation of the mbtiles?

stevo01 commented 4 years ago

I generated mbtiles with OpenSeaMap today. The size of the File is around 50MB. The parts marked as polygon are not included because the SeaChartCreator Application processes only the "map" elements and not the "PolygonMap" from mobac project files.

OpenSeaMap in version 5.0.0 is able to open the map but shows just a small part of the map in lower zoom level. (I think there is a bug in my mbtile generator) The presentation of the map in high zoom level is bad because the areas defined as "polygon" are missing".

konstanz

Can you replace the "polygon maps"? I did not support polygons because I cannot use them for generation of KAP files...

pgrawehr commented 4 years ago

I used Mobac for generating the mbtiles file. OpenCPN (From the screenshot that's what you're using) just shows one very small tile of the whole map for me. I think it has nothing to do with the polygon regions, but I'll try to eliminate those.

stevo01 commented 4 years ago

I used Mobac for generating the mbtiles file. OpenCPN (From the screenshot that's what you're using) just shows one very small tile of the whole map for me. I think it has nothing to do with the polygon regions, but I'll try to eliminate those.

👍

pgrawehr commented 4 years ago

@stevo01 I've added an XML that uses only rectangles now. Needs a bit more tiles, but should do the trick. Again, I've used mobac to create the Mbtiles file. Still the issue for me remains: In OpenCPN, only a small fraction of the map is visible, the SignalK chart server is rendering the maps correctly. I do not know how to create KAP with Mobac, it doesn't seem to be in the list of available formats.

stevo01 commented 4 years ago

I generated a mbtile file with scripts from SeaChartCreator project and made upload to ftp server. The file is available for download: https://ftp5.gwdg.de/pub/misc/openstreetmap/openseamap/charts/mbtiles/test/OSM-OpenCPN2-BodenseeTest.mbtiles

note: OpenCPN seems to work with the file.

pgrawehr commented 4 years ago

@stevo01 : Yes, this map works with both tools I have tried (OpenCPN and SignalK). Not sure what is different to the one I generated myself. I'll investigate later, when I find time.

I'll go ahead then and prepare the XML for other regions that I think need updating/fixing.

stevo01 commented 4 years ago

Ok. Thanks for support. I plan to review the map with other OSM team member and give you feedback next days.

stevo01 commented 4 years ago

@pgrawehr: please send me your telephone number and / or email to project@openseamap.org.

stevo01 commented 3 years ago

I created and tested new map for Lake Constance. This map includes maps in different zoom levels and each zoom level covers complete area of the lake. Download: https://ftp5.gwdg.de/pub/misc/openstreetmap/openseamap/charts/kap/OSM-OpenCPN2-KAP-LakeConstance.7z