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

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

public class ST_LineIntersector
extends DeterministicScalarFunction

LineIntersector is used to split an input geometry (LineString or MultiLineString) by a set of geometries.

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_LineIntersector()
           
 
Method Summary
static void addGeometryToSegments(com.vividsolutions.jts.geom.Geometry geometry, int flag, ArrayList<com.vividsolutions.jts.noding.SegmentString> segments)
          Convert the a geometry as a list of segments and mark it with a flag
 String getJavaStaticMethod()
           
static ArrayList<com.vividsolutions.jts.noding.SegmentString> getSegments(com.vividsolutions.jts.geom.Geometry inputLines, com.vividsolutions.jts.geom.Geometry clipper)
          Convert the input geometries as a list of segments and mark them with a flag to identify input and output geometries.
static com.vividsolutions.jts.geom.Geometry lineIntersector(com.vividsolutions.jts.geom.Geometry inputLines, com.vividsolutions.jts.geom.Geometry clipper)
          Split a lineal geometry by a another 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_LineIntersector

public ST_LineIntersector()
Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()

lineIntersector

public static com.vividsolutions.jts.geom.Geometry lineIntersector(com.vividsolutions.jts.geom.Geometry inputLines,
                                                                   com.vividsolutions.jts.geom.Geometry clipper)
                                                            throws IllegalArgumentException
Split a lineal geometry by a another geometry

Parameters:
inputLines -
clipper -
Returns:
Throws:
IllegalArgumentException

getSegments

public static ArrayList<com.vividsolutions.jts.noding.SegmentString> getSegments(com.vividsolutions.jts.geom.Geometry inputLines,
                                                                                 com.vividsolutions.jts.geom.Geometry clipper)
Convert the input geometries as a list of segments and mark them with a flag to identify input and output geometries.

Parameters:
inputLines -
clipper -
Returns:

addGeometryToSegments

public static void addGeometryToSegments(com.vividsolutions.jts.geom.Geometry geometry,
                                         int flag,
                                         ArrayList<com.vividsolutions.jts.noding.SegmentString> segments)
Convert the a geometry as a list of segments and mark it with a flag

Parameters:
geometry -
flag -
segments -


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