Fun with georss)

Source: Internet
Author: User

From http://www.directionsmag.com/articles/fun-with-georss/123114

Summary:

If you know what RSS is, georss is a logical step forward. but, since should people only vaguely know of RSS, let's start there. RSS stands for Really Simple Syndication or Resource Description Framework (RDF) site summary or rich site summary. this article, by Adena schutzberg, explains RSS and georss, tells us why it's important, and provides examples of ways you can "play" with georss.

Disclosure Statement: I consult to the OGC, a current temporary sor of georss.

First, RSS
If you know what RSS is, georss is a logical step forward. But, since
Registrant people only vaguely know of RSS, let's start there. RSS stands
Really Simple Syndication or Resource Description Framework (RDF)
Site Summary or rich site summary. None explains what it does very
Well. RSS is a way to publish information out to an application. It's
Commonly used to publish the latest blog entries to RSS
Aggregators/readers, tools used to read the data delivered in what's
Called an "RSS feed." The feed is delivered in Extensible Markup
Language (XML) that's typically published automatically by a blog or
Other software. The RSS feed itself looks a lot like HTML, with tags
And values associated with those tags.

How this all works is nice to know, but what you can do with RSS is far
More interesting. Here's a very simple example of how we use RSS
Directions media. Our blog, all points blog, publishes an RSS feed.
(Have a look at it here.) We
Capture that feed and use it to populate the blog area onDirections magazine
Homepage. Every time a new post appears at APB, the software behind our
Homepage learns of it via the RSS feed and posts it. Magic! It's not
Really magic, our programmers built it, But we editors love it since we
Don't have to worry about keeping our varous sites in sync.

RSS and geodata
The RSS feeds that directions media offers include text only since
Words are our stock in trade. But, what if you wanted to share content
That was spatial in nature? How wocould you code it into the RSS feed?
That's not exactly where georss came from, since the people who built
It were trying to solve a slightly different, broader problem. Still,
That's the question they ended up answering. georss adds a few (or more) tags
(Think of HTML type tags) to RSS that hold spatial data. That data is
Associated with the text, numbers and images that are published in
Feed.

So, within a typical RSS feed, you might want to consider adding
Spatial information such as a weather forecast (e.g. The temperature in
San Francisco will be 50 degrees with cloudy skies). With georss, you
Cocould include that information and the coordinates of San Francisco in
A standard form. That last part, about a standard form, is important
Since it suggests that "some people" have agreed on standards. And,
Indeed, some people have. They are not a Standards Organization and you
May never have heard of some of them, but they are people who were
Interested in solving this problem and put their heads together.

The current state of georss
Here's what they came up with, so far. Alas, the current state
Things except des three different but related ways to store spatial data:

  • A World Wide Web Consortium (W3C) version
  • A simple georss
  • A gml or pro georss

Each is a bit different (that's the wonderful thing
About standards-there are so authorized to choose from !) But none are yet
Formal standard. They are just "out there" for folks to use. OGC was
Unable to provide a statement on the status of georss within that
Organization before press time.

So, what's the difference between these and how are they used? I'll
Keep this short since it's far more fun to play with these feeds
To understand their inner workings.

W3C GEO was first out
The gate, back in 2003. It's sometimes referred to as "Geo: LAT/GEO: Lon"
Since those are the names of the tags. W3C GEO supports just points.
The current thinking is that all tools designed to work with georss
Shocould support all three
Versions. Here's what W3C GEO looks like:

Simple georss extends
W3C GEO to include support not just for points, but lines, polygons,
Boxes and elevations. It's built on a profile (subset) of OGC's
Geography Markup Language (GML) specifically chosen to make it easy
Programmers to implement and for others to use. Simple georss lays down
Rules about which coordinate system is used: WGS84, latitude, longpolling
(In that order), using decimal degrees. It looks like this:

 

GML or pro georss goes
The next level of complexity and allows different coordinate reference
Systems and all of Geography Markup Language (GML) for tagging content
In the feed. This is most likely to be used by really "geeky"
Geospatial users and scientists and/or by specific communities that
Want to share specialized information.

Playtime!
With those basics, it's time to play with georss. To do that you need
Two things: Someone publishing georss feeds and software that
Understands georss. Good news-both are freely available on the web!
And, for future reference, more and more companies are implementing
Readers and writers into their desktop and Web software.

Several Web applications allow regular people (non-programmers) to use
Georss to make maps. (I'm hoping to find more soon. Google? Ask.com?
MapQuest ?) First up, Acme. You get
A sense of the company from Its tagline: "graphics * UNIX * networks *
Fun, purveyors of fine freeware since 1972. "They build all sorts
Tools, including the Acme georss map viewer that uses the Google Maps and Yahoo's
Maps APIs. So far as I know, it only knows how to read W3C georss
At this time. To start, check out this link,
A map of California state parks fed by an RSS feed
Http://mapnut.com/calstatepark.xml:
Http://www.acme.com/GeoRSS? Xmlsrc = http://mapnut.com/calstatepark.xml

A
Georss feed populates Acme's georss map viewer
With state parks in California.



Did you look at that URL carefully? It's the Acme URL, then an equals
Sign, then the URL of A georss feed. So, you can pretty much put any
Feed in there and (if all goes right) Make your own map. Try putting in
This georss feed in place of the state parks one:
Http://earthquake.usgs.gov/eqcenter/recenteqsww/catalogs/eqs7day-M2.5.xml

That's a georss feed from USGS of real-time, Worldwide Earthquake list
For the past seven days. Your URL shocould be:
Http://www.acme.com/GeoRSS? Xmlsrc = http://earthquake.usgs.gov/eqcenter/recenteqsww/catalogs/eqs7day-M2.5.xml

Here's just a bit of what it looked like when I wrote this article.
Your maps shocould look different since USGS is publishing real time
Data. Further, if you want to, you can add as your georss feeds as you
Like using this syntax:
Http://www.acme.com/GeoRSS? Xmlsrc = http://example.com/xmlfile1.xml&xmlsrc=http://example.com/xmlfile2.xml

A bit
Of the "past seven days earthquake map" from
May 30th created from the USGS georss feed.



A second georss reader is mapufacture,
"The georss aggregator," which
Is built on Google Maps. The developer, Mikel Maron, is one of
People behind georss. Maron lists a bunch of feeds with which to play
And some of his examples show more advanced uses of georss, including
This weather map
Example.

To understand this weather map, first be aware that Yahoo offers up
Weather and traffic data using (W3C + their own tags) georss.
Weather Map example programmatically queries the Yahoo feed for just
The locations and weather for four locations. If you click on
Location, the weather information appears below the map, so you may
Need to scroll down to see it.

But, along with the advanced stuff, mapufacture offers a simple way
Build your own map from a georss feed. You'll need a login/password
Do this. Get one by choosing "create a map" from the options procedure ss
Top of the site. Once you are logged in, fill in the boxes below
Map with a title and description, and then zoom to an area of interest
(If you want the map to display "zoomed in" to a specific area). Next,
Save the map. Now, the fun part. Click on "add feed" at the top of
Map and add one or more feeds to populate the map! I set my extents
Around Cambridge, Massachusetts and added a feed of area events.

Creating
A map using mapufacture.



My
Cambridge events map populated via a georss
Feed.


Musings
Consider what this all means. In time, shocould things go as I hope they
Will, anyone, anywhere, cocould build his or her own instant mashup
Just the data needed on whatever basemap and with whatever technology
(Desktop, web, etc.) makes sense.

Who wocould put out georss feeds? Anyone who sees the added value
Including location with their data. consider these ideas:
Grocery or specialty store might offer a feed that highlights
Different specials in different geographies (thanks to Pierce
Eichelberger for that idea), news organizations might tag their news
With geographic location (s), government and other organization might
Offer data from sensors (like the earthquake data or traffic data ).

How wocould they create the feeds? Most RSS feeds are automatically
Created by software. And, even now, there's an RSS
Georss tool
Input the coordinates automatically into regular RSS feeds. I suspect
That folks like metacarta (
Company that offers tools to geocode
Unstructured text) wocould offer a more advanced technology or services
Like this.

What sort of software wocould "read" The georss feeds? I know of one
Desktop GIS software that does (cadcorp sis, for example) and I
Understand there's a plugin for WordPress (blogging software) as well.
ESRI's arcweb Explorer will support georss, though I 've not gotten it
To work as of this writing. (to try it, just paste a georss URL
The search box.) So, I have CT support for georss will pop up in a lot
Of places.

The way forward
What do we, the geospatial user community, need to do to grow georss,
If we think it's valuable?

First, we need to get our act together. We (Whoever cares about this,
Which I hope readers do) need to make clear which format we are using
(W3C GEO, simple georss or pro georss) and ensure some level
Compatibility.

Second, we need to let vendors know we value tools, for both end users
And programmers, to write and read the georss.

Third, we need to get those with interesting geospatial data to publish
Them using georss. (cocould be free or cocould be for a second. This is simply
A standard way to publish .)

Finally, we can help educate others on what this very simple idea might
Mean if taken to its full potential. I hope I 've started readers on
That path with this short article.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.