Packageorg.openscales.core.geometry
Classpublic class MultiLineString
InheritanceMultiLineString Inheritance Collection Inheritance Geometry

A MultiLineString is a geometry with multiple LineString components.



Public Properties
 PropertyDefined by
 Inheritedarea : Number
Calculate the length of this geometry
Collection
 Inheritedbounds : Bounds
Geometry
 Inheritedcomponents : Array
Setter of the components (children) of this collection.
Collection
 InheritedcomponentsLength : int
Number of components in the collection
Collection
 InheritedcomponentsString : String
Get a string representing the components for this collection
Collection
 InheritedcomponentTypes : Array
Getter and setter of the authorized types for the components (children) of this collection
Collection
 Inheritedid : String
Geometry
 Inheritedlength : Number
Returns the geometry's length.
Geometry
 Inheritedparent : Geometry
Geometry
Protected Properties
 PropertyDefined by
 Inherited_bounds : Bounds = null
The bounds of this geometry
Geometry
Public Methods
 MethodDefined by
  
MultiLineString(components:Array = null)
MultiLineString
 Inherited
addComponent(component:Geometry, index:Number):Boolean
Add a new component (geometry) to the collection.
Collection
 Inherited
addComponents(components:Array):void
Add components to this geometry.
Collection
  
addLineString(lineString:LineString, index:Number):void
Component of the specified index, casted to the Polygon type
MultiLineString
 Inherited
atPoint(lonlat:LonLat, toleranceLon:Number, toleranceLat:Number):Boolean
Determines if the feature is placed at the given point with a certain tolerance (or not).
Geometry
 Inherited
Recalculate the bounds by iterating through the components and calling extendBounds() on each item.
Collection
 Inherited
clearBounds():void
Clear the geometry's bounds
Geometry
  
To get this geometry clone
MultiLineString
 Inherited
Component of the specified index, casted to the Geometry type
Collection
 Inherited
contains(geom:Geometry, assertIntersection:Boolean = false):Boolean
Determine if the input geometry is fully contained in this one.
Geometry
 Inherited
containsPoint(p:Point):Boolean
Test if a point is inside this geometry.
Collection
 Inherited
destroy():void
Destroy the collection.
Collection
 Inherited
distanceTo(geom:Geometry):Number
Calculate the closest distance between two geometries (on the x-y plane).
Geometry
 Inherited
extendBounds(newBounds:Bounds):void
Extends geometry's bounds If bounds are not defined yet, it initializes the bounds.
Geometry
 Inherited
TO get component clone
Collection
 Inherited
intersects(geom:Geometry):Boolean
Determine if the input geometry intersects this one.
Collection
 Inherited
isLeftOrRight(p:Point, p0:Point, p1:Point):Number
[static] Test if a point is at the left, at the right or on an infinite line.
Geometry
 Inherited
removeComponent(component:Geometry):void
Remove a component from this geometry.
Collection
 Inherited
removeComponents(components:Array):void
Remove components from this geometry.
Collection
  
removeLineString(lineString:LineString):void
MultiLineString
 Inherited
replaceComponent(index:int, component:Geometry):Boolean
replace the component of specified index by the input geometry.
Collection
 Inherited
segmentsIntersect(seg1:Array, seg2:Array, tolerance:Number = 0.0):Boolean
[static] Determine whether two line segments intersect or not.
Geometry
  
toShortString():String
MultiLineString
 Inherited
toVertices():Array
Return an array of all the vertices (Point) of this geometry
Collection
  
transform(source:ProjProjection, dest:ProjProjection):void
Method to convert the multilinestring (x/y) from a projection system to an other.
MultiLineString
Constructor detail
MultiLineString()constructor
public function MultiLineString(components:Array = null)Parameters
components:Array (default = null)
Method detail
addLineString()method
public function addLineString(lineString:LineString, index:Number):void

Component of the specified index, casted to the Polygon type

Parameters
lineString:LineString
 
index:Number
clone()method 
public override function clone():Geometry

To get this geometry clone

Returns
Geometry
removeLineString()method 
public function removeLineString(lineString:LineString):voidParameters
lineString:LineString
toShortString()method 
public override function toShortString():String

Returns
String
transform()method 
public override function transform(source:ProjProjection, dest:ProjProjection):void

Method to convert the multilinestring (x/y) from a projection system to an other.

Parameters
source:ProjProjection — The source projection
 
dest:ProjProjection — The destination projection