org.h2gis.drivers.kml
Class ST_AsKml

java.lang.Object
  extended by org.h2gis.h2spatialapi.AbstractFunction
      extended by org.h2gis.h2spatialapi.DeterministicScalarFunction
          extended by org.h2gis.drivers.kml.ST_AsKml
All Implemented Interfaces:
Function, ScalarFunction

public class ST_AsKml
extends DeterministicScalarFunction

Convert a JTS geometry to a KML geometry representation.

Author:
Erwan Bocher

Field Summary
 
Fields inherited from interface org.h2gis.h2spatialapi.ScalarFunction
PROP_DETERMINISTIC, PROP_NOBUFFER
 
Fields inherited from interface org.h2gis.h2spatialapi.Function
PROP_NAME, PROP_REMARKS
 
Constructor Summary
ST_AsKml()
           
 
Method Summary
 String getJavaStaticMethod()
           
static String toKml(com.vividsolutions.jts.geom.Geometry geometry)
          Generate a KML geometry
static String toKml(com.vividsolutions.jts.geom.Geometry geometry, boolean extrude, int altitudeModeEnum)
          Generates a KML geometry.
 
Methods inherited from class org.h2gis.h2spatialapi.AbstractFunction
addProperty, getProperty, removeProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.h2gis.h2spatialapi.Function
getProperty
 

Constructor Detail

ST_AsKml

public ST_AsKml()
Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()

toKml

public static String toKml(com.vividsolutions.jts.geom.Geometry geometry)
                    throws SQLException
Generate a KML geometry

Parameters:
geometry -
Returns:
Throws:
SQLException

toKml

public static String toKml(com.vividsolutions.jts.geom.Geometry geometry,
                           boolean extrude,
                           int altitudeModeEnum)
                    throws SQLException
Generates a KML geometry. Specifies the extrude and altitudeMode. Available extrude values are true, false or none. Supported altitude mode : For KML profil CLAMPTOGROUND = 1; RELATIVETOGROUND = 2; ABSOLUTE = 4; For GX profil CLAMPTOSEAFLOOR = 8; RELATIVETOSEAFLOOR = 16; No altitude : NONE = 0;

Parameters:
geometry -
altitudeModeEnum -
extrude -
Returns:
Throws:
SQLException


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.