1 package de.dlr.shepard.data.spatialdata.model;
2
3 import org.locationtech.jts.geom.Coordinate;
4 import org.locationtech.jts.geom.Geometry;
5 import org.locationtech.jts.geom.GeometryFactory;
6
7 public final class GeometryBuilder {
8
9
10 public static GeometryFactory factory = new GeometryFactory();
11
12 public static Geometry fromCoordinate(Coordinate coordinate) {
13 return factory.createPoint(coordinate);
14 }
15
16 public static Geometry fromXYZ(double x, double y, double z) {
17 return fromCoordinate(new Coordinate(x, y, z));
18 }
19 }