Posts Tagged ‘woodruff’

Simple shapefile drawing in ActionScript 3 (Cartogrammar)

Wednesday, July 29th, 2009

Shapefile + magic = map in Flash!

[Editor’s note: Andy Woodruff explains how to use his quick and easy implementation of Edwin van Rijkom’s AS3 classes for loading SHP files and their DBF attributes into Flash/Flex. This library DOES NOT PROJECT your shp files, you might consider doing that first.]

Recently I’ve heard two friends independently inquire about some sort of basic guide for loading and drawing a shapefile in Flash. The only real tutorial/example I can recall is here, dealing with Google Maps. But these guys are looking for something more bare-bones. Being a regular user of Edwin van Rijkom’s invaluable code libraries for reading shapefiles, and usually forgetting the process myself, I thought it would be a good idea to put together a very simple set of AS3 classes that load a shapefile and throw a map on screen.

So to get those jerks off my back, I wrote a little thing called ShpMap, which supplements van Rijkom’s classes by loading and drawing a shapefile. It’s nothing fancier than that. Sometimes all you need is to get your base map on screen. (Update: just to round it out a little more, I’ve added basic loading and parsing of a shapefile’s accompanying DBF file, which contains attribute data. This also uses classes by van Rijkom.)

I hope that this class (and the several associated classes) can both be directly usable for some projects and serve as a basic guide to using van Rijkom’s classes to load shapefiles.

Dig it:

  • An example that loads and displays a US states shapefile (and then puts a square on my house and colors the state of Wisconsin green). View the source code here.
  • Download the source code. (My classes plus van Rijkom’s, as well as a demo US States shapefile.)

Sparkmaps? (Cartogrammar)

Monday, June 1st, 2009

lynch_imageelements

Andy Woodruff has a neat post over at Cartogrammar about Sparkmaps, a riff on Tufte’s sparkline concept (1, 2).In essence: “Tiny, non-intrusive supplemental maps … As a sparkline provides at a glance a reasonably clear picture of numerical data, so can a small map provide context and clarify otherwise confusing or vague text.” We’ve started to include small Google Maps mashups in the sidebar of some Washington Post articles the last month. We occationally use another tool that allows a Google Maps mashup to appear on hover of a hyperlinked placename. Less discoverable, so effective only when the geography is completely anciliary to the story.

Read his post at Cartogrammar . . .

Paula Scher: Maps as Tag Clouds?!

Sunday, June 29th, 2008

paula scher europe

paula scher europe detail

Paula Scher has produced a series of nifty map art that focuses more on placenames than their locational placement. The placenames are in correct “relative” space but not absolute space. The names all run together in a placename tapestry where they swirl in colorful waves and eddies. Thanks Curt!

From the Maya Stendhal Gallery press release:

Maya Stendhal Gallery is pleased to announce a solo exhibition of renowned artist and graphic designer Paula Scher, which runs from November 8, 2007 through January 26, 2008. Scher expands on her highly acclaimed Maps series to create her most engaging work yet, depicting entire continents, countries and cities from all over the world that have been the critical focus of attention in recent headlines.

Through an acute understanding of the powerful relationship between type and image, Scher harmonizes witty with tragic, the methodical with the intuitive, and the personal with the universal in these new paintings. Dynamic images are saturated with layers of elaborate line, explosions of words, and bright colors creating a plethora of visual information that produces an emotive response to places lived, visited, and imagined. Scher’s maps also reflect the abundance of information that inundates us daily through newspapers, radio, television, and the Internet to reveal the fact that much of what we hear and read is strewn with inaccuracy, distorted facts, and subjectivity.

On view will be Tsunami (2006) depicting the area that was ravaged by the destructive natural force on December 26, 2004. Evoking memories of compassion and grief, the image is covered by a swirling vortex of words denoting towns, cities, and areas, which echo the violent rotation of that monumental storm. Paris’s (2007) bold blue and white péripherique rigidly maintains the city’s borders. While inside, Paris as we know it beams in a captivating latticework of blue, yellow, green, and purple exuding the city’s sense of vitality and charm. China (2006) shows a colossal landmass with cities, provinces, and roads pulsating in reds, blues, greens, and yellows. Listed above are the astounding statistics that make China one of the world’s great centers of capitalism and culture. Manhattan at night (2007) glows in deep jewel tones of purple, blue, green, and black. This enchanting quality is sobered as the median incomes of various neighborhoods disclose the very different realities of city residents. NYC Transit (2007) projects the city in intricate layers of line, text, and color that culminate with the iconic map of the New York City subway system. The major outsourcing destination of India (2007) takes form in a giant pink landmass accented with bright blue and green road markers and orange location names, which give the impression of a sign for its popular Bollywood industry. Israel (2007) presents the country and bordering countries including Egypt, Palestine, Jordon, Syria, and Iran. Text representing cities and regions is written in varying, haphazard directions communicating a visual sense of conflict and discord. Middle East (2007) segregates the area by rendering each country in its own bold color. The land’s sordid past is remembered through hatch marks and dots representing the Babylonian Empire, Moslem Empire, Ottoman Empire, and Roman Empire.

Ms. Scher began her career creating album covers for CBS Recordings in the 1970ís. She moved on to art direction for magazines at Time Inc., and in the 1980ís formed her own boutique firm, Koppel & Scher. She has been a principal at the New York-based Pentagram design consultancy since 1991, where she has created visual identities for Citibank, The New York Public Theater, and the American Museum of Natural History, among others.

Further reading:

Andy Woodruff over at the Cartogrammar blog has a post that lists other tag cloud like maps with images.