Home » August 2005 » georss2kml.cgi: GeoRSSをGoogle Earthにマップするスクリプト

georss2kml.cgi: GeoRSSをGoogle Earthにマップするスクリプト

GeoRSSをGoogle Earthにマップするスクリプトを作ってみました。

georss2kml.cgi: Maps the GeoRSS onto Google Earth

宮川さんのMap geocoded RSS/Atom to Google Mapsを再利用しています。

例えば、RSS Photo Album view: Tokyo LandscapeをGoogle Earthで表示するには、

http://as-is.net/maps/georss2kml.cgi?url=...(以下省略)

にアクセスすればよいわけです。具体的には以下のように表示されます。

georss2kml

http://as-is.net/maps/georss2kml.cgi?url=...(以下省略)が生成するKMLを静的に利用することもできますし、URL自体をGoogle EarthのNetwork Linksとして保存しておけば、更新がオンラインで反映されることになります。

すでに同じことができるものが公開されているかもしれませんが、次のアーティクルへの布石です。

オプション

  • url=GeoRSS URL
    変換するGeoRSSのURLを指定します。
  • xml=0 | 1
    KML出力時のContent-Typeを指定します。xml=0の場合にはGoogle Earthでの表示用にapplication/vnd.google-earth.kml+xmlを返し、xml=1の場合には(他のアプリケーションからの利用できるように)text/xmlを返します。前者がデフォルトです。

このエントリーのトラックバックURL: http://as-is.net/mt/mt-tb.cgi/301

Links referred to this entry

Comments (1)

  1. Ogawa -

    I was wondering what GeoRSS you are supporting. I am one of the collaborators in the GeoRSS work as documented at www.georss.org . This work is different but related to the W3C geo vocabulary and other related activities.

    Thanks for the clarification.

    Regards

    Carl Reed, PhD
    CTO
    OGC

Post a comment

Remember me?