More on geotagging

Some good comments came up in the last post on georeferencing. I thought a followup post was
merited.

The itch I’m trying to scratch here is that I want to be able to georeference just about any kind of data,
and I want to be able to embed the georeference information directly in the data file, whether it’s a
graphic, or audio, or video, or gene sequence data, or anything else. I want to have a standard form for tagging any of these files. And I don’t want to store the location metadata in a separate file.

What I think I need, then, is a standard, simple way of making geographic notations in a terse, concise format that is both easily parsed by and readily recognizeable to a computer, is reasonably human readable, and can be made to fit just about anywhere that arbitrary text is allowed.

Right now, there are only two types of files that have some way of embedding geographic information into them that I know of. The obvious one is that EXIF data in JPEG files can contain “GPS” tags. For hardcore GIS people, GeoTIFF is the other one. Both are for photographs or other still-image data only. What about the rest?

A variation of one of the current geotagging XML formats like the W3C (“<geo:lat>41.4354840</geo:lat><geo:lon>-112.6660845</geo:lon>”) or GeoRSS is an obvious possibility. XML has two potential problems though, as I see it. First, it’s not very terse – the markup substantially increases the amount of space the information takes up. I think in most cases that wouldn’t necessarily be a problem, but I suspect there are a few file formats out there with only comparatively small spaces set aside for a “comment” or “description” field.

The second potential “problem” is something odd that occurred to me today: it’s hard to pronounce out loud. There are some popular audio formats (e.g. “.wav”) that as far as I know have no space whatsoever for arbitrary text…but if my little standard was something that could be distinctly spoken, someone making a recording could literally speak the metadata in a format that a speech-to-text engine (like Sphinx) might be able to recognize and convert to a compatible string of text which could be parsed just like data from anywhere else. This is something of a corner case, I admit, but I think it’s at least worth considering.

Another good point that came up was what you do if your data extends beyond a single point. For example, if I want to georeference an audio recording I might make while narrating what I’m seeing out the window of a speeding train, it makes good sense to at least try to store line segments rather than just a point. That way, if someone wants to find the spot within a several-mile stretch where I suddenly exclaim “Hey, wow, look at that!” they can. The ability to define areas with a polygon or a point-and-radius seems like it would be handy, too, though obviously much more optional.

So, let’s see, I’m looking for a format with minimal markup, but which is easily recognized, is made of plain text which could be crammed into, say, a PNG tEXt chunk, an mp3 comment frame, a Genbank “Source” field, or any other field which allows arbitrary text. I want a form that’s minimally objectionable to anyone else who might be willing to use it. And I think I want it to be able handle points consisting of at least latitude, longitude, optional elevation, optional timestamp, and possibly even an optional heading and angle, and can handle more than one point per file (for the case of lines). Am I forgetting anything?

Besides “going to bed before 3am”?

I want to geotag something besides photographs!

Cornelia - Queen of the Snow!For no particular reason, here is a picture of The Dog in her natural habitat. This picture really has nothing to do with today’s blog post, but since this is supposed to be a happy time of year, I suppose a happy picture is in order.

In case anyone is wondering if I’ve forgotten the supposed microbiological emphasis on this blog, the answer is no. In fact, I’ve got a post on amateur yeast culture brewing, but I’m still researching it a bit.

Meanwhile, it seems reasonable to post about geolocation, which after all is an important and useful trick for associating information with its place in The Big Room.

Geolocation of photographs is well established, at least for JPEG images. There are standard ways of tagging a JPEG file with an ICBM address, and I’ve been having a lot of fun doing this with my own pictures. (If you’re bored, you can browse them on Panoramio, and perhaps in a few weeks may stumble on some of them in Google Earth.)

There doesn’t appear to be any standard way of tagging other forms of media files, though. What if I want to geotag an .mp3 or OGG/Vorbis audio file recorded at a particular spot? Or a “DivX/Xvid” or OGG/Theora video?

Irritatingly, it seems as though a few people have mused about it, but nobody seems to have addressed it. There are projects like The Freesound Project which does geolocate sounds, but the geographic information is not actually embedded into the sound files in any way. As far as I can tell, the location is tracked in their own server’s database only. A Google search turned up a post on the “Random Connections” Blog musing about this, but the only application mentioned is adding georss tags to the RSS for a podcast feed, not to the podcast’s audio file itself. Even the otherwise excellent Mapping Hacks book (written before O’Reilly’s current decline into yet another “Proprietary Product® How-To Guides” publisher over the last couple of years) mentions the topic in Hack #59, but disappointingly appears to have really had nothing to do with tagging files so much as “interpolating a position from a GPS track, given a timestamp”.

This all comes up because we’re about to go on a roadtrip to check out a part of the country where we seem likely to end up living next year. I’ve been told I’ve got a pretty good voice, so I was considering generating a travelogue series along the way. It appears to be relatively easy to generate a “narrated picture” as a standard mp3 file, the picture being loaded as though it were “album art”. The only aspect of the whole thing that’s missing is geolocation. For now, just being able to easily obtain the ICBM address associated with the file while playing it so that one could plug the coordinates into Google Maps to see where the recording was done, but ideally I’d like to do it in a way that could be considered standardized, so that later on people might be encouraged to add geolocalization plugins to their media-playing software.

Sure, I can just generate a .kml file with a track of where we were, with markers containing picture and audio links. In fact, I probably will, but I don’t want people to have to use Google Maps or Google Earth to make use of the geolocation information associated with the audio.

Any suggestions, anyone?

Why you really do or don’t want me as a student…

Of the classes I took this last semester, there’s only one I haven’t blogged about at least once.

Masochist that I am, I went and took “Applied Calculus”, even though I’d gotten approval to count my previous semester of calculus (about 8 years ago) as fulfilling the mathematics requirement for graduation. The “applied” in the title of the class caught my eye, and after speaking to the instructor before the semester to find out what the class was like I decided that if there was time and money left I’d take the class. So I did.

Although I’d rank it as only the second most useful “Mathematics” course I’ve taken so far, Dr. Wolper was one of the best mathematics instructors I’ve had up to this point, so I’ve got no regrets for having spent the time and money to take it. I suspect I’ll remember a lot more of it than I did of the previous calculus class.

Anyway, getting to the point of this post:

There are times when I am unable to restrain myself and answer homework or exam questions in a terse, boring manner, regardless of the subject. If you’re an instructor and are wondering if you want me in your class, here is something to judge by.

Calculus (for those who don’t know) is more or less the math you use to deal with when, how, and how fast things change. In practical terms, when dealing with real-world applications this often means dealing with a graph of some data. A number of homework (and exam) problems this semester dealt with questions along the lines of “what would a graph of such-and-such a situation look like and how would you interpret it?”. Here’s one from early in the semester:

This was my answer:

You may judge for yourself whether this is a good answer or not…

I can has graduation?

The last undergraduate final is over.

Everything it taken care of save for one overdue library book, which I intend to take care of tomorrow.

All the other fees are paid. All the paperwork is done. I’m pretty sure I got well above the F– that was the minimum I needed on the Philosophy final to achieve the minimum passing grade. In fact, my only current stress about my grades is whether or not I managed to end out my last undergraduate semester with a 4.0 or not.

I FEEL BETTER THAN JAMES BROWN! WHEEEEEEEEEEEEEEEE!!!!!!!!!!!!!!!!!!!!!!!!!!

Let the wild, uncontrollable drunken orgiastic celebration begin!

After my nap

Make it stop!

Specifically, I think I’m getting a severe case of Noel poisoning.

One of the things I hate most about Christmas is the incessant “re-imaginings” of the same handful of accursed songs, generally done in the same awful forced pretend-emotional tone.

They’ve got “The First Noel” playing in the style of a late-1950’s/early-1960’s Disney Choir style. On a loop. For the last half hour so far.

Ugh. Make it stop…

Thank the Noodly One for headphones, Amarok, and the collection of hard bouncy techno music that happens to be on Igor here…

I’m down to the last class of the last week prior to next week’s finals, so I should have time for a real post again soon…

I’m having too much fun with this.

I finally managed to get Hugin to work, as you can see from the picture of the Dead Fish Museum above.

Okay, it’s the visitor’s center at the Fossil Butte National Monument, but it really is a museum of dead fish. And other fossils. If you click the image to get to the Panoramio page, you can even see where it is on the map: in fact if you zoom in, the building itself is visible in the aerial photo imagery.

Between digiKam’s ability to handle geocorrelation with tracks from my GPS, Panoramio’s support for geolocation and mapping (and connection to Google Earth…), playing with High Dynamic Range digital photography, and now panoramas, I’m beginning to develop an increased urge to travel around and take pictures again…

Nerd Photography in the Big Room

Readers may have noticed by now that I have a cheap but serviceable digital camera that I’ve been using to take pictures which occasionally show up here on the blog. (Hey, there’s another thing that the External Deliverer, in Its benevolence, might bring me: a nicer digital camera.)

I’ve been playing with geolocation for a while now. Just recently, I started also doing some crude playing with High Dynamic Range digital photography. It’s obviously going to take me some work to get it figured out and get better results, but what I’m getting so far doesn’t look too bad, at least in my own opinion. Kind of surreal, like Mars Rover pictures…

I’ve discovered that my Handy-Dandy Linux box has access to a couple of tools that make these easy.

I noticed a few days ago that digiKam is actually able to read .gpx format files downloaded from my GPS and then correlate the track from the GPS with the timestamps on the photos automatically, so in what little spare time I have I’ve been going back through my archives of GPS tracks and timestamped photos and trying to find as many to correlate as I can. I managed to get geolocation tagged into pictures from as long ago as three years or so. I also tagged this more recent one. I saw this place half a decade ago and had been wondering if it was still there. Last week we finally had a chance to visit and sure enough, it was there. If you were wondering where one could go to learn to do the Squirrel Dance, here it is.

Landscape and Sign:Don't Trespass on the 'I'

Today after classes I trudged up to the top of the hill at one corner of the campus with my trusty GPS in hand and took a few pictures, as you can tell. Since Google Earth seems to get most of it’s photos from Panoramio, I’ve started uploading them there. I may also get around to uploading them to flickr one of these days, too. I kind of need some pleasant distraction – I’m starting to hit the “Am I there yet???” phase of the semester. Just another week-and-a-half of classes, then finals, then I’m finally done. At least with the undergraduate stuff.

If you’re bored, there are a couple of additional pictures on the Panoramio site, here. You can also get the ICBM address there, and a .kml file for Google Earth so my pictures will pop up if you happen to run past an area where one of them is while you’re browsing the globe.

’tis the season to be greedy

Members of my immediate family start asking around this time of year about what kinds of things I’d like for Christmas presents this year.

This strikes me as a good way to break the week-long bout of blogstipation I’ve been having. Here, then, is what I want for Christmas, Xmas, Hannukah, Kwanzaa, Cephalopodmas, or whatever gift-giving winter holiday you prefer (each category is sorted roughly in order of desire at the moment):

Ridiculously Expensive Stuff

Which I only list on the off-chance that someone wins the lottery or happens to find an amazing bargain on “e-bay®” or something.

Relatively Expensive Books

Other kinda-expensive-but-maybe-you-can-find-it-at-reasonable-price stuff

Relatively Cheap Stuff (but still spiffy)

I know there was more, but my brain seems to have gone on break right now…

Superman is Homeless!

Two weeks of midterms, and now it’s finally Thanksgiving Break week.

In honor of this celebration of my second most favorite deadly sin, I was going to do a food post, but I’ll save that for later.

Instead, I want to share a shocking and surprising fact that I’ve discovered: People are Stupid.

Actually, that’s not true, it’s really more like “People are Lazy, and Thinking is Work”, but “people are stupid” is easier to say.

Today’s illustration of this principle includes a visit to the former town of “Metropolis, Nevada” (link goes to Google Maps image, centered in front of the hotel. Should pop up in a new window.).

Composite image of the ruins of the Metropolis Hotel

Yes, evidently a bunch of developers from New York thought it’d be a great idea to build a big city in the barren deserts of Northeastern Nevada. This is where the “stupid” comes in.

Check out that map, zoom out and look around. What do you see? Yes, that’s right: sand, sagebrush, and dead grass.

There’s something downright appalling about the way people in the Western United States (where I’ve lived, in various places, for the last couple of decades) romanticize living in the middle of a desert, while at the same time trying desperately to pretend that they’re NOT living in a desert.

Here’s the story of Metropolis, as I understand it, in short form: Bunch of New York developers decide to build a big city for Mormon settlers. In order to pretend they’re not living in a desert, they figure they’ll just dam a spot on the small river to the northeast somewhere so that can stop enough water to keep themselves running.

Now, plunking down in the middle of the desert and pretending there’s nothing odd about building a large water-demanding city in it is a time-honored tradition of the American West, so why didn’t it work here?

Apparently, it’s because somewhere in the Lovelock, Nevada area a bunch of people said “Hey! We were here using that river’s water to pretend we’re not living in a desert first, so you can’t take it away from us by damming the river up there! So there!”. And the courts agreed.

You might think the teachers at the local school would be educated enough to know that “desert” means “lack of water”. I went over to ask about this, but…:

The ruins that once was the Metropolis, NV high school.

I guess school’s out for the moment. I wonder what their sports mascot was. “The Metropolis Dustbunnies?”

I was reminded of all of this by a recent story that was going around about some developer who thinks it’d be a great idea to build a 100,000,000 gallon-per-year water park in Mesa, Arizona. Which, for those unfamiliar with the area, is a desert just like Metropolis, only substantially hotter.

He’s not the first one though. Palmdale, California – out on the edge of the ‘Los Angeles area’ of California, appears to have the aptly-named DryTown Water Park. Palmdale is in the area of the Mojave desert. I have no idea how much water it uses up. I’m certain there are numerous others in the Los Angeles area alone.

It’s something to think about if you find yourself wondering why the Los Angeles area continually induces the shunting of water from other parts of the country to itself, like a cancerous tumor inducing blood-vessels to form in order to feed its own growth.

It’s probably obvious that I’m tired of living in deserts…

This blog does not exist

I say that because in order to exist I must have used my computer to type it in, but George Berkeley “proved” that material things don’t exist. No pictures either this post, because after all my camera doesn’t exist, either.

Okay, the fact that I’ve got a whole cluster of time-sucking school stuff last week and this week to deal with is also a factor in keeping the posts here sparse at the moment. Berkeley just happens to be one of them.

Berkeley was what I would call a “philosophical” Empiricist (whereas I would describe myself as a “practical” empiricist – hence the “Applied” in this blog’s “Applied Empirical Naturalism” subtitle. Put simply, empiricism means that knowledge comes from observation via the senses. I’m a practical kind of guy, and I don’t think this in any way invalidates the use of the intellect to infer additional (testable) knowledge from one’s observations beyond what is directly observed. Berkeley, on the other hand, is a solipsist: he claims that nothing exists unless it is perceived – or is a perceiver.

His argument is a little hard to follow. As best I can tell, he’s starting with a Descartes-like observation that the only thing we ever actually experience are sensory perceptions. In other words, we can experience and know about the sensation of “heat”, but this sensation is just an idea in our minds. Even if there were something “behind” the sensation of heat that was causing it, we could not know anything about it directly, since we only ever experience the sensation.

In a way that is still not entirely clear to me, Berkeley then seems to take the leap from Descartes-style “the only thing I can be certain of existing from my direct observations are ideas, and my mind which contains them” to “since there is no direct empirical basis for claiming the existence of anything else, matter cannot be said to exist”.

Berkeley then goes on to claim that since only minds and ideas exist, and since there are some ideas that seem to be imposed on him (like if he sticks the idea of a red-hot-poker up the idea of his left nostril, he will have the idea of excruciating pain whether he wants to or not), that therefore there must be some other mind from which these ideas come. From this, he makes the leap to claiming that there must be an “infinite” mind which contains all these other ideas, by which he means God™.

This also gives him a convenient explanation for things existing when nobody’s looking at them. See, God is always looking at everything, so nothing that exists is ever not being perceived.

Personally, I’m finding myself wondering if his argument also leaves open the possibility of an animistic reality instead. He claims that everything we experience (including “sensible things”, i.e. things we see, feel, smell, etc.) is just an idea, and an idea existing without a mind is absurd. Instead of postulating the existence of an “infinite” mind, though, wouldn’t the notion that anything that exists actually does, itself, have a mind (or “spirit” if you prefer) also satisfactorily explain how things can continue to exist even when nobody is observing them? Berkeley makes the claim that inanimate objects don’t have minds…but he gives no justification for this claim. I mean, he admits that he can’t directly observe other people’s minds (or the “infinite” mind either) and therefore can’t prove that anyone but him exists, but he never claims that other people don’t exist. So why couldn’t the continued existence of the fork that I ate dinner with be due to the fork’s own mind?

That “thump” you may have imagined hearing was probably Berkeley turning over in his grave. Berkeley was, after all, a Bishop, going through this whole philosophical exercise out of hatred of “skeptics” and “atheists”, and it amuses me to imagine how appalled he’d be to have his arguments used to support something that he probably felt only “heathens” and “savages” would consider…

Yeah, I know, not much of a post, but I’m a bit overloaded at the moment. Nonetheless, more to follow this week over the next few days, at least.