AW: [Wikide-l] Re: Google Earth als Wikipedia Atlas

Stefan Kühn kuehns at uni-trier.de
Do Jun 30 17:38:52 UTC 2005


Ich passe gerade noch mein kleines Skript an, damit neben der Datei für Google Earth auch noch eine passende Datei für die Software
NASA World Wind herausspringt. Quasi in einem Abwasch beide Softwareprodukte bedient werden. 

Wer mir helfen möchte kann ja mal die zwei SQL-Abfragen auf dem aktuellen Dump durchführen.

Jeweils für '{{Geokoordinate|' und '{{Koordinate|' entsprechend anpassen.

SELECT cur_namespace, cur_title,
SUBSTRING(SUBSTRING(cur_text FROM INSTR(cur_text,'{{Geokoordinate|' )), 1, INSTR(SUBSTRING(cur_text FROM
INSTR(cur_text,'{{Geokoordinate|' )),'}}')+1) AS 'Koordinate'
FROM cur
WHERE cur_text Like "%{{Geokoordinate%"
AND cur_namespace = 0
AND cur_is_redirect = 0

Ergebniss:
Khan_Tengri {{Koordinate|42_03_N_80_11_E|42.05° N, 80.18° O}}
Mount_Everest {{Koordinate|27_59_16_N_86_56_40_E|27° 59' 16" N<br />86° 56' 40" E}}
...


Danke 
Stefan