This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # coding=utf-8 | |
| # "DATASHEET": http://cl.ly/ekot | |
| from __future__ import print_function | |
| import serial, struct, sys, time | |
| DEBUG = 1 | |
| CMD_MODE = 2 | |
| CMD_QUERY_DATA = 4 | |
| CMD_DEVICE_ID = 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # First convert BSB to GeoTIFF format using the KAP file | |
| gdal_translate -of GTiff 11392_1.KAP 11392_1.tif | |
| # Reproject to WGS84 (geodetic) to use in TileMill | |
| gdalwarp -t_srs EPSG:4326 11392_1.tif 11392_1_wgs.tif | |
| # Then simply add your new `11392_1_wgs.tif` file to TileMill as a new raster layer. |