| Home | Trees | Indices | Help | 
 | 
|---|
|  | 
init(MultipleInvocations)
Create an instance of a Line geometry object.
init()
Default FMELine constructor.
Returns: FMELine
init(is3D)
Constructs a 3D line if 'is3D' is True, otherwise a 2D 
  line is created.
Parameters
is3D (bool) - The value to set the line's dimension.
    Returns: FMELine
init(points)
Creates a line consisting of the list of points passed in.
Parameters
points (list of tuple of float) - The list of points to 
      set to the line.    The points are represented as (x, y) or (x, y, z)
      tuples
    Returns: FMELine
init(line)
Create a copy of the passed in Line geometry object.
Parameters
line FMELine - The Line geometry object to create 
      a copy of.
    Returns: FMELine
| 
 | |||
| 
 | |||
| None | 
 | ||
| None | 
 | ||
| None | 
 | ||
| float | 
 | ||
| listoffloat | 
 | ||
| FMEPoint | 
 | ||
| listof FMEPoint | 
 | ||
| int | 
 | ||
| None | 
 | ||
| int | 
 | ||
| FMEPoint | 
 | ||
| None | 
 | ||
| None | 
 | ||
| None | 
 | ||
| None | 
 | ||
| Inherited from  Inherited from  Inherited from  | |||
| 
 | |||
| Inherited from  | |||
| 
 | |||
| 
 x.__init__(...) initializes x; see help(type(x)) for signature 
 | 
| 
 Appends 'line' to the end the existing line. If the existing line has 
  no coordinates it will have its geometry dimension set based on the first
  append call made. This line's points will be forced to have a consistent 
  dimension. If a 2D line is appended to a 3D line, the 2D line will be 
  changed to 3D with a Z value of 0.0. If a 3D line is appended to a 2D 
  line, the 2D line will be changed to 3D with 0.0 for all Z values. The 
  appended line will be forced to have consistent measures. Any unspecified
  measure values will be set to  
 | 
| 
 Appends 'point' to the end of the line. Lines with no coordinates will
  have their dimension set based on the first append call made. The line's 
  points will be forced to have a consistent dimension. If a 2D point is 
  appended to a 3D line, the point will be changed to 3D with a Z value of 
  0.0. If a 3D point is appended to a 2D line, the line will be changed to 
  3D with 0.0 for all Z values. The points will be forced to have 
  consistent measures. Any unspecified measure values will be set to 
   
 | 
| 
 Appends 'points' to the end of the line. Lines with no coordinates 
  will have their geometry dimension set based on the first append call 
  made. If this method is called on a 3D line, a Z value of 0.0 will be 
  used for each appended point. If this method is called on a 2D line, the 
  line will be forced to 3D with a default Z value of 0.0. Because this 
  method does not specify measure values, a value of  
 | 
| 
 Get the value of the default measure at the 'index'. If 'measureName' is supplied, this method gets the value of the named measure at 'index'. Returns an error if the measure doesn't exist or 'index' is out of range. 
 | 
| 
 Returns the value of the default measure, or the measure named by 'measureName'. 
 | 
| 
 Gets the point at the specified 'index'. An error is returned if the index is out of range. 
 | 
| 
 Gets the points of the line as a list of FMEPoint objects. An exception is raised if an error occurred getting a point from the line. 
 | 
| 
 Returns the index of the first coordinate defined within the tuple 'coord', or FME_NPOS32 if no such coordinate is found. 
 | 
| 
 Insert the point 'index'. All points from that index on will be 
  shifted to allow room for the new point. Any new measures added to the 
  point will be set a default of  
 | 
| 
 Returns the number of points which are stored. 
 | 
| 
 Remove the point at 'index'. Null is returned if the index is out of range. 
 | 
| 
 Resets the coordinates to an 'empty' state. It does not alter the 
  geometry dimension, but it does remove all measures. If 'coords' is 
  supplied, then this method sets the line's coordinates to the values in 
  the supplied 'coords' list.  
 | 
| 
 Set the default measure to the given values. Create the measure if it doesn't already exist. If 'measureName' is supplied, this method sets the given measure to 'measureValues', or creates the measure if it doesn't already exist. The size of measureValues must be exactly equal to the value returned by numPoints(). 
 | 
| 
 Set the default measure of the point at 'index' to the given 
  'measureValue'. If 'measureName' is supplied, this method sets the given 
  measure of the point at 'index' to 'measureValue'. Creates the measure if
  it doesn't already exist and set the measures to all points other than 
  the point at the given index to  
 | 
| 
 Sets 'point' at the specified index. The line's points will be forced 
  to have a consistent dimension. If any points are 3D, they all must be. A
  Z value of 0.0 is used when converting from a 2D point to a 3D point. The
  points will be forced to have consistent measures. Any unspecified 
  measure values will be set to  
 | 
| Home | Trees | Indices | Help | 
 | 
|---|
| Generated by Epydoc 3.0.1 on Thu Apr 20 06:21:00 2017 | http://epydoc.sourceforge.net |