Skip to content

kensac/maps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maps

A simple map image generator if I can even call it that.

It is a simple script that parses osm.pbf data and generates a map image. It wll generate roads, waterways, railways, buildings and natural land features. This is not meant to be a full featured map generator but is a simple script I wrote in a weekend to understand how maps are generated.

It also has A* path finding algorithm implemented to find the shortest path between two points.

Getting Started

Make sure you have atleast 6x the size of the osm.pbf file in free space. The program will generate a lot of temporary files.

To run the project, clone the repository and run the following commands:

$ git clone <repo>
$ cd <repo>
$ cargo build --release

Download the osm.pbf file from bbbike. You can download the file for any region you want. Make sure it is in the osm.pbf format.

Then run the following command to generate the map image:

$ ./target/release/maps <osm.pbf file>

To change the size of the image tiling, change the tiles_x ,tiles_y and img_size variables in the src/drawing.rs file.

Example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages