Skip to main content

River forecasting package

Project description

kmz custom maps

A simple python script for processing a kmz image overlap so that it conforms to the requirements to be used as a Garmin custom map.

Garmin provides instructions for creating a custom map here

https://support.garmin.com/en-US/?faq=cVuMqGHWaM7wTFWMkPNLN9

However, the catch is that the kmz files must conform to the requirements listed here

https://support.garmin.com/en-AU/?faq=UcO3cFueS12IwCnizrJjeA

The most restrictive part is that the jpegs included in the kmz cannot have more than 1024 by 1024 pixels.

This python script solve this problem by taking a kmz file with a single larger jpeg and turning it into a kmz file with a number of smaller tiled jpegs.

I have done minimal testing of this, other than checking that it does work on my Garmin GPSMAP 66i. So use at own risk.

Requirements

  • Python >= 3.9

Usage:

pip install kmz_custom_maps
python -m kmz_custom_map.run ./path/to/map.kmz

The processed kmz will be added to the directory the script was run from.

For a 1:25k topo map converted to a jpeg using 200 pixels per inch. this creates a kmz with about 40 jpeg images. I would be mindful to not have too many of these custom maps on a garmin device at any time as it does seem to slow down rendering.

Optionally, if you want to create many separate kmz files corresponding to tiles from the original kmz you can run it this way

python -m kmz_custom_map.run --combine ./path/to/map.kmz

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kmz_custom_maps-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kmz_custom_maps-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file kmz_custom_maps-0.1.0.tar.gz.

File metadata

  • Download URL: kmz_custom_maps-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for kmz_custom_maps-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2328fb2ea926882cec340096991d721a8087d92855dcd5cbeaef64c5623b9691
MD5 3e26eec9c7a8653b8ac587c926b9cfc1
BLAKE2b-256 3e830a7a33ba70139e4e153a86655c846224b498ba5cf4ed396dd4a16e38302b

See more details on using hashes here.

File details

Details for the file kmz_custom_maps-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kmz_custom_maps-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10f45a4296c51c97d5c329a02f2445e58db134edbea29fd5c3dcf70999d35a87
MD5 54b6060fe7476fdda37d3e88dac32825
BLAKE2b-256 856cdd088a3ea1b56740b43f2b5e7d0cdd66a9324b738cea606c1424b9ef42b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page