org.osm2world.core.math
Class JTSConversionUtil

Object
  extended by 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
           
 
Constructor Summary
JTSConversionUtil()
           
 
Method Summary
static LineString lineSegmentXZToJTSLineString(LineSegmentXZ segment)
           
static Collection<PolygonWithHolesXZ> polygonsXZFromJTSGeometry(Geometry geometry)
           
static PolygonWithHolesXZ polygonXZFromJTSPolygon(Polygon polygon)
           
static Polygon polygonXZToJTSPolygon(SimplePolygonXZ polygon)
           
static VectorXYZ vectorXYZFromJTSCoordinate(Coordinate c)
           
static Coordinate vectorXYZToJTSCoordinate(VectorXYZ v)
           
static VectorXZ vectorXZFromJTSCoordinate(Coordinate c)
           
static Coordinate vectorXZToJTSCoordinate(VectorXZ v)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GF

public static final GeometryFactory GF
Constructor Detail

JTSConversionUtil

public JTSConversionUtil()
Method Detail

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)