Skip to content

bergoid/gm2png

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

gm2png

This script is based on Alexander Honda's googlemap2png script (https://code.google.com/p/googlemap2png/).

Requires:

The output of gm2png --help:

Usage: gm2png TYPE Z XMIN XMAX YMIN YMAX [FILENAME_PREFIX] [LANG]

'gm2png' downloads individual tiles from Google Maps, stitches
them together to form a mosaic and saves the result in a .png file.

TYPE is either 'sat' for satellite imagery, 'ter' for terrain, 'map' for
street map or 'hyb' for hybrid (satellite/street).

Z is the zoom level.

The tiles form a rectangular area determined by XMIN, XMAX, YMIN
and YMAX. The top left tile is at (XMIN,YMIN) and the bottom right
tile at (XMAX, YMAX).

The downloaded tiles are stored in '~/build/gm2png/tiles'. Saved
tiles are not downloaded again in subsequent runs of 'gm2png'.

If FILENAME_PREFIX is specified, the filename of the saved .png
file will start with FILENAME_PREFIX, followed by the values of
the other arguments.

The optional argument LANG allows you to change the annotations on
the map to another language, if available. If you want to specify
LANG without specifying FILENAME_PREFIX, use '-' for the latter.

Examples:

Creating a street map:

    $ gm2png map 15 16831 16834 10903 10907

The same street map, but with some annotations in Dutch instead of English:

    $ gm2png map 15 16831 16834 10903 10907 - nl

About

Bash script to make a big map out of Google Maps tiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published