Interesting!

This may be what we need.

-- 
Nate Carlson <natecars at real-time.com>   | Phone : (952)943-8700
http://www.real-time.com                | Fax   : (952)943-8500


---------- Forwarded message ----------
Date: Wed,  3 Oct 2001 00:54:47 -0400 (EDT)
From: Russell Nelson <nelson at crynwr.com>
To: Bob Hagemann <bob.hagemann at divine.com>
Cc: "wireless at lists.bawug.org" <wireless at lists.bawug.org>
Subject: Re: [BAWUG] WiGLE / JiGLE

Bob Hagemann writes:
 > A friend and I have been working on a website / Java client for doing
 > wireless station collection and mapping. We call it WiGLE for Wireless
 > Geographic Logging Engine. The Java client has been dubbed JiGLE. We are
 > currently focusing on the Chicago area, but the online portion is
 > location agnostic and the client can have new maps and coordinates
 > dropped in easily.
 >
 >    For a screen shot of the current client, which can read as well as add
 > to the online database, check out:
 >
 > http://wigle.net/gpsopen/gps/GPSDB/map/
 >
 > Up until now we've been using mapquest maps, but those carry copyright
 > and other restrictions. We wondered what options there are for free,
 > unrestricted maps (at the street level) that we can dump into the client.

Here's the program I use with pygps.  It hands you a map, and a world
file.  You have to give it the terraserver parameters from the URL.
With a little bit of work, you could have it search for a latitude and
longitude.

#!/usr/bin/python

import os, re, sys

s = 12
t = 2
w = 2
x = 688
y = 5151
z = 17

if len(sys.argv) == 4:
    x = sys.argv [1]
    y = sys.argv [2]
    z = sys.argv [3]
if len(sys.argv) == 7:
    x = sys.argv [1]
    y = sys.argv [2]
    z = sys.argv [3]
    s = sys.argv [4]
    t = sys.argv [5]
    w = sys.argv [6]

place = "X=%s&Y=%s&Z=%s&S=%s&T=%s&W=%s" % (x,y,z,s,t,w)
entry = os.popen("wget -O - 'http://terraserver.homeadvisor.msn.com/USGSDownload.asp?" + place + "'", "r")

while 1:
    eline = entry.readline()
    if not eline: break
    found = re.search(r'"(USGSWorldFile.asp.*?)"', eline)
    if found:
	    os.system("wget -O '" + place + "w' 'http://terraserver.homeadvisor.msn.com/" + found.group(1) + "'")
    found = re.search(r'"(http://.*?/download.ashx.*?)"', eline)
    if found:
	    os.system("wget -O '" + place + "i' '" + found.group(1) + "'")

-- 
-russ nelson <sig at russnelson.com>  http://russnelson.com
Crynwr sells support for free software  | PGPok | It's a crime, not an act
521 Pleasant Valley Rd. | +1 315 268 1925 voice | of war.  For my take, see:
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | http://quaker.org/crime.html
--
general wireless list, a bawug thing <http://www.bawug.org/>
[un]subscribe: http://lists.bawug.org/mailman/listinfo/wireless