Adding GeoRSS functionality
---------------------------

                 Key: OFBIZ-1208
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1208
             Project: OFBiz
          Issue Type: New Feature
          Components: content
    Affects Versions: SVN trunk
            Reporter: Al Byers
            Priority: Minor


I did some work to add a GeoRSS interface to OFBiz, but there is no clean place 
to put an example right now, so I am starting this issue to document the work 
that I did. GeoRSS is a standard that will let you point-of-interest markers in 
Google, Yahoo or Microsoft maps (see 
http://docs.codehaus.org/display/GEOSDOC/GeoRSS)

I basically just took Andrew Z's generateBlogRssFeed service and add:

                       GeoRSSModule geoRSSModule = new W3CGeoModuleImpl();
                       Double lon = v.getDouble("longitude");
                       Double lat = v.getDouble("latitude");
                       //GeoRSSModule geoRSSModule = new SimpleModuleImpl();
                       if (lon != null && lat != null) {
                                       Position pos = new Position( 
lat.doubleValue(), lon.doubleValue());
                           geoRSSModule.setPosition(pos);
                           entry.getModules().add(geoRSSModule);
                               Debug.logInfo("generateEntryList(2) entry:" + 
entry, module);
                           entries.add(entry);
                       }

in the generateEntryList

The "v" object comes from an app specific entity, so there is no place to put 
an example in OFBiz right now. I imagine that one will occur to me.

The other thing to do is include the GeoRSSModule and related code from the 
http://georss.geonames.org/ site.
When I downloaded the georss-rome-0.9.8.jar file, the modules were not found. I 
ended up downloading the source jar and building it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to