This document/Download it!** Mapping Hacks Web Site * Location: It's everywhere
I'm interested in the geospatial component of what people do...
Consider that our primary source on the lives of many people, including
in historical time, is their Middens. That is, their garbage dumps. Who
are we to belittle the locative component of even the trivial?
And everything
that people do has a geospatial, or Locative, component. Everything we
do, think or experience we do, think or experience somewhere. That Locative
piece may seem unimportant, but who is to say?
* We leave visible middens and invisible traces
* What's this Locative Media thing?
You know we are different breeds though, right? You guys talk 'location', I talk 'GIS' - is that fair to say?** More on Tyler (GIS) and my (Locative) exchange ** Locative is interested in questions that GIS is less focused upon ** 10 Projects * Hemingway... http://www.patheticgeek.net/~kml/hemingway/paris.html
"After reading A Moveable Feast several times, I'd formed the impression that Paris was huge, and Hemingway was always making these great hikes across town to drink or eat or look at pictures. Now that I've walked between the same places as he did,"I'm impressed at how small and walkable Paris truly is." (a visitor to Paris, retracing Hemingway's steps) Everything was very accessable."

* "When I click on Paris I want to launch my spell checker"
* But whose stories?
** Border towns in Big Bend National Park
* Big Bend Three Ways
* Maps Tell Stories
** The Big Bend maps tell different stories about the same place.
** In an increasingly digital and increasingly mobile age, where
attention is at a premium, we need maps that tell the right stories.
** The right story is your story
** Moore's law and other things are making it possible
* Maps Tell Stories
Maps tell Stories, and the stories that maps tell both reflect and
create reality.
* We live in a Phenomenal Universe
What we see, smell, hear, taste and touch is mediated by our senses.
* And actual molecules...
* Maps create reality
Because we live in a phenomenal universe in which our experience of reality is
mediated by our senses the maps that we create to represent reality also
create reality. What is Provance to me, but a map?
* What is the Oregon Trail?
* Other people's maps tell other people's stories
* And maps have real power
(and Maps lie)
** The GPSista's (google them)...using the tools of military industrialization in the service of protecting indigenous rights
** How to Lie with Maps
** A timely exchange from this morning (4/5/2005)
07:10 < shekhar> there's some really amazing stuff happening 07:10 < shekhar> we've done gps tracks in many slums 07:10 < shekhar> and discovered the holes in the municipal development plans 07:10 < shekhar> by which the builders are profiteering** In Ireland it is now illegal for the Ordnance Survey to use English names on maps of certain areas. ** Ground truthing to free the data-openstreetmap.org and false data * Who controls the description controls the world.
"The study of the specific effects of the geographical environment, conciously organized or not, on the emotions and behavior of individuals."
* Annotating Space
** The portable personal Geoannotation device
* Florence Ave
* More on annotating space space
** Geocoding Voice Recordings and other media - linkmedia/media file
** Bar codes : let space annotate itself
* Animating space
** SVG Examples
* Locative is a case not a place
** What next?
*** >Discussion
*** Pretty picture?
*** Tools?
*** Ideas?
*** Back to the home page?
= The GPS System
Attention conservation notice: mostly boring background ahead...will be flipped over quickly
* Global Positioning Systems (GPS)
** Global positioning triangulates an unknown location on Earth by
correlating time signals from multiple satellites in orbit
** NAVSTAR launched by USAF from 1978 to 1994
** NAVSTAR constellation employs 24 satellites in 12 medium earth
orbits staggered such that five to eight are overhead anywhere on
Earth at any time
** NAVSTAR operates in the 1.2 and 1.5 GHz microwave bands
* GPS in Theory
** Each GPS satellite transmits its orbital location plus a
time-seeded pseudorandom sequence
** A receiver can use this plus the mostly constant speed of light
to plot its own location along the edge of a sphere with a radius
proportional to the transmission time
** When three of these spheres are plotted, the receiver will be
found at the point or region of intersection between them
** A fourth sphere is needed to find elevation
* GPS in Practice
** Local bias
*** Microwave obstructions
*** Multipath and RF noise
*** Incorrect local time
*** Receiver motion
** More general difficulties
*** Ephemeris inaccuracies
*** Ionospheric delay
*** Selective Availability (off since Oct 2000)
* Global Positioning in the Real World
** GPS can be a reliable timekeeping source
** GPS must correct for relativistic time dilation -- about 38 microseconds a day
** Enhancements to GPS
*** Differential GPS (DGPS)
*** Wide-Area Augmentation System (WAAS)
*** European Geostationary Navigation Overlay (EGNOS)
** Other global positioning systems
*** LORAN-C
*** GLONASS
*** Gailleo (due in 2007)
* GPS Data Protocols
** Plain ASCII text
*** Lat, long, (maybe) altitude, and time
** NMEA-0183
*** ASCII "sentences" over RS-232 at 4800 baud, 8N1
*** Published by the National Marine Electronics Association
*** Live navigation and ephemeris data
*** Write-only
** Proprietary formats
*** e.g. Garmin's GRMN format
*** Used to fetch and store tracklogs, waypoints, base maps, etc.
*** Read/write
* Getting data from your GPS
** Command Line utilities
*** gpsbabel - the swiss army chainsaw of gps tools
*** Garnix
*** gpstrans
*** gpsutil
* Real-time GPS with gpsd
** Reads NMEA-0183 from a serial port
** Republishes via a simple protocol over TCP/IP
** Intended to make free navigation programs hardware independent
** You can map remote objects in real-time over the 'Net!
** Available from http://pygps.org/gpsd/
* What can you with your GPS data?
** Real-time navigation (gpsdrive)
** Plot it on a basemap
** Use it to georeference other stuff
** Give your Great-Great[...]-Grandfather a GPS
* Cell Stumbling
* Options for plotting your tracklogs on a base map
** Naive graphing methods (discussed earlier)
** Web-based options like PointMapper, worldKit, etc.
** Simple mapping programs like drawmap
** A full-scale GIS, like GRASS
* Geotag your photos from a GPS tracklog
** Time: The universal foreign key
** Adjust for bias in clock difference, time zone
** Linear interpolation between tracklog points
* Making your own Garmin base maps
** Get existing aerial photos or base maps
** Add features by hands or from GPS data
** Render the new features to Garmin .IMG format
** We arrived at Burning Man at 5am and found our camp within minutes.
** Tools
*** GPSmapper: http://gps.chrisb.org/
*** GPSMapEdit: http://kgy.narod.ru/util/mapedit/mapedit_e.htm
* Pretty pictures
** Animation
Static
Moving
* Geospatially Enabled Database
** Postgis
* Boom zoom
* Yet more...
** bar codes
** Annotating Space
** Speaks to the fundamental simplicity of cartography as a story telling medium.
** Also speaks to the tension between precision and ubiquity in geospatial data and applications...
** "Aircraft navigators have a special interest in maintaining a positive height vector above the surface."
= Geographic Information Systems and GIS Data Sources
* Geographic Information Systems
** Layers
** Scale and extents
** Data elements
*** Points
*** Lines
*** Areas
** Data Models
*** Raster data model
*** Vector data model
*** "Site" and point data
** "Raster is faster, vector is corrector." -- Joe Berry
* Common GIS data formats
** USGS Spatial Data Transfer Standard (SDTS)
** GeoTIFF
** Arc/Info formats
** ESRI shapefiles
** US Census TIGER/Line
** Geographic Markup Language
* Manipulating GIS data formats
** Geospatial Data Abstraction Library (GDAL)
** OGR Simple Feature Library
** GDAL converts raster data, OGR handles vector
** Both can be found at http://www.remotesensing.org/gdal/
* US Zip Codes
** No official standard for geocoding
** Can be calculated based on the 'centroid' of the zip code
** US Census Gazetteer has reasonable location and population data
for ZIP codes, as well as counties, metro areas, and inhabited places
** Find it at http://www.census.gov/geo/www/gazetteer/places.html
* British Post Codes
** The more digits, the more precise your location
** In urban areas, post codes can cover areas as small as 20 meters across
** Free UK postal outcode database at http://www.jibble.org/ukpostcodes/
** See Tom Coates at the break for more info (Thanks Tom!)
* Geographic Name Information Service (GNIS)
** GNIS is a freely downloadable gazetteer of places in the USA.
** Includes lat, long, county name, and the following features:
airport, arch, area, arroyo, bar, basin, bay, beach, bench, bend, bridge, building, canal, cape, cemetery, channel, church, civil, cliff, crater, crossing, dam, falls, flat, forest, gap, geyser, glacier, gut, harbor, hospital, island, isthmus, lake, lava, levee, locale, military, mine, oilfield, other, park, pillar, plain, range, rapids, reserve, reservoir, ridge, school, sea, slope, spring, stream, summit, swamp, tower, trail, tunnel, valley, well, woods** One can very easily make a REST-ful web service out of this! ** For places outside the US, try the GEOnet Names Server at http://earth-info.nima.mil/gns/html/ * Topologically Integrated Geographic Encoding and Referencing system (TIGER) ** Collected by Census Bureau every ten years or so ** Contains lines and polygons of most relevant features ** Often inaccurate and incomplete, but at least it's there ** You can map street maps with it ** You can build a pretty good street address geocoder with it ** It's a HUGE amount of data ** Available at http://www.census.gov/geo/www/tiger/ * Other sources of (sometimes) free US GIS data ** USGS Digital Line Graph (DLG) ** USGS Digital Raster Graphics (DRG) ** USGS Digital Elevation Models (DEM) ** USGS Digital Orthophoto Quads (DOQ) ** worldKit MapProxy: http://brainoff.com/worldkit/mapproxy/ * US-based sources of free global GIS data ** NIMA Digital Terrain Elevation Data (DTED) ** NOAA Coastline Extractor ** NASA Earth Observatory ** Virtual Terrain Project at http://vterrain.org/Locations/ is a good starting point for finding sources of free data for the US and the world * Map Algebra * MapServer: a GIS browser for the web "MapServer is an Open Source development environment for building spatially enabled Internet applications... MapServer is not a full-featured GIS system, nor does it aspire to be. It does, however, provide enough core functionality to support a wide variety of web applications." ** http://mapserver.gis.umn.edu/ * Features of MapServer ** Supports ESRI shapefile, TIFF/GeoTIFF, GIF, PNG, JPEG and more ** Quadtree spatial indexing for shapefiles ** Fully customizable, template driven output ** Feature selection by item/value, point, area or another feature ** Support for tiled raster and vector data * More Features of MapServer ** TrueType font support ** Automatic legend and scalebar building ** Scale dependent feature drawing and application execution ** Feature labeling including label collision mediation ** Mapscript bindings for Perl, Python, Tcl, Guile, and Java * Installing and Configuring MapServer ** The HTML template ** The 'map' file ** Adding Layers to MapServer ** MapServer Workbench: a Tcl/Tk MapServer configuration tool ** Improving MapServer with a bit of JavaScript * Practical applications of MapServer ** Plotting earthquake locations ** Plotting wardriving data ** Importing TIGER/Line data ** Getting MapServer to show features at the right scale * What is the Resource Description Framework (RDF)? ** A formal graph-based model for describing and accessing data ** An RDF model consists of statements about the world ** Each statement has a subject, predicate, and object ** RDF allows the construction of domain-specific vocabularies with specific, well-defined semantics ** RDF is not XML but is commonly represented with XML * Why RDF is useful for geospatial applications ** Dan Brickley says:
"The RDF data model [is] a handy mechanism for mixing independently created data vocabularies... Unlike vanilla XML, RDF vocabularies can be freely mixed together in data without prior agreement. So you often see ad-hoc combinations of Dublin Core, RSS1, MusicBrainz, RDF-calendar, FOAF, Wordnet, thesaurus, Geo-info etc etc..."* Geo namespace ** Described at http://www.w3.org/2003/01/geo/ ** Defines a single RDF Schema class, geo:Point ** Defines three properties: geo:lat, geo:long, geo:alt ** Intentionally kept as simple as possible * Geo RDF/XML example
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
<geo:Point>
<geo:lat>55.701</geo:lat>
<geo:long>12.552</geo:long>
</geo:Point>
</rdf:RDF>
* Other relevant RDF vocabularies
** rdfgeom2d
** spacenamespace
** Locative packets
** Dublin Core
* What to do with RDF
** Publish it
** Aggregate it
*** RDF/XML files
*** Naive SQL store
*** Redland, Sesame, Jena
** Make maps with it
*** worldKit
*** RDFmapper / PointMapper
*** Collaborative mapping -- come to the workshop!
* worldKit
** Clickable, Flash-based interface to point data
** Configured with a simple XML file
** Plots RSS2.0 + ICBM, or RDF Locative packets
** Supports Dymaxion and polar projections
** Get it from http://www.brainoff.com/worldkit/
** PointMapper is more interactive, but it's not Open Source (yet)!
* Scalable Vector Graphics (SVG)
** XML vector graphic format
** Can be made dynamic with Javascript
** Batik SVG browser at http://xml.apache.org/batik/
** The future of interactive maps on the web?
= Building a Custom GIS Application
* You say you want a revolution?
Albert Einstein, when asked to describe radio, replied:
"You see, wire telegraph is a kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles. Do you understand this? And radio operates exactly the same way: you send signals here, they receive them there. The only difference is that there is no cat."** The NoCat Network is a free community network built with fixed-point 802.11b links. ** Microwave radio requires line-of-sight over long distances. ** Who can see whom? ** Suppose we have 100 participants. ** 100 x 99 ÷ 2 = 4,950 possible links! * maps.nocat.net ** Node database ** Geocoder ** Elevation profile ** Interactive flat map ** The goal: All you need is a compass and an antenna! * Node database ** Collect name, contact info, location ** If the user doesn't know their lat/long, geocode their address against TIGER ** Add their node to the database and calculate all the potential LoS on the fly * Profile calculations ** Uses 10m DEMs from BARD covering Sonoma County ** Borrowed source code from r.profile, linked against libgrass5, glued to perl with Inline::C ** Clearance values are cached in database ** Profile images are just line plots in GD::Graph! * True bearing and distance ** Now the user can view a table of potential peers, sorted by clearance ** Distance is easy in UTM: Pythagorean theorem x .9996 ** Bearing is pretty easy, too: arctan2(x, y) ** Also, the data can now be pulled out and viewed in MapServer * What the NoCat Map doesn't do ** Curvature of the Earth ** Fresnel zones ** Ground clutter ** Where's the hill? * Conclusions ** Maps can tell your stories ** Mapping and GIS aren't hard, they just look that way ** You don't have to be an expert ** You don't have to spend a fortune on software ** You (maybe) don't have to spend a fortune on data ** Go tell all your friends ** Thank you! = Coda as prelude * Accelerometers are the way forward Chris Dodo