MigGat - I think this must be asked before but ...
I think this must be asked before but I can't find it. Is there any way to use o-chart maps with Freeboard-SK. I'm aware of all legal stuff, but thought that it could be used in AvNav via dongle, why not in Freeboard?
18 Replies
Freeboard-SK supports common vector & raster & chart sources served via the
charts-plugin
.
Encrypted chart formats will need to be decrypted prior to being published by the charts-plugin.i have not done it, but afaik AvNav provides a RNC service on the local network. you can add that to the charts plugin as an external chart source (like you'd add google maps or similar). that will add the chart to the Signal K chart api and Freeboard will pick it up from there
so AvNav does this in cooperation with o-charts, using their code for decrypting the chart data
Thanks for the info, i will dig into it! Having that option would make Freeboard the ultimate plotter for me 😄
Please share your results!
I'm making some advances on the decrypting process, hope it will be solved today, but what formats can signalk-chart read? Specially since this are vector charts, with annotations on it
see my direct message
Making some progress here! But sadly, the approach i wanted to pursue, which involved using OpenCPN for rendering, so no license was "bypassed" has turned almost impossible.
Well, not impossible, but honestly quite painful to develop and and very error prone. So at this point I'm not sure if this will even be "publisheable", for legal reasons 🤷🏻♂️

What i ended upm doing is an unofficial clone of o-charts plugin for opencpn. It's basically the same code, but it exposes WMS and tilelayer endpoints to fetch the charts:

There's still some tweaking to do, but is already functional. For obvious reasons, i cannot publish it to the OpenCPN plugin repository, but at least with this plugin (which replaces o-charts plugin), you can get your o-charts everywhere in your network!
Main caveat is that of course, OpenCPN needs to be ruhnning, even if minimized, because it HAS TO load the plugin
That's the way i found to be as closed as possible to comply with the original EULA, because none of my code has anything to do with chart decryption. I'm just using what the original plugin does.
That being said, my next step is to add a feature query, but i don't think Freeboard supports that, am i right? @Teppo Kurki
You can add charts Freeboard-SK via a url to a WMS or WMTS server.
Layers button-> charts -> +
Enter the URL and select from the list.Yup. that¡s what is shown in the screenshot
It's working fine, but i also implemented an enpooint to get feature info in coordinates, alike openCpn right click -> object query
My question was is Freeboard does support that kind of interaction
Not familiar with opencpn. Do I assume that what you are referring to is a list of features on the chart?
FSK doesn't support that for charts right now but if the returned list is geojson features then it could quite easily.
Actually I could implement and endpoint in any suitable format. The goal is simply to be able to click on let's sa a buoy or a light in the chart and get all the information that the vector chart has about it
If the endpoint accepted a coordinate and returned a GeoJSON
FeatureSet
with each feature's properties
populated with the relevant attributes, that would be a good start.Tested with a simple maplibre implementation:

The response to: http://192.168.0.146:9012/feature-info?lat=41.20620363455549&lon=1.729670415056603&radius=0.0002
would be something like this:
(don't know how to paste collapsed code snippets sorry :S)
wrap text in three ` for code snippet.
Another option is for the client to use the WMS GetFeatureinfo request for the coordinate.... does your WMS implementation support this?
Not currently, but I can add it easily