org.h2gis.h2spatialext.function.spatial.distance
Class ST_LocateAlong

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

public class ST_LocateAlong
extends DeterministicScalarFunction

ST_LocateAlong returns a MULTIPOINT containing points along the line segments of the given geometry matching the specified segment length fraction and offset distance. A positive offset places the point to the left of the segment (with the ordering given by Coordinate traversal); a negative offset to the right. For areal elements, only exterior rings are supported.

Author:
Adam Gouge, 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_LocateAlong()
           
 
Method Summary
 String getJavaStaticMethod()
           
static com.vividsolutions.jts.geom.MultiPoint locateAlong(com.vividsolutions.jts.geom.Geometry geom, double segmentLengthFraction, double offsetDistance)
          Returns a MULTIPOINT containing points along the line segments of the given geometry matching the specified segment length fraction and offset distance.
 
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_LocateAlong

public ST_LocateAlong()
Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()

locateAlong

public static com.vividsolutions.jts.geom.MultiPoint locateAlong(com.vividsolutions.jts.geom.Geometry geom,
                                                                 double segmentLengthFraction,
                                                                 double offsetDistance)
Returns a MULTIPOINT containing points along the line segments of the given geometry matching the specified segment length fraction and offset distance.

Parameters:
geom - Geometry
segmentLengthFraction - Segment length fraction
offsetDistance - Offset distance
Returns:
A MULTIPOINT containing points along the line segments of the given geometry matching the specified segment length fraction and offset distance


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