/** * Converts to a LineString. * * @return LineString */ public LineString toLineString() { return new LineString(positions()); }
/** * Convert to a LinearRing. * * @return LinearRing */ public LinearRing toLinearRing() { return new LinearRing(positions()); }
/** * Converts to a MultiPoint. * * @return MultiPoint */ public MultiPoint toMultiPoint() { return new MultiPoint(positions()); }
/** * Returns the points composing this Geometry. * * @return {@code Iterable<Point>} a Guava lazy Iterable. */ public List<Point> points() { return positions().children().stream() .map(Point::new) .collect(Collectors.toList()); }
/** * Convert to a LinearRing. * * @return LinearRing */ public LinearRing toLinearRing() { return new LinearRing(positions()); }
/** * Returns the points composing this Geometry. * * @return {@code Iterable<Point>} a Guava lazy Iterable. */ public List<Point> points() { return positions().children().stream() .map(Point::new) .collect(Collectors.toList()); }
/** * Converts to a LineString. * * @return LineString */ public LineString toLineString() { return new LineString(positions()); }
/** * Converts to a MultiPoint. * * @return MultiPoint */ public MultiPoint toMultiPoint() { return new MultiPoint(positions()); }