Metric dimensions of geohash partitions at the equator

November 22nd, 2009

The Geohash algorithm is a useful way to describe locations on the earth using a single string of a-z, 0-9 characters. They can be thought of as rectangular subdivisions of the Earth’s surface. Learn more here: Geohash at Wikipedia. They were invented by Gustavo Niemeyer in 2008.

It’s good to get an idea of how large a rectangle a given geohash describes, but this changes depending on your latitude. At the equator, geohashes are biggest, so you need more characters to describe an area of a given size, or a location of a given precision.

In Cartagen I’m using geohashes to report geodata by text message, so it’s very useful to know how long your geohash code will be to describe, say, the area of a building, a soccer field, or a street corner. I did a quick calculation for the equator, which is the worst-case scenario:

Dimensions of geohashes of length n:

N Longitude Latitude east/west distance at equator north/south distance at equator
12: 0.00000033527612686157227 0.00000016763806343078613 ~3.7cm ~1.8cm
11: 0.000001341104507446289 0.000001341104507446289 ~14.9cm ~14.9cm
10: 0.000010728836059570312 0.000005364418029785156 ~1.19m ~0.60m
9: 0.00004291534423828125 0.00004291534423828125 ~4.78m ~4.78m
8: 0.00034332275390625 0.000171661376953125 ~38.2m ~19.1m
7: 0.001373291015625 0.001373291015625 ~152.8m ~152.8m
6: 0.010986328125 0.0054931640625 ~1.2km ~0.61km
5: 0.0439453125 0.0439453125 ~4.9km ~4.9km
4: 0.3515625 0.17578125 ~39km ~19.6km
3: 1.40625 1.40625 ~157km ~157km
2: 11.25 5.625 ~1252km ~626km
1: 45 45 ~5018km ~5018km

I think this is right but if you find an error please tell me. I put it up on the Cartagen Wiki here: GeoHashes

Grassroots Mapping: Balloon test #3 success

November 19th, 2009

Josh Levinger of GroundTruth and I tested our larger 8 foot balloon yesterday, and it was a huge success! We ran all the way through our spool of string, and got some great images before the light got too dim. I rectified them using Map Warper (fantastic!) and we now have a mostly continuous ’scan’ of our flight.

Screen shot 2009-11-19 at 11.04.31 PM

This means this can be a viable way to capture high-resolution geolocated imagery at low cost! I spent under $100 on the equipment – $30 for the balloon, $40 for the camera, $5 for the helium, and a few bucks for string. I bet it could be done for under $50 with a cheaper camera and perhaps trash bags instead of latex balloons. We’ll be trying that soon – I’d guess we need about 10 of these 98-gallon bags. I also turned the ISO way up for this because the light was failing, so the photos are pretty grainy. This camera doesn’t have shutter speed settings, though I’m still playing around with the CHDK settings so maybe I’ll do better next time.

I’m excited to test this in an area that really does not have good aerial imagery, like outside Lima, Peru.

See all the pictures at full resolution here: Balloon aerial photography on Flickr

See some great photos from the ground by Christina Xu on Flickr

BBC: People-powered maps

November 19th, 2009

Nice rendering, but not a new idea.

BBC NEWS | UK | Magazine | People-powered maps.

DIYcity

November 19th, 2009

DIYcity is a fascinating effort apparently related to the Open Planning Project.

Our cities today are relics from a time before the Internet. Services and infrastructure, created and operated by the government, are centrally managed, non-participatory and closed. And while this was once the best (and only) way for cities to operate, today it leads to a system that is inefficient, increasingly expensive to maintain, and slow to change.

What is needed right now is a new type of city: a city that is like the Internet in its openness, participation, distributed nature and rapid, organic evolution – a city that is not centrally operated, but that is created, operated and improved upon by all – a DIY City.

Video: first OSM mapping party in Kibera

November 18th, 2009

NASA iPhone ‘tricorder’

November 15th, 2009

nasa-iphone-sensor-20091113-314

Fantastic.

Subury Nickel Region Map

November 13th, 2009

Map

Map of the Sudbury Nickel Report, 1913

Use Google satellite imagery to rectify on Map Warper

November 12th, 2009

I’ve been taking very high-res imagery from a weather balloon and rectifying it, but the OpenStreetMap data isn’t detailed enough to find rectifying points… the result is a bit like this:

To add a Google layer, just run:

to_map.addLayer(googleSat,{'maxZoomLevel':22});

or drag this bookmarklet into your browser bookmarks bar, and click the bookmark when you’re on the Rectify page:

google-for-warper

The result is something like this:

Michal Migurski: HTML5 Map Warping

November 11th, 2009

Screen shot 2009-11-11 at 4.36.08 PM

Try the demo

Great short film ‘Das Rad’

November 11th, 2009

I saw this for the first time at a film festival in New Haven, and could never find it – Matt found it yesterday. I guess he’s better at the internet than me. The film is by Chris Stenner.