Package org.apache.abdera.ext.geo

Examples of org.apache.abdera.ext.geo.Point


   
    Abdera abdera = new Abdera();
    Entry entry = abdera.newEntry();
    entry.setTitle("Middle of the Ocean");
   
    Point point = new Point(new Coordinate(37.0625,-95.677068));
    GeoHelper.addPosition(entry, point);
   
    Position[] positions = GeoHelper.getPositions(entry);
    for (Position pos : positions) {
      if (pos instanceof Point) {
        Point p = (Point) pos;
        System.out.println(p.getCoordinate());
      }
    }
   
    // By default, positions are encoded using the simple georss encoding,
    // W3C and GML encodings are also supported
View Full Code Here


        Abdera abdera = new Abdera();
        Entry entry = abdera.newEntry();
        entry.setTitle("Middle of the Ocean");

        Point point = new Point(new Coordinate(37.0625, -95.677068));
        GeoHelper.addPosition(entry, point);

        Position[] positions = GeoHelper.getPositions(entry);
        for (Position pos : positions) {
            if (pos instanceof Point) {
                Point p = (Point)pos;
                System.out.println(p.getCoordinate());
            }
        }

        // By default, positions are encoded using the simple georss encoding,
        // W3C and GML encodings are also supported
View Full Code Here

TOP

Related Classes of org.apache.abdera.ext.geo.Point

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.