doc.setDocGeo(gp);
}
if (null != geoRSSModule.getGeometry())
{
AbstractGeometry ag = geoRSSModule.getGeometry();
if(ag.getClass().equals(new LineString().getClass()))
{ //<georss:line>
LineString ls = ((LineString)geoRSSModule.getGeometry());
double latAvg = 0.0;
double lonAvg = 0.0;
int length = ls.getPositionList().size();
for (int i = 0; i < length; i ++)
{
latAvg += ls.getPositionList().getLatitude(i);
lonAvg += ls.getPositionList().getLongitude(i);
}
latAvg = latAvg/length;
lonAvg = lonAvg/length;
GeoPojo gp = new GeoPojo();
gp.lat = latAvg;