Translate posts to Experimental | Feedback
Google
Official Google Earth Download Site
Topic Options
Rate This Topic
Previous Topic
View All Topics Index
Next Topic
#30984 - 04/15/05 11:08 AM Network link for last N posts (suggestion)
ink_polaroid Administrator Offline
Sysop

Registered: 01/01/05
Posts: 1882
Loc: SF Bay Area, CA
Probably one for the back burner, given how busy our creative team is at the moment.

What I'd like to see at some point is a network link that always shows the last 20 or so attachments in the Placemarks forum. I imagine it'd be a fairly ugly UBB.threads hack, but it would be pretty useful.

Yea or nay?

Top
#30985 - 04/16/05 04:34 AM Re: Network link for last N posts (suggestion) [Re: ink_polaroid]
stiuskr Offline
Master Guide

Registered: 04/13/03
Posts: 1317
Loc: NearEarthOrbit over WV
We've always had this feature within the bbs, the File Attachments page.
_________________________
"And sometimes is seen a strange spot in the sky A human being that was given to fly"....Eddie Vedder

Top
#30986 - 04/16/05 08:46 AM Re: Network link for last N posts (suggestion) [Re: ink_polaroid]
PenguinOpus Administrator Offline
Sysop, Emeritus

Registered: 12/07/02
Posts: 1938
Loc: Bay Area, CA, USA
It seems so easy, so I gave it a shot. I haven't even tested long enough to be sure cron fires correctly, but... here it is.

Note: There's no link back to the BBS posting, so you're getting the location, but unless the context was put into the description, you don't know much about what you're looking at. I think I can solve it with some ugly sed, but I probably am too busy to be doing this


Attachments
23348-NL-BBSKML24.kml (276 downloads)
Preview this file with the Google Earth Plugin (learn more)


Edited by PenguinOpus (04/16/05 09:07 AM)

Top
#30987 - 04/16/05 12:06 PM Re: Network link for last N posts (suggestion) [Re: PenguinOpus]
ink_polaroid Administrator Offline
Sysop

Registered: 01/01/05
Posts: 1882
Loc: SF Bay Area, CA
Exactly what I wanted. Thanks muchly, Pingu.


Top
#30988 - 04/17/05 10:43 AM Re: Network link for last N posts (suggestion) [Re: ink_polaroid]
ink_polaroid Administrator Offline
Sysop

Registered: 01/01/05
Posts: 1882
Loc: SF Bay Area, CA
Spoke too soon.

Quote:

Parse error: Parse error: The input ended before all started tags were ended. Last tag started was 'Document' at line: 5358 at line: 5358




Looks like there are seven <Document> tags and only four </Document> tags in the file.

Top
#30989 - 04/17/05 11:19 AM Re: Network link for last N posts (suggestion) [Re: ink_polaroid]
PenguinOpus Administrator Offline
Sysop, Emeritus

Registered: 12/07/02
Posts: 1938
Loc: Bay Area, CA, USA

'Twas a bug in my script. The company that thought allowing spaces in filenames was a good thing... argh.

Fixed, no update needed.

Top
#30990 - 04/18/05 12:14 PM Re: Network link for last N posts (suggestion) [Re: PenguinOpus]
mcshea98 Offline
Master Guide

Registered: 04/09/05
Posts: 488
Loc: USA
PenguinOpus,

There seems to be a problem with "LineString" geometries in this script. Specifically look at the following from the 18th of April:

./23458-mcshea98_6.kml:<LineString>
./23458-mcshea98_6.kml:<coordinates>
./23458-mcshea98_6.kml:-98.59,34.080,300
./23458-mcshea98_6.kml:-98.59,34.100,300
./23458-mcshea98_6.kml:</coordinates>
./23458-mcshea98_6.kml:</LineString>
and
./23425-polyline OR marathon.kml: <coordinates>
./23425-polyline OR marathon.kml:
./23425-polyline OR marathon.kml:-122.67669 , 45.51837 , 68.1
./23425-polyline OR marathon.kml:-122.67667 , 45.51842 , 68.1
./23425-polyline OR marathon.kml:-122.67405 , 45.52687 , 69.6
.
.
.

These two posts (one is mine) look eratic when viewed in keyhole. I tried adding spaces before the coordinates, but this didn't seem to fix the problem, but it did help. I then tried putting the entire coordinates tag on one line. This fixed the problem; however, this makes auto importing from a GPS very difficult (ie. lots of typing).

I don't know how to adjust the script, but at least I hope that I clearly defined the problem.

Top
#30991 - 04/18/05 12:38 PM Re: Network link for last N posts (suggestion) [Re: mcshea98]
mcshea98 Offline
Master Guide

Registered: 04/09/05
Posts: 488
Loc: USA
I noticed that if the geometry is imbeded in a network link, then it works fine. This will fix my problem; however, not everyone has the luxury of being able to publish their kml files on the internet (except through the BBS).

Here is what seemed to work.

./23458-mcshea98_7.kml:<NetworkLink>
./23458-mcshea98_7.kml: <name>Test Network Link</name>
./23458-mcshea98_7.kml: <visibility>0</visibility>
./23458-mcshea98_7.kml: <url>http://www.mcshea98.com/Keyhole/Run.kml</url>
./23458-mcshea98_7.kml: <refreshPeriod>86408</refreshPeriod>
./23458-mcshea98_7.kml: <refreshVisibility>0</refreshVisibility>
./23458-mcshea98_7.kml:</NetworkLink>

Top