fmeobjects.FMEGeometryTools.snipByPoints

FMEGeometryTools.snipByPoints(curve, startPoint, endPoint)

Take a curve and snip off the portion between two points. If these points are not on this line, replaced with nearest points which are exactly on the line. If the start and end point are the same, keep two same points.

Parameters:
  • curve (FMECurve) – The curve to be snipped.

  • startPoint (FMEPoint) – The start point.

  • endPoint (FMEPoint) – The end point.

Return type:

FMECurve

Raises:

FMEException – An exception is raised if an error occurred.