tippecanoe installation issues

Tippecanoe is an open-source command-line tool for creating tilesets from large datasets, primarily used for creating vector tiles for interactive maps. Developed by Mapbox, Tippecanoe efficiently converts large geojson, CSV, or other geographic data formats into vector tiles that can be served and rendered quickly in web mapping applications. The tool utilizes a technique called "spherical mercator tiling" to optimize the storage and retrieval of geographic data, making it an essential tool for developers and cartographers working on web-based mapping applications.

Tippecanoe does not have a Windows version, instead there are only MacOS and Linux versions. So, our first step is installing chosen OS. My case it's Ubuntu.

I used Oracle Virtuat Box ver. 7.0 and Ubuntu Linux ver. 22.04.2 under Windows 10 Pro LTSC.

When you are installing the Linux, strongly not recommended to use Unattended Installation option in your virtual machine preferences because can catch some problems later. Personally, I met troubles with not running the terminal app.

To fix this problem you can change the content of /etc/default/locale file (replace en_US with en_US.UTF-8) then sudo locale-gen --purge and reboot. But Ubuntu does not have default root user so you do not have permission to access the file.

Other way to fix the problem is open Settings -> Region & Language -> Formats and change preferences to English US manually.

Due to absence of default super user in Ubuntu, you can't install any apps by terminal. So, the best way to solve the problem is to create a second user with administrator privileges.

From this moment we can completely follow the instruction:

Tippecanoe requires sqlite3 and zlib (should already be installed on MacOS). Rebuilding the manpage uses md2man (gem install md2man).

Linux bash
sudo apt-get install build-essential libsqlite3-dev zlib1g-dev
make
make install

Tippecanoe now requires features from the 2011 C++ standard. If your compiler is older than that, you will need to install a newer one. On MacOS, updating to the lastest XCode should get you a new enough version of clang++. On Linux, you should be able to upgrade g++ with

Linux bash
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update -y
sudo apt-get install -y g++-5
export CXX=g++-5

Finally, we can build tippecanoe from the source repository:

Linux bash
git clone https://github.com/mapbox/tippecanoe.git
cd tippecanoe
make -j
make install

Also, you can try to install tippecanoe directly over Windows using Unix subsystem following this manual.

Комментарии

Популярные сообщения из этого блога

Today's activity report #17