Search in sources :

Example 1 with Coordinates

use of org.apache.abdera.ext.geo.Coordinates in project ddf by codice.

the class LineString method getLineStringCoordinates.

protected Coordinates getLineStringCoordinates(Geometry geometry) {
    Coordinates coordinates = new Coordinates();
    for (int i = 0; i < geometry.getCoordinates().length; i++) {
        Coordinate coordinate = geometry.getCoordinates()[i];
        coordinates.add(convert(coordinate));
    }
    return coordinates;
}
Also used : Coordinate(com.vividsolutions.jts.geom.Coordinate) Coordinates(org.apache.abdera.ext.geo.Coordinates)

Aggregations

Coordinate (com.vividsolutions.jts.geom.Coordinate)1 Coordinates (org.apache.abdera.ext.geo.Coordinates)1