Stitch


home

artwork

code


3280x2632 (1.3 MB) 8448x5376 (9 MB)


Stitch is a Python script to assemble large Google maps. A rectangle of latitude and longitude is specified (or generated via the coordinates tool below), together with a desired number of pixels along the long edge. The appropriate tiles are then automatically downloaded and stitched together into a single map (which is cropped to precisely match the specified rectangle). Some examples of the humongous maps you can make are shown above — a street map of Dublin in the center, and a terrain map of the Tibetan plateau on the right (view in the browser at your peril).

You can enter latitude and longitude coordinates directly, or use the tool below to convert a rectangle drawn in google maps into a text string code which can be copied and pasted into the GUI.

Download

You need to have the Python Imaging Library (PIL) and wxPython installed.

stitch.py

Mac OS X Installation

There seems to be a problem with the jpeg decoder in the Python Imaging Library (PIL) on OS X 10.5 Leopard. To avoid this, install PIL via MacPorts. Detailed steps are:
  • download and install MacPorts
  • on command line do "sudo port install py25-pil"
  • once PIL has finished building/installing, copy the contents of /opt/local/lib/python2.5/site-packages/ into /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages.

Coordinates tool

This helps to find the (latitude, longitude) coordinates of interesting regions to generate maps from. Dragging the markers around updates the coordinates shown below the map (note, the blue marker doesn't necessarily have to lie below and to the left of the red one, any rectangle defined by the corners is valid for Stitch input). The "Reset markers" button relocates the markers to lie at the default positions in the current viewport. The markers can also be moved via entering latitude and longitude coordinates directly in the text fields &mdash refresh the marker positions via the "Update markers" button (or just press return after entering the values).

The coordinates thus obtained can be entered conveniently into the Stitch GUI by copying and pasting the text field below (enable the 'Use code?' option, and paste into the 'Code' field):


Blue marker Red marker
Lat:
Lng:
Lat:
Lng: