static private Coordinate[] convertLineStringToPoints(Iterable<Point> points) { ArrayList<Coordinate> coords = new ArrayList<>(2); for (Point point : points) { coords.add(new Coordinate(point.getX(), point.getY(), point.getZ())); } return coords.toArray(new Coordinate[coords.size()]); }
static private Coordinate[] convertLineStringToPoints(Iterable<Point> points) { ArrayList<Coordinate> coords = new ArrayList<>(2); for (Point point : points) { coords.add(new Coordinate(point.getX(), point.getY(), point.getZ())); } return coords.toArray(new Coordinate[coords.size()]); }
Point point = (Point) geospatial; com.vividsolutions.jts.geom.Point result = GeometryUtils.GEOMETRY_FACTORY.createPoint(new Coordinate(point.getX(), point.getY(), point.getZ())); return result; } else if (geospatial instanceof LineString) {
Point point = (Point) geospatial; com.vividsolutions.jts.geom.Point result = GeometryUtils.GEOMETRY_FACTORY.createPoint(new Coordinate(point.getX(), point.getY(), point.getZ())); return result; } else if (geospatial instanceof LineString) {