![]() |
|
|||||||
| Register | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Registered Member
Join Date: Apr 2003
Posts: 4
|
ns2kml - Netstumbler to Google Earth
Hello!
Google Earth Rocks! It's pretty simple to integrate outside information, so I wrote a small app to import Netstumbler's Summary Files (File/Export/Summary...) into google earth's own .kml Files. (it was developed using vb.net, so you probably need .net framework) Full source is included and you can do whatever you want with it. (I'm no programmer, so be gentle on the critics )To do list: - different icons for Encrypted/Non encrypted networks - kmz file generation (just zip the kml and change extension!) - ideas? FlipO'2005 |
|
|
|
|
|
#2 (permalink) |
|
Asshole Emeritus
Join Date: May 2003
Location: S.E. VA.
Posts: 5,939
|
Moved to scripts.
__________________
"Benjamin is nobody's friend. If Benjamin were an ice cream flavor, he'd be pralines and dick." Sons of Confederate Veterans |
|
|
|
|
|
#3 (permalink) |
|
Registered Member
Join Date: May 2002
Posts: 13
|
This script is pretty cool. Is there a size limit to what it can handle? I've got a 4.3mb (900+ AP) .ns1 file that distills down to something like 100kb, but I keep running into an error when I try opening the .kml file in Google Earth:
Open of file "G:/allsummary.kml" failed: Parse error: Parse error: Unterminated entity reference at line: 480 at line:480 NS 0.4.0 b554 opens the summary file happily. |
|
|
|
|
|
#4 (permalink) |
|
root\.workspace\.garbage.
Join Date: Aug 2003
Posts: 4,805
|
Hmm, what's on line 480 of the file?
__________________
Daughter with arms inside shirt: "Daddy I'm not Armish" ┌──────────────────────────────┐ ╞ NS Icons Explained|et hoc genus omne ╡ └──────────────────────────────┘ |
|
|
|
|
|
#7 (permalink) |
|
root\.workspace\.garbage.
Join Date: Aug 2003
Posts: 4,805
|
or TextPad
__________________
Daughter with arms inside shirt: "Daddy I'm not Armish" ┌──────────────────────────────┐ ╞ NS Icons Explained|et hoc genus omne ╡ └──────────────────────────────┘ |
|
|
|
|
|
#8 (permalink) |
|
General "Noob Basher"
Join Date: Apr 2002
Location: Munich, Germany
Posts: 1,620
|
Iv'e tried this script on 10 different NS1 files ranging in size from 50k to 10MB
and every time it gives an error "Something funky going on here" etc... . Looks like you need to go back thru the code and find some bugs...
__________________
Legends may sleep, but they never die!!!! |
|
|
|
|
|
#9 (permalink) | |
|
SpoonfeederExtraordinaire
Join Date: Jan 2005
Location: Maryland
Posts: 3,619
|
Quote:
__________________
:00475160 0E A6 AE A0 19 E3 A3 46 .......F
:00475168 0D 65 17 0C 53 70 6F 6F .e..Spoo :00475170 6E 66 65 65 64 65 72 2E nfeeder. :00475178 45 78 74 72 61 6F 72 64 Extraord :00475180 69 6E 61 69 72 65 5D 3B inaire]; :00475188 8B 9E 92 5A FF 5D A6 F0 ...Z.].. |
|
|
|
|
|
|
#10 (permalink) |
|
Registered Member
Join Date: May 2002
Posts: 13
|
Thanks to goldfndr, I've got an idea what may be happening.
The entry that is causing the problem seems to have reserved characters in the name. Line 479: <Placemark><description><![CDATA[SSID: D&J's Radio Network <br> BSSID: a6:00:93:02:f7:02<br>Last Update: 2002-01-19 - 17:29:12 (GMT) <br> [SNR Signal Noise]: [ 29 78 49 ]]]></description> Line 480: <name>D&J's Radio Network</name><styleUrl>root://styles#default+icon=0x307</styleUrl> <Point><coordinates>-84.5151833,39.1032000,0</coordinates></Point> Line 481: </Placemark> The only thing that's different between those three lines and the surrounding ones are the & and ' characters. HTML doesn't like un-escaped & characters, and since it has the same basic structure as KML, the same may apply. |
|
|
|
|
|
#11 (permalink) | |
|
root\.workspace\.garbage.
Join Date: Aug 2003
Posts: 4,805
|
Quote:
Yes, the kml format doesn't like anything but numbers ans letters in the description and name fields. It's HTML sensitive. You'll have to use the <![CDATA[ ] structure to tell Google earth to ignore it. I.E. <name><![CDATA[D&J's Radio Network]</name>
__________________
Daughter with arms inside shirt: "Daddy I'm not Armish" ┌──────────────────────────────┐ ╞ NS Icons Explained|et hoc genus omne ╡ └──────────────────────────────┘ |
|
|
|
|
|
|
#12 (permalink) | |
|
Nyuk nyuk!
Join Date: Jan 2005
Location: TX
Posts: 1,380
|
Quote:
Another trick is to load each of your kml's individually into GE. GE will setup a new folder for each and append the master kmz file and allow you to select what you want displayed. The only down side I've found is the startup time for GE increases to 3-4minutes with 60k POIs in the kmz. |
|
|
|
|