Archive for the ‘Geograph’ Category

KML writing PHP Class

Tuesday, March 6th, 2007

For a little project working on for Geograph (btw Second Birthday today!), that will end up producing quite complex (and repetitive) KML, I decided to take the plunge and create my own abstraction class.

There are already a few of these about, but I wanted something with just enough abstraction so don’t need xml in the php code, but without too much complexity, or a whole new syntax to learn. So the final output is basically a generic XML creation system, but tailored to KML generation, with a number of convenience methods for common bits of KML, (like outputting the right headers). This don’t do any schema enforcement, and assumes a good working knowledge of kml.

Anyway as the code is already GPL, thought would mention it here in case it useful to someone else.

Get the base class here (from the Geograph SVN repository)

There is also another file here, which extends basic the functionality, this is more specific to Geograph, but could still be useful.

And a few demo’s/tests used during development:

Demo1 - (view running demo - by default displays the KML, option to open in GE)
Demo2 - (view running demo)

And for a real world use of the code (been in active use for a week now)

Eagle eyed viewers might notice it claims kml2.0 but then goes on to allow use of 2.1 features. Yes I know this is ‘bad’ but is with reason. I have found to my expense that using 2.1 as the version actually has a few undesirable effects, eg making the Document visible in My Places tree, can’t mix and match styleUrl and style (to have common style but with a unique icon), and a few other subtle things. Whereas GE seems to allow the new features in a 2.0 kml file, I guess this is the GE equivalent to quirks and strict mode. (disclaimer: it’s a while since I tested this, so might be old news, I really should run some real world tests to confirm this is still the case)

Geograph Hectads in Google Earth v2

Tuesday, February 6th, 2007

Sometime last year I created a visualization of Geograph coverage as a series of 3D columns in Google Earth, well as that is now out of date, time to create updated versions:

: Geograph Points Per Hectad (*)
and Images Submitted Per Hectad (each around 200kb)

These are spectacular in themselves, but if you then create a series of these each timestamped with the dates of the images included, you can get an interactive animation…

So here is a version that downloads a monthly bargraph, since the project began, allowing full animation using the timeslider. Due to the size will only give the Animated Images Version which is the best anyway.

(due to the way of loading the data with nested network links will take time and patience with the timeslider to load them, all it seems to only really be possible by manually dragging the time-slider slowly across the timespan. )

Just need someone to create a fly though preview and upload to YouTube ;)

(* Hectad is a Geograph term for a 10km by 10km square)

Another PhotoSpot

Friday, January 26th, 2007


View at Geograph: SH7840 : Stone on Carnedd Iago
Another in the mini-series of Panoramic Images loaded into Google Earth, using DigitalUrban’s Panoramic Viewer tutorial.

This one is higher resolution than some of the others and ways in at 525kb,
but the extra resolution is useful to see the distant mountain ranges.

Anyway download it here: Google Earth Version

geotagged More Links for this location

Network Link updates

Friday, December 15th, 2006

Following on from the last post about the amazing 3D SpaceNavigator (PE) from 3dconnexion, it has finally inspired me to blow the dust off the experimental solution to Making a View-Based Refresh efficient when tilted?, that I blogged about a while ago.

So I’ve just implemented this on the Geograph Google Earth ‘Wide Area’ Network Link, and the Nearby NetworkLayers, (imaginative names aye?), which along with GB and Ireland Grid Lines Layers any my most used network links.

This should have no affect when looking ’straight down’ but when the globe is tilted, hopefully the useful information should be better positioned in the foreground rather than extending into the blurry distance.

Feedback welcome…

Geograph goes Temporal in GE 4

Saturday, September 16th, 2006

Have made a minor update to the Google Earth (KML) exports from Geograph, so that each image if possible will include the date the photo was taken to allow the new shiny Time Slider to function in the very Latest version version of GE 4 Beta (ones since 14th Sept ‘06).

For example: Reflections on Geography topic. [Link takes you to webpage to choose download type, the Wide Area option is recommended as that allows you to move around and Zoom and still see a number of images. ]

Planting Trees to go Carbon Neutral?

Thursday, June 1st, 2006

Fellow Geograph Developer LordElph has had the brilliant idea to neutralize any the Carbon emissions made by running our new shiny servers. Can you help us pull this off?

Hmmm…

Thursday, May 25th, 2006

So got to do one of these with geograph images!

(it’s an infinity zoomable image thingly, I think it requires a recent shockwave viewer)

3D Bar-Graphs in Google Earth

Wednesday, March 8th, 2006

Following on from the Geograph Hectad Density Layer for Google Earth, I thought I would try the same for the layers from my Location Search. Click the ‘Bars’ from any of the layers on the full list of layers here, or if you don’t have GE see what you missing: geograph screenshot.

See also my post about the geocaching/trigs layers at the Groundspeek Forum.

GeoRSS for geograph.org.uk

Tuesday, March 7th, 2006

all I wanted to say is added basic support for the simple GeoRSS to the geograph.org.uk RSS syndication feeds. While there have also combined it with PhotoRSS to create GeoPhotoRSS ;)