
Find Your House on an Aerial Photograph #4
Chapter 1, Mapping Your Life
|
15
HACK
Hacking Terraserver
The Terraserver web site generates URLs for images that look like this:
GetImageArea.ashx?t=1&s=10&lon=-122.842232&lat=38.411908&w=600&h=40
The t parameter indicates which type of base map you want. t=1 shows you
aerial maps, and
t=2 shows topographical maps published by the USGS.
The
s parameter represents a scale—from 10 for small-scale maps at 1-meter
resolution, to 19 for large-scale maps at 512-meter resolution.
Back in the day, the good people at ACME Maps provided their own, home-
hacked version of a programmatic interface to Terraserver. It allowed you to
post coordinates directly and get back map tiles neatly sewn together. It’s
still available at http://acme.com/mapper/.
Now the Terraserver developers have seen the light of making interfaces to
programs openly available over the Web, and they provide several web ser-
vice interfaces, including a Web Map Service, several WSDL interfaces, and
an API for the .NET framework. Learn more about what’s available at http://
www.terraserver-usa.com/webservices.aspx. For an example of what can be
quickly hacked together with the Terraserver WMS interface, check out http:
//hobu.biz/ and type your address into the “geocode” box on the bottom
right. This hack uses a smidgen of python to glue http://geocoder.us/ and
Terraserver together.
Figure 1-6. Aerial ...