Skip to content
/ naru Public
generated from WASAC/naru

Vector Tile Academy (VTA) code for Raspberry Pi (not actively maintained. Replaced by washi)

License

Notifications You must be signed in to change notification settings

narwassco/naru

Repository files navigation

This project is not actively maintained at present. However, opteo/kokoromi-* series are developed using naru.

naru

deploy GitHub Docker Cloud Automated build Docker Image Size (latest by date)

Vector Tile Academy (VTA) code for Raspberry Pi

Background

This repository is the Raspberry Pi implementation for Vector Tile Academy.

Use

Log in to your Raspbian and then execute the following.

Install and download (requires internet connection)

curl -sL https://unvt.github.io/equinox/install.sh | bash -
git clone https://github.com/unvt/naru.git
cd naru
rake inet:install # install extra software
vi .env #specify OSM regison and area for tiles
rake inet:download # donwload source geospatial data for exercise
rake inet:sprite # download and generate sprite files

First time exercise

rake inet:download # download osm.pbf
rake inet:mbgljs # download mapbox-gl-js package
rake js # rollup javascript code
rake inet:sprite # download maki and build sprite
rake inet:fonts # download fonts and create glyphs
rake tiles # create mbtiles under src folder
rake style # create style.json
rake host # host unvt on budo

Advanced exercise

rake inet:mbgljs
rake js
rake inet:fonts
rake inet:sprite
rake optimizer # analyze tiles.mbtiles
rake shaver

Shutdown Raspberry Pi

sudo poweroff

Now it is OK to disconnect Raspberry Pi.

Implementation details

List of software installed by rake inet:install

Node.js

Ruby

policy

the list shall be minimized, moving items to equinox.

Run on Docker

  • for creating tiles.mbtiles from the latest osm.pbf
docker build . --tag unvt/naru
docker run -v $(pwd):/usr/src/app -p 9966:9966 -it unvt/naru

cd /usr/src/app
vi .env #specify OSM regison and area for tiles
rake inet:download # download osm.pbf
rake inet:mbgljs # download mapbox-gl-js package
rake js # rollup javascript code
rake inet:sprite # download maki and build sprite
rake inet:fonts # download fonts and create glyphs
rake tiles # create mbtiles under src folder
rake style # create style.json
rake optimizer # analyze tiles.mbtiles
  • for hosting tiles after creating by UNVT
docker build . --tag unvt/naru
cp .env.example .env
vi .env # specify your target REGION and AREA on .env file
docker-compose up

About the name

naru means "to be implemented" in traditional Japanese. It was taken from "いづ方をも捨てじと心にとり持ちては、一事もなるべからず" of 徒然草 一八八, which roughly means "If you try to take care of everything, nothing can be implemented."

About

Vector Tile Academy (VTA) code for Raspberry Pi (not actively maintained. Replaced by washi)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published