.. _tutorials_georss:
GeoRSS
======
GeoServer supports `GeoRSS `_ as an output format allowing you to serve features as an RSS feed.
Quick Start
-----------
If you are using a web browser which can render RSS feeds simply visit the URL `http://localhost:8080/geoserver/wms/reflect?layers=states&format=rss `_ in your browser. This is assuming a local GeoServer instance is running with an out of the box configuration. You should see a result that looks more or less like this:
.. figure:: browser.png
:align: center
*topp:states rss feed*
Templating
----------
GeoServer uses FreeMarker templates to customize the returned GeoRSS feed. If you are not familiar with FreeMarker templates you may wish to read the :ref:`tutorial_freemarkertemplate` tutorial, and the :ref:`getutorial_kmlplacemark` page, which has simple examples.
Three template files are currently supported:
* ``title.ftl``
* ``description.ftl``
* ``link.ftl``
Each of these files may be used to customize the associated field in the GeoRSS feed.
Ajax Map Mashups
----------------
.. note::
For Ajax map mashups to work, the GeoServer instance must be visible to the Internet (i.e. using the address ``localhost`` will not work).
Google Maps
-----------
How to create a Google Maps mashup with a GeoRSS overlay produced by GeoServer.
#. Obtain a `Google Maps API Key `_ from Google.
#. Create an html file called ``gmaps.html``::
Google Maps JavaScript API Example< itle>
#. Visit ``gmaps.html`` in your web browser.
.. note::
The version of the google maps api must be **2.x**, and not just **2** You must insert your specific maps api key, and geoserver base url
Yahoo Maps
----------
How to create a Yahoo! Maps mashup with a GeoRSS overlay produced by GeoServer.
#. Obtain a `_ from Yahoo.
#. Create an html file called ``ymaps.html``::
Yahoo! Maps GeoRSS Overlay Example< itle>
#. Visit ``ymaps.html`` in your web browser.
.. note::
The version of the yahoo maps api must be **3.0** You must insert your specific application id, and geoserver base url
Microsoft Virtual Earth
-----------------------
.. note::
Non Internet Explorer Users*: GeoRSS overlays are only supported in Internet Explorer, versions greater than 5.5.
How to create a Microsoft Virtual Earth mashup with a GeoRSS overlay produced by GeoServer.
.. note::
To access a GeoRSS feed from Microsoft Virtual Earth the file (ve.html) must be accessed from a Web Server, IE. It will not work if run from local disk.
#. Create an html file called ``ve.html``. **Note**: You must insert your specific maps api key, and geoserver base url::
#. Visit ``ve.html`` in your web browser. You should see the following:
.. figure:: ve.png
:align: center
*Virtual Earth*