fmeobjects.FMESegment.snip¶
-
FMESegment.
snip
(measureType, measure3D, startLocation, endLocation)¶ Take a description of start and end positions (either as a measured 2D/3D distance, percentage, or normalized distance from the beginning, or a vertex index), and chop off only the portion between these positions. If the start and end positions are the same, keep two same points.
Parameters: - measureType (int) – The measure type to use. Must be on of:
SNIP_DISTANCE
,SNIP_PERCENTAGE
,SNIP_VERTEX
orSNIP_POINT
. - measure3D (bool) – Whether to measure the 2D or 3D distance.
- startLocation (float) – The start location.
- endLocation (float) – The end location.
Return type: Raises: FMEException – An exception is raised if an error occurred.
- measureType (int) – The measure type to use. Must be on of: