/** * Returns a new Point instance with the given x-axis value. * * @param lat The new latitude value. * @return A Point instance with this instance longitude and the given latitude. */ public Point withLat(double lat) { return from(lon(), lat, alt()); }
@Override public com.vividsolutions.jts.geom.MultiPoint fromGeometry(MultiPoint src) { return this.geometryFactory.createMultiPoint( src.points().stream() .map(p -> new Coordinate(p.lon(), p.lat(), p.alt())) .toArray(Coordinate[]::new) ); } }
/** * Returns a new Point instance with the given x-axis value. * * @param lat The new latitude value. * @return A Point instance with this instance longitude and the given latitude. */ public Point withLat(double lat) { return from(lon(), lat, alt()); }
/** * Returns a new Point instance with the given x-axis value. * * @param lon The new longitude value. * @return A Point instance with this instance latitude and the given longitude */ public Point withLon(double lon) { return from(lon, lat(), alt()); }
/** * Returns a new Point instance with the given x-axis value. * * @param lon The new longitude value. * @return A Point instance with this instance latitude and the given longitude */ public Point withLon(double lon) { return from(lon, lat(), alt()); }
@Override public com.vividsolutions.jts.geom.MultiPoint fromGeometry(MultiPoint src) { return this.geometryFactory.createMultiPoint( src.points().stream() .map(p -> new Coordinate(p.lon(), p.lat(), p.alt())) .toArray(Coordinate[]::new) ); } }