Skip to content

Greenroom-Robotics/enc-mapbox-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ENC Mapbox converter

This tool is used to convert ENC files (S-57) to mbtiles.

Internally this uses:

  • enc to geojson using gdal's ogr2ogr
  • geojson to mbtiles using mapbox's tippecanoe

Requirements

  • Git
  • Docker

Usage

This tool uses a bunch of tools internally so it has been dockerised with a simple cli exposed.

  1. Clone this repo:
git clone git@github.com:Greenroom-Robotics/enc-mapbox-converter.git
  1. Build the docker container
docker build . -t enc-converter
  1. Run the cli. Be sure to replace <absolute_path_to_this_repo>
docker run -it -v /$PWD:/app enc-converter python3 cli.py
  1. You will be prompted for an input file and output name. For example.
Input file path: /app/example/US5OH10M/US5OH10M.000
Output file name: output_mb_tiles_file

  1. Look in ./output_mbtiles and you will find your .mbtiles file!

Releases

No releases published

Packages

No packages published