ch.interlis.iox_j.jts
Class Jts2iox

java.lang.Object
  extended by ch.interlis.iox_j.jts.Jts2iox

public class Jts2iox
extends java.lang.Object

Utility to convert from JTS to INTERLIS IOM geometry types.

Author:
ceis

Method Summary
static IomObject hexwkb2coord(java.lang.String value)
          Converts from a hex WKB to an INTERLIS COORD.
static IomObject hexwkb2polyline(java.lang.String value)
          Converts from a hex WKB to an INTERLIS POLYLINE.
static IomObject hexwkb2surface(java.lang.String value)
          Converts from a hex WKB to an INTERLIS SURFACE.
static IomObject JTS2coord(com.vividsolutions.jts.geom.Coordinate value)
          Converts from a Coordinate to a INTERLIS COORD.
static IomObject JTS2polyline(com.vividsolutions.jts.geom.LineString value)
          Converts from a LineString to a INTERLIS POLYLINE.
static IomObject JTS2surface(com.vividsolutions.jts.geom.Polygon value)
          Converts from a Polygon to a INTERLIS SURFACE.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hexwkb2coord

public static IomObject hexwkb2coord(java.lang.String value)
                              throws Iox2jtsException
Converts from a hex WKB to an INTERLIS COORD.

Parameters:
value - hex encoded OGC WKB
Returns:
COORD structure
Throws:
Iox2jtsException

hexwkb2polyline

public static IomObject hexwkb2polyline(java.lang.String value)
                                 throws Iox2jtsException
Converts from a hex WKB to an INTERLIS POLYLINE.

Parameters:
value - hex encoded OGC WKB
Returns:
POLYLINE structure
Throws:
Iox2jtsException

hexwkb2surface

public static IomObject hexwkb2surface(java.lang.String value)
                                throws Iox2jtsException
Converts from a hex WKB to an INTERLIS SURFACE.

Parameters:
value - hex encoded OGC WKB
Returns:
SURFACE structure
Throws:
Iox2jtsException

JTS2coord

public static IomObject JTS2coord(com.vividsolutions.jts.geom.Coordinate value)
Converts from a Coordinate to a INTERLIS COORD.

Parameters:
value - JTS Coordinate.
Returns:
INTERLIS COORD structure

JTS2polyline

public static IomObject JTS2polyline(com.vividsolutions.jts.geom.LineString value)
Converts from a LineString to a INTERLIS POLYLINE.

Parameters:
value - JTS LineString
Returns:
INTERLIS POLYLINE structure

JTS2surface

public static IomObject JTS2surface(com.vividsolutions.jts.geom.Polygon value)
Converts from a Polygon to a INTERLIS SURFACE.

Parameters:
value - JTS Polygon
Returns:
INTERLIS SURFACE structure