@Override public com.vividsolutions.jts.geom.Point fromGeometry(Point src) { return this.geometryFactory.createPoint(new Coordinate(src.lon(), src.lat())); }
@Override public com.vividsolutions.jts.geom.Point fromGeometry(Point src) { return this.geometryFactory.createPoint(new Coordinate(src.lon(), src.lat())); }
protected static com.vividsolutions.jts.geom.Point toJtsPoint(Point src) { return new GeometryFactory().createPoint(new Coordinate(src.lon(), src.lat())); }
protected static com.vividsolutions.jts.geom.Point toJtsPoint(Point src) { return new GeometryFactory().createPoint(new Coordinate(src.lon(), src.lat())); }
/** * Returns a new Point instance with the given z-axis value. * * @param alt The new latitude value. * @return A Point instance with this instance longitude and the given latitude. */ public Point withAlt(double alt) { return from(lon(), lat(), alt); }
/** * 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 z-axis value. * * @param alt The new latitude value. * @return A Point instance with this instance longitude and the given latitude. */ public Point withAlt(double alt) { 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) ); } }
@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()); }
private void fetchPoints() { for (LineString lineString : this.getLineStrings()) { for (Point point : lineString.points()) { points.add(new DPoint(point.lat(), point.lon())); } } }
DPoint dgp = projection.translateLatLonToGrid(point.lat(), point.lon()); IPoint igp=new IPoint(dgp); DPoint p =projection.translateGridToView(igp, pane.getWidth(),pane.getHeight());