org.osm2world.core.math
Class JTSConversionUtil
Object
JTSConversionUtil
public class JTSConversionUtil
- extends Object
converts between own and JTS geometry representations.
When handling three-dimensional coordinates, the y and z information will
be swapped when converting from or to JTS. JTS uses x and y as 2D
plane, z as elevation info.
Field Summary |
static GeometryFactory |
GF
|
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GF
public static final GeometryFactory GF
JTSConversionUtil
public JTSConversionUtil()
vectorXZToJTSCoordinate
public static final Coordinate vectorXZToJTSCoordinate(VectorXZ v)
vectorXYZToJTSCoordinate
public static final Coordinate vectorXYZToJTSCoordinate(VectorXYZ v)
vectorXZFromJTSCoordinate
public static final VectorXZ vectorXZFromJTSCoordinate(Coordinate c)
vectorXYZFromJTSCoordinate
public static final VectorXYZ vectorXYZFromJTSCoordinate(Coordinate c)
lineSegmentXZToJTSLineString
public static LineString lineSegmentXZToJTSLineString(LineSegmentXZ segment)
polygonXZToJTSPolygon
public static final Polygon polygonXZToJTSPolygon(SimplePolygonXZ polygon)
polygonXZFromJTSPolygon
public static final PolygonWithHolesXZ polygonXZFromJTSPolygon(Polygon polygon)
polygonsXZFromJTSGeometry
public static final Collection<PolygonWithHolesXZ> polygonsXZFromJTSGeometry(Geometry geometry)