org.h2gis.h2spatialext.function.spatial.processing
Class ST_OffSetCurve

java.lang.Object
  extended by org.h2gis.h2spatialapi.AbstractFunction
      extended by org.h2gis.h2spatialapi.DeterministicScalarFunction
          extended by org.h2gis.h2spatialext.function.spatial.processing.ST_OffSetCurve
All Implemented Interfaces:
Function, ScalarFunction

public class ST_OffSetCurve
extends DeterministicScalarFunction

Return an offset line at a given distance and side from an input geometry.

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_OffSetCurve()
           
 
Method Summary
static com.vividsolutions.jts.geom.Geometry computeOffsetCurve(com.vividsolutions.jts.geom.Geometry geometry, double offset, com.vividsolutions.jts.operation.buffer.BufferParameters bufferParameters)
          Method to compute the offset line
static void geometryOffSetCurve(ArrayList<com.vividsolutions.jts.geom.LineString> list, com.vividsolutions.jts.geom.Geometry geometry, double offset, com.vividsolutions.jts.operation.buffer.BufferParameters bufferParameters)
          Compute the offset curve for a polygon, a point or a collection of geometries
 String getJavaStaticMethod()
           
static void lineStringOffSetCurve(ArrayList<com.vividsolutions.jts.geom.LineString> list, com.vividsolutions.jts.geom.LineString lineString, double offset, com.vividsolutions.jts.operation.buffer.BufferParameters bufferParameters)
          Compute the offset curve for a linestring
static com.vividsolutions.jts.geom.Geometry offsetCurve(com.vividsolutions.jts.geom.Geometry geometry, double offset)
          Return an offset line at a given distance and side from an input geometry without buffer parameters
static com.vividsolutions.jts.geom.Geometry offsetCurve(com.vividsolutions.jts.geom.Geometry geometry, double offset, String parameters)
          Return an offset line at a given distance and side from an input 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_OffSetCurve

public ST_OffSetCurve()
Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()

offsetCurve

public static com.vividsolutions.jts.geom.Geometry offsetCurve(com.vividsolutions.jts.geom.Geometry geometry,
                                                               double offset,
                                                               String parameters)
Return an offset line at a given distance and side from an input geometry

Parameters:
geometry - the geometry
offset - the distance
parameters - the buffer parameters
Returns:

offsetCurve

public static com.vividsolutions.jts.geom.Geometry offsetCurve(com.vividsolutions.jts.geom.Geometry geometry,
                                                               double offset)
Return an offset line at a given distance and side from an input geometry without buffer parameters

Parameters:
geometry - the geometry
offset - the distance
Returns:

computeOffsetCurve

public static com.vividsolutions.jts.geom.Geometry computeOffsetCurve(com.vividsolutions.jts.geom.Geometry geometry,
                                                                      double offset,
                                                                      com.vividsolutions.jts.operation.buffer.BufferParameters bufferParameters)
Method to compute the offset line

Parameters:
geometry -
offset -
bufferParameters -
Returns:

lineStringOffSetCurve

public static void lineStringOffSetCurve(ArrayList<com.vividsolutions.jts.geom.LineString> list,
                                         com.vividsolutions.jts.geom.LineString lineString,
                                         double offset,
                                         com.vividsolutions.jts.operation.buffer.BufferParameters bufferParameters)
Compute the offset curve for a linestring

Parameters:
list -
lineString -
offset -
bufferParameters -

geometryOffSetCurve

public static void geometryOffSetCurve(ArrayList<com.vividsolutions.jts.geom.LineString> list,
                                       com.vividsolutions.jts.geom.Geometry geometry,
                                       double offset,
                                       com.vividsolutions.jts.operation.buffer.BufferParameters bufferParameters)
Compute the offset curve for a polygon, a point or a collection of geometries

Parameters:
list -
geometry -
offset -
bufferParameters -


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