Code Monkey home page Code Monkey logo

mapback-rs's Introduction

mapback-rs

mapback-rs is a minimalistic command-line tool designed to generate unzoomed level images from map tiles organized in a quadtree structure.

Installation

To install mapback-rs, you need to have Rust and Cargo installed on your system. If you don't have them installed, please follow the official installation guide: https://www.rust-lang.org/tools/install

Once you have Rust and Cargo set up, you can install mapback-rs by running the following command:

cargo install mapback-rs

This will download and compile the mapback-rs package from crates.io and install it in your Cargo binary directory.

Usage

To use mapback-rs, run the following command:

mapback-rs <folder>

Replace <folder> with the path to the folder containing your map tile images.

Options

  • --max-zoom <level>: Specifies the most detailed zoom level to consider. Default is 18.
  • --min-zoom <level>: Specifies the least detailed zoom level to consider. Default is 0.

Example

mapback-rs ../map_tiles --max-zoom 16 --min-zoom 10

This command will process the map tiles in the ../map_tiles folder, starting from zoom level 16 and unzooming until zoom level 10.

File Structure

The map tile images should be organized in the following quadtree structure:

<folder>
├── <zoom_level>
│   ├── <x>
│   │   ├── <y>.png
│   │   └── ...
│   └── ...
└── ...
  • <folder>: The root folder containing the map tile images.
  • <zoom_level>: The zoom level directory (e.g., 16, 15, 14, etc.).
  • <x>: The X-coordinate directory.
  • <y>.png: The map tile image file, where <y> represents the Y-coordinate.

Acknowledgements

  • Rust
  • clap - A simple to use, efficient, and full-featured command-line argument parser
  • image - Imaging library written in Rust
  • indicatif - A command line progress reporting library for Rust

mapback-rs's People

Contributors

masaishi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.