Posts Tagged ‘map’

Are You A Map Maker, A Map Builder, A Map Scripter Or A Map Creator?

These days there’s so many ways that you can make a map. You can use a Javascript Maps API and put push pins on a slippy map. You can take vector data, transform it into JSON and use a different Javascript API to make an SVG map. You can load data from pretty much any source into either a desktop GIS or a visualisation tool. The possibilities are endless; maybe more endless than you might first assume.

Thierry Gregorius has helpfully put together a cut out and keep guide to which type of mapper you are.

Map Maker Types

There’s no one size fits all classification here; I’m probably type 4 (The GMT Map Maker), type 5 (The D3 Map Maker) and type 9 (The Native Map Maker) in pretty much equal measures, verging into type 3 (The R Map Maker) and with delusions of being slightly type 1 (The GIS Map Maker). Which types are you?

Photo Credits: Thierry Gregorius on Flickr.
Written and posted from home (51.427051, -0.333344)

Countries That Cry; Countries That Don’t (100% Mercator Free)

March the 5th 2013 marked the 501st birthday of Gerardus Mercator, whose map projection appears on virtually every web map you’ll find on the interwebs today. It appears he’s none too happy about the lack of royalties on this and so I felt compelled to use a projection for my next map which wasn’t Mercator’s.

mercator-tweet

I’ve been using a lot of Natural Earth‘s vector data to make maps recently and so Tom Patterson‘s rather beautiful Natural Earth projection seemed fitting and avoided the wrath of Gerardus into the bargain.

crying-countries

Continuing my dabblings in Mike Bostock’s D3, reworking the Countries That Do And Don’t Cry For Me map that did the rounds on the internet some years back took up a couple of spare hours last night; making maps is addictive it seems.

The full map is here, hosted on maps.geotastic.org … and for those who don’t get the cultural reference, this song from a certain 1970′s musical might help.

Written and posted from home (51.427051, -0.333344)

The Great British Map; Or Great Britain vs. The United Kingdom vs. The British Isles

Last night I made another map. It tries to answer some of more perplexing and confusing facets of the geography surrounding the world’s 9th largest island. I mean of course Great Britain. No, wait. I mean the United Kingdom. No, wait. I mean Britain. Or do I mean England? See, it’s confusing.

  • So if the ISO 3166-2 code is GBR, how come the country is called the United Kingdom?
  • But if England is a country and the United Kingdom is a country, how come England is part of the United Kingdom?
  • What about Scotland, Wales and Northern Ireland?

This isn’t the first time I’ve covered this topic. The first time was for a post on the now defunct Yahoo! Geo Technologies blog entitled UK Addressing, The Non Golden Rules Of Geo Or Help! My Country Doesn’t Exist. The ygeoblog.com domain is now long gone and redirects to the Yahoo! corporate blog but I was able to reproduce this post here and it’s also captured in the Internet Archive’s WayBackMachine. The second time was when I made a variation of The Great British Venn Diagram. But this is the first time (though probably not the last) that I’ve used a map, which is odd as this is something that’s tailor-made for a map.

I’d been looking for a good source of geographic vector data that I could use to easily overlay polygons on a map and came across a rich source of free vector and raster map data from Natural Earth. But instead of overlaying that data on top of a standard slippy map using a JavaScript maps API to tap into a tile server’s bitmap tiles, I soon wondered whether I could actually make a map from the vector data. It turned out I could and decided to revisit the structure of the group of islands I live on one more time and try to visualise the difference between Great Britain, the United Kingdom and the British Isles. The end result, punningly entitled the Great British Map, looks something like this …

Great British Map

When the page first loads you’ll see the coastlines of Britain, Ireland and towards the bottom, the Channel Islands. There’s then five ways of looking at this particular map.

There’s the group of geographic islands that’s termed the British Isles; these show up in purplish-grey and if you’re observant, the Channel Islands vanish as they’re not part of this island group.

Great British Map - Great Britain

Then there’s the individual geographic islands of Great Britain, Ireland, the Isle Of Man and The Channel Islands; these show up in green.

Great British Map - United Kingdom

There’s two sovereign states, The United Kingdom of Great Britain And Northern Island and the Republic Of Ireland; these show up in red.

Great British Map - England

Next comes the administrative countries which make up the United Kingdom; England, Scotland, Wales and Northern Ireland. These show up in yellow.

Great British Map - Crown Dependencies

Finally, there’s the Crown Dependencies, the self governing possessions of the British Crown; the Isle of Man and the Channel Islands are these and they show up as purple.

What’s missing from the map? The British Overseas Territories, which is a polite way of saying what’s left of the British Empire that didn’t gain independence and which the United Kingdom still asserts sovereignty over. These are Anguilla, Bermuda, British Antarctic Territory, British Indian Ocean Territory, British Virgin Islands, Cayman Islands, Falkland Islands, Gibraltar, Montserrat, Pitcairn Islands, St. Helena, Ascension Island, Tristan da Cunha, the Sovereign Base Areas of Akrotiri and Dhekalia and the Turks and Caicos Islands.

If you’re interested in how I actually made the map, read on.

The source data from the map are two public domain datasets from Natural Earth; the 1:10m map Admin 0 Subunits dataset and the 1:10m Populated Places dataset. This data includes shapefiles which can be converted into GeoJSON format by the GDAL ogr2ogr command line tool. I extracted the vectors for the UK, Ireland, Isle of Man and Channel Islands from the Admin 0 Subunits dataset, keying on their ISO 3166-1 Alpha-3 country codes.

$ ogr2ogr -f GeoJSON -where "adm0_a3 IN ('GBR','IRL','IMN','GGY','JEY','GBA')" subunits.json ne_10m_admin_0_map_subunits/ne_10m_admin_0_map_subunits.shp

I then extracted the place data from the Populated Places dataset, again extracting data for the UK, Ireland, Isle of Man and Channel Islands, this time keying on their ISO 3166-1 Alpha-2 country codes. Not entirely sure why one dataset uses Alpha-2 and the other uses Alpha-3 but go figure; the data is free, accurate and open so who am I to complain?

$ ogr2ogr -f GeoJSON -where "iso_a2 IN ('GB','IM','JE','GG') AND SCALERANK < 8" places.json ne_10m_populated_places/ne_10m_populated_places.shp

Finally, I merged subunits.json and places.json into a single TopoJSON file, with the added bonus that TopoJSON is much much smaller than GeoJSON. The source GeoJSON weighed in at 549 KB whereas the combined TopoJSON is a mere 78 KB.

$ topojson --id-property su_a3 -p NAME=name -p name -o great-british-map.json subunits.json places.json

The main reason for use of TopoJSON is not that it’s much more lightweight than GeoJSON, but that Mike Bostock’s excellent D3 JavaScript library can easily slurp in TopoJSON and inject SVG straight into an HTML document. Which is precisely what the map’s underlying code does. There’s a lot more that D3 could do with this map, but it’s early days and for a first step into a new maps library, I’m pretty happy with how it’s turned out.

Speaking of code, it should come as no surprise that the map’s code base is available on GitHub. The Great British Map is based on great D3 tutorial that Mike has written on vector mapping using Natural Earth, so the similarity between Mike’s map and my map is entirely intentional.

Written and posted from home (51.427051, -0.333344)

You Were Here; Mapping The Places I’ve Been To According To Foursquare

Over the weekend I made another map. While I don’t think for one moment this one will be as wildly popular as my last map was, this one is just as satisfying and a whole lot more personal.

At 8.01 PM on the 11th. of October 2009 I checked into Sushi Tomi in Mountain View, California. This was my very first Foursquare check-in. Since then I’ve checked-in on this particular location based service a further 12,394 times. Each check-in has been at a place I’ve visited. As this is a location based service, each check-in comes with a longitude and latitude.

This sounded to me like an ideal candidate for a map. But how to go about making one?

Checkins - Global

I could have written some code to use the Foursquare API, but I’ve been running an instance of Aaron Cope‘s privatesquare for a couple of years now, which meant every check-in I’ve ever made, give or take the last 6 hours or so, is sitting comfortably in a MySQL database.

So I wrote some code to go through the database, extract each checkin and make a list of each place I’d checked into, the place’s coordinates, the place’s name and how many times I’d checked into that place. Armed with this information, I could then spit this out in GeoJSON format, which made making a map no more complicated than some mapping API JavaScript, in this case the Leaflet API. OK. There was some slight complication. I need to do some cleverness to make each checkin a CircleMarker, where the radius of the circle was proportional to the number of check-ins. Thankfully Mike Bostock’s D3 library does this with ease.

It’s not the most classy of visualisations. But I do like that the map shows me the global picture of where I’ve been over the last 4 or so years. As you zoom into the map, it’s fascinating to see the patterns of my movements in areas I seem to go to on a regular basis, such as the San Francisco Bay Area …

Checkins - Bay Area

… or Berlin …

Checkins - Berlin

… or even Dar Es Salaam …

Checkins - Dar Es Salaam

… as well as my journeys around my home country.

Checkins - UK

But there’s still a lot of things that the map doesn’t do.

The z-index, or stacking order, of the markers is based on each place’s coordinates; ideally this will be adjusted so that the larger markers, those with the most check-ins, stack underneath the smaller ones so they’re not obscured. I also want to add the ability to see some form of timeline and add some richer data about each place to the marker’s popups.

But for now, it does the job I set out to do and to make life easier, should you wish to do the same, you’ll find the source code up on GitHub.

What next? Well, now that I can download my Twitter history, I think all of my geotagged tweets are suitable candidates for some mapping …

Written and posted from home (51.427051, -0.333344)

Literally A Map Of Riches

Most maps are pointers to something; from today’s turn-by-turn voice guided navigation to the “X marks the spot” treasure maps of legend.

This map however, is not a pointer to riches, instead it’s made of riches.

A large-scale, unique and intricate portrait of our Earth – a planet which is surely a jewel of the universe – innovatively created from 330,000 hand-cut pieces of stained glass, 1238 jewels totalling 260 carats, and over 6900 LEDs.

chrischamberlainjeweloftheuniverse1

I’ve written before about maps as art, but this is both a map, a work of art and the map as art and with a tip of the hat to Sitaram Shastri for the heads up. Check out jeweloftheuniverse.net for loads more pictures of this gorgeous map.

Written and posted from home (51.427051, -0.333344)

Gravity Sucks But It Sucks Variably (Also Available As A Map)

As children we all learn the hard way that gravity sucks though a succession of scraped and bruised knees and elbows. We probably also learned in physics lessons that there’s the gravitational constant, denoted by a capital G.

0f36df929ac9d711a8ba8c5658c3bfee

But what I certainly didn’t learn was that while gravity sucks, it doesn’t suck consistently. In fact, gravity sucks variably, as this 2010 map from ESA’s Goce (Gravity field and Ocean Circulation Explorer) satellite shows.

goce_gravity_field_786map

So it should come as no surprise that not only does gravity suck variably on Earth, it also sucks variably on the Moon.

PosterFrame2_1024x576

This map comes from two NASA probes, Ebb and Flow, which formed part of the agency’s GRAIL (Gravity Recovery And Interior Laboratory) project. Ebb and Flow spent 351 days orbiting in formation around the Moon before crashing to the surface at the end of 2012.

So gravity still sucks; it just sucks variably.

Image Credits: Wikipedia, ESA and NASA.
Written and posted from home (51.427051, -0.333344)

Mapping Meteor Strikes; There’s A Lot More Than You’d Think

Last week’s 10,00 ton and 55 feet’s worth of meteor that exploded over and hit the Russian city of Chelyabinsk in the Urals made several thoughts go through my mind. In this order.

  1. I feel for the 1200 people who were hurt and injured
  2. Thank goodness it didn’t happen where I live
  3. With all the asteroids and smaller pieces of rock zooming over our head, this has got to have happened before, hasn’t it?

On the subject of the last thought, it turns out this has happened before. A few times. Actually close to 35,000 times. The Meteoritical Society has a data set detailing these. It would make a great map. Which is exactly what Javier de la Torre, co-founder of CartoDB has done.

Meteor Map - Global

A map of impact points would be effective enough, but Javier’s use of a heatmap not only shows the global spread of the debris which has been raining down on our planet since 2,300 BC but also shows the density of strikes, which makes the map simultaneously more effective and accessible.

Meteor Map - UK

There’s also been far more strikes in the United Kingdom than I would have either thought or feel vaguely comfortable about, if you can ever be comfortable with things falling from the sky with horrifying effect.

Definitely a map to file under the I wish I’d done that category.

Written and posted from home (51.427051, -0.333344)

The Ubiquitous Digital Map (Abridged)

A lot of great conferences in the UK happen in London. But not all great conferences. For some, you have to travel a little further afield. Maybe to East Anglia. Or more specifically to Norwich, the county town of Norfolk. If you were in Norwich last week, you might have noticed that SyncConf was taking place and I’d been asked by ex-MultiMapper and co-founder of SyncConf, John Fagan to do a talk on something related to maps. How could I refuse?

3347163776

SyncConf isn’t a maps conference or a geo conference; it’s a tech conference for the city’s tech and startup community. So it seemed to make sense not to go full-on maps nerd for the conference audience but instead look at how we got to the current state of play where the digital map has become ubiquitous. It also allowed me to the opportunity to put a little bit of map porn into a slide deck.

This is how it turned out .. my slide deck and notes follow after the break.

Image Credits: Denise Bradley, Eastern Daily Press.
Written and posted from home (51.427051, -0.333344)

Read On…

There’s More Underneath London Than Just Trains

Oh yes, look. Gary’s written yet another post about a map of the London Tube system that he likes. Yawn. Time to move on. But wait … this may look like a map of the London Underground but it’s not.

Now I may have been guilty of wearing my heart on my sleeve slightly too much where variations on a theme of the London Underground map have been concerned; there’s at least seven posts on this topic already posted.

Granted, there’s the Northern Line on the map; but this is more for a sense of geographical perspective than anything else.

The Hidden City

The blue lines aren’t branches of the Piccadilly Line. They’re the rivers that have been long lost and yet still run under the streets of London; the Fleet, the Effra, the Westbourne and Stamford Brook. Historical point of note; the Jubilee Line was originally going to be called the Fleet Line, although the path of the line followed the course of the (also buried) Tyburn rather than the Fleet, but was renamed the Jubilee to coincide with the Silver Jubilee of Elizabeth II.

Likewise, the orange lines aren’t the Overground, they’re sewers, nor is the red line the Central Line, it’s the Post Office railway or Mail Rail.

So it may look like a map of the Tube, but it’s anything but. It’s all the work of Richard Fairhurst, who’s made a few maps in his time; they’re well worth a look.

Written and posted from home (51.427051, -0.333344)

A Country Size Jigsaw; Mapping How Big Africa Really Is

By the time we leave school, most of us have a elementary knowledge of our planet’s geography. We know where the continents are and we know that they’re big. I touched on this in a previous post about the Greenland Problem where, despite Greenland having a size of 0.2 million square miles and Africa having a size of 11.6 million square miles, Africa and Greenland appear roughly the same size on most of today’s maps.

So we know that Africa is big; 11.6 million square miles of big. But that sort of bigness is difficult to get our heads around. As Douglas Adams once said

Bigger than the biggest thing ever and then some. Much bigger than that in fact, really amazingly immense, a totally stunning size, real ‘wow, that’s big’, time … just so big that by comparison, bigness itself looks really titchy. Gigantic multiplied by colossal multiplied by staggeringly huge is the sort of concept we’re trying to get across here.

And in the case of Africa, big means that, if you were playing jigsaw puzzles with other countries, you can fit the United Kingdom, the United States, Spain, France, the Netherlands, Belgium, Germany, Switzerland, Italy, most of Eastern Europe, India, China and Japan into Africa and still have some space left over.

True-size-of-Africa-954x696

It’s that sort of big. This map infographic from Kai Krause (yes, that Kai Krause) shows this sort of level of big-ness in a way that 11.6 million square miles just can’t convey. There’s more information on this map, together with an alternate version over at The Economist.

Written and posted from home (51.427051, -0.333344)