All feeds lead to ROME
it’s a very funny slogan regarding ROME, a java based GeoRSS library. The GeoRSS Module for rome currently supports points in GeoRSS Simple format, W3CGeo and GeoRSS GML format.
you can get the sources from the links below:
georss-rome-0.9.5.jar (with source : georss-rome-src-0.9.5.jar)
rome-0.9.jar
jdom-1.0.jar (required by rome)
and some documents:
Javadoc : GeoRSS Rome Javadoc online or GeoRSS Rome Javadoc zip
Rome : rome.dev.java.net
GeoRSS.org : http://www.georss.org/
GeoRSS Consumer
SyndFeedInput input = new SyndFeedInput();
SyndFeed feed = input.build(new XmlReader(new URL( "http://www.geonames.org/recent-changes.xml")));
List entries = feed.getEntries(); for (SyndEntry entry : entries) {
GeoRSSModule geoRSSModule = GeoRSSUtils.getGeoRSS(entry);
System.out.println(entry.getTitle() + " : lat=" + geoRSSModule.getLatitude() + ",lng="
+ geoRSSModule.getLongitude() + ", desc=" + entry.getDescription().getValue() + ";
time=" + entry.getPublishedDate());
}
GeoRSS Producer
GeoRSSModule geoRSSModule = new W3CGeoModuleImpl(); //GeoRSSModule
geoRSSModule = new SimpleModuleImpl();
geoRSSModule.setLatitude(47.0);
geoRSSModule.setLongitude(9.0);
entry.getModules().add(geoRSSModule);
There is also an Example for a GeoRSS Servlet
Related posts:
About this entry
You’re currently reading “All feeds lead to ROME,” an entry on Geoinformatics
- Published:
- 1.9.07 / 10上午
- Tags:
- GeoRSS
Ajax ArcGIS Dreams Flex Geography Geoinformatics GeoRSS GIS Google Hardware Harvard History Jquery Linux Love Map MapServer NASA OGC OpenGIS OSGeo PHP Politics PostGIS PostgreSQL Python R Social Network SVG Ubuntu Web WebGIS Wordpress 中国 历史地理 宋朝 开源 新儒学 生活 遥感
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.














赵 博 (Bo Zhao),
参与或主持的项目
1 Comment
Jump to comment form | comments rss [?] | trackback uri [?]