|
Post by alexfish on Mar 6, 2021 12:58:41 GMT 1
Hi All
as part of this thread I will be using maps
For SeaMaps go to the openseamp the free nautical charst . go to downloads and select the area
click on the downloads select format : mbtiles . note the size IE ensure esp on rpi there is enough disk space for the download conversion . if 1.5gb = 1.5 *3 , can recover space by deleting the mbtiles after conversion
for conversion use mb-util its a python script . and need to convert to png
example
cd Downloads git clone https://github.com/mapbox/mbutil.git cd to the mbutil
command
mb-util --image_format png /pathto/*.mbtiles seamaps in my case
mb-util --image_format png /home/pi/Downloads/OSM-OpenCPN2-NorthSea-20201106-2207.mbtiles seamaps
in there will be there will be the png files + a json file . leave as is.
if not want seamaps , will be posting details of the bacon tile server for openstreetmap later
BR Alex
|
|
|
Post by alexfish on Mar 14, 2021 21:37:25 GMT 1
nearest api for what3words was based on python wrapper
https://github.com/what3words/w3w-python-wrapper it bemoans at app key KeyError: "'W3W_API_KEY'", so puzzled
rest in popular = 'J'
BR Alex
|
|
|
Post by alexfish on Mar 14, 2021 22:33:34 GMT 1
What3Words , I can sum up with what2words git fail on V3 and followed instructions HEREon RPI I get res = geocoder.convert_to_3wa(what3words.Coordinates(51.484463, -0.195405)) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "build/bdist.linux-armv7l/egg/what3words/what3words.py", line 82, in convert_to_3wa File "build/bdist.linux-armv7l/egg/what3words/what3words.py", line 280, in _request File "/usr/lib/python2.7/dist-packages/requests/api.py", line 75, in get return request('get', url, params=params, **kwargs) File "/usr/lib/python2.7/dist-packages/requests/api.py", line 60, in request return session.request(method=method, url=url, **kwargs) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 533, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 646, in send r = adapter.send(request, **kwargs) File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /v3/convert-to-3wa?key=what3words-api-key&language=en&coordinates=51.484463%2C-0.195405&format=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5d14910>: Failed to establish a new connection: [Errno 111] Connection refused',)) >>> geocoder = what3words.Geocoder("what3words-api-key", end_point='http://localhost:8080/v3')
|
|
|
Post by alexfish on Mar 15, 2021 6:02:58 GMT 1
Hi Joe
Thanks for testing
+ thanks for the link. ADDED , looks like this could cost money, and has limits, + only a comment , when at sea and out of range of a connection ?
In Past I posted details of Embedded Python using BaCon, so possible a half way Compromise , I hope, as Can see , will not have tested this bit as of yet.
I am Busy for 3/4 days , back late at night ...
in mean time wonder where and or what three.little.piggies is or means, can't imagine that four.little.piggies will be adjacent to three.little.piggies
Thanks again + BR Alex
|
|