/*
   * (non-Javadoc)
   *
   * @see com.sun.syndication.io.ModuleParser#parse(org.jdom.Element)
   */
  public Module parse(Element element) {
    GeoRSSModule geoRSSModule = null;
    new SimpleModuleImpl();

    Element pointElement = element.getChild("point", GeoRSSModule.SIMPLE_NS);
    Element lineElement = element.getChild("line", GeoRSSModule.SIMPLE_NS);
    Element polygonElement = element.getChild("polygon", GeoRSSModule.SIMPLE_NS);
    Element boxElement = element.getChild("box", GeoRSSModule.SIMPLE_NS);
    if (pointElement != null) {
      geoRSSModule = new SimpleModuleImpl();
      String coordinates = pointElement.getText();
      String[] coord = coordinates.trim().split(" ");
      Position pos = new Position(Double.parseDouble(coord[1]), Double.parseDouble(coord[0]));
      geoRSSModule.setGeometry(new Point(pos));
    } else if (lineElement != null) {
      geoRSSModule = new SimpleModuleImpl();
      PositionList posList = parsePosList(lineElement);
      geoRSSModule.setGeometry(new LineString(posList));
    } else if (polygonElement != null) {
      geoRSSModule = new SimpleModuleImpl();
      PositionList posList = parsePosList(polygonElement);
      Polygon poly = new Polygon();
      poly.setExterior(new LinearRing(posList));
      geoRSSModule.setGeometry(poly);
    } else {
      geoRSSModule = (GeoRSSModule) GMLParser.parseGML(element);
    }

    return geoRSSModule;
  }