com.supermap.web.core.geometry
public class Route
继承 Route Inheritance GeoLine Inheritance Geometry Inheritance flash.events.EventDispatcher

路由对象.

路由对象为一系列有序的带有属性值 M 的 x,y 坐标对,其中 M 值为该结点的距离属性(到已知点的距离)。路由数据模型实际就是带 M 值的线性数据模型。交通部门一般用线性参考系来确定沿线道路、河流和管线等运输路径的事件(如事故、限速)和设施(如桥梁、交叉口)。线性参照系从已知点(如路径的起点、里程碑标记或道路交叉口)用距离测量来确定事件的位置。最常见的路由数据模型的例子就是高速公路上的里程碑,交通管制部门经常使用高速公路上的里程碑来标注并管理高速公路的路况、车辆的行驶限速和高速事故点等。基于路由数据模型,可以利用动态分段功能进行动态事件定位,即根据指定条件来定位点事件(如事故点、桥梁等)或者线事件(如限速路段、路况等)。

默认 MXML 属性parts



公共属性
  属性 定义方
  Inherited bounds : Rectangle2D
[Override] [read-only] 获取地理坐标系下几何对象的范围,也就是几何对象的最小外接矩形。GeoPoint 的最小外接矩形就是其本身,即 Rectangle2D(x, y, x, y)。
GeoLine
  Inherited center : Point2D
[Override] [read-only]
GeoLine
  Inherited defaultStyle : Style
[Override] [read-only] 获取指定对象的默认样式。
GeoLine
    length : Number
[read-only] 路由对象的长度,单位与数据集的单位相同。
Route
    maxM : Number
[read-only] 最大线性度量值,即所有结点到起始点的量算距离中最大值。
Route
    minM : Number
[read-only] 最小线性度量值,即所有结点到起始点的量算距离中最大值。
Route
  Inherited partCount : int
[read-only] 获取几何线对象中的子对象个数。
GeoLine
  Inherited parts : Array
组成几何线对象的子对象集合.
GeoLine
  Inherited SRID : int
投影坐标参数。通过该参数,服务器判断Geometry对象的坐标参考系是否与数据集相同,如果不同,则在数据入库前进行投影变换。(SuperMap iServer 7.0及以上版本支持)
Geometry
    type : String
[Override] 获取或设置几何对象类型。对应于 Geometry 类中的常量。
Route
受保护的属性
  属性 定义方
  Inherited _center : Point2D
Geometry
公共方法
  方法 定义方
   
初始化 Route 类的新实例。
Route
  Inherited
addPart(pts:Array):int
向线对象追加一个子对象。
GeoLine
  Inherited
[Override] 克隆几何对象.
GeoLine
  Inherited
deletePoint(partIndex:int, pointIndex:int):void
删除子对象中指定位置上的点。
GeoLine
  Inherited
equals(geometry:Geometry):Boolean
[Override] 判断指定的几何对象是否与当前几何对象具有相同坐标值。
GeoLine
  Inherited
getPart(index:int):Array
从线对象中获取指定索引值的子对象。
GeoLine
  Inherited
indexOf(pts:Array):int
获取指定子对象在线对象中的索引位置。
GeoLine
  Inherited
insertPart(index:int, pts:Array):Boolean
向线对象中的指定位置插入一个子对象。
GeoLine
  Inherited
insertPoint(partIndex:int, pointIndex:int, point:Point2D):void
向子对象的指定位置插入一个点。
GeoLine
  Inherited
removePart(index:int):Boolean
根据指定的索引值删除线对象中的子对象。
GeoLine
  Inherited
setPart(index:int, pts:Array):Boolean
用新的子对象替换线对象中指定的子对象。
GeoLine
  Inherited
setPoint(partIndex:int, pointIndex:int, point:Point2D):void
替换子对象中指定位置上的点。
GeoLine
受保护的方法
  方法 定义方
  Inherited
geometryChangeHandler(event:Event):void
Geometry
事件
  事件 Summary 定义方
  Inherited 当线对象的几何属性发生改变时解发该事件。如:删除线结点、增加线结点。 GeoLine
公共常量
  常量 定义方
  Inherited GEOLINE : String = SmGeoLine
[static] 定义常量 GEOLINE 的 type 属性值,表示几何对象类型——线。
Geometry
  Inherited GEOMETRY_CHANGE : String = geometryChange
[static] 定义常量 GEOMETRY_CHANGE 的 type 属性值。
Geometry
  Inherited GEOPOINT : String = SmGeoPoint
[static] 定义常量 GEOPOINT 的 type 属性值,表示几何对象类型——点。
Geometry
  Inherited GEOREGION : String = SmGeoRegion
[static] 定义常量 GEOREGION 的 type 属性值,表示几何对象类型——面。
Geometry
属性详细信息
length 属性
length:Number  [read-only]

路由对象的长度,单位与数据集的单位相同。


Implementation
    public function get length():Number
maxM 属性  
maxM:Number  [read-only]

最大线性度量值,即所有结点到起始点的量算距离中最大值。


Implementation
    public function get maxM():Number
minM 属性  
minM:Number  [read-only]

最小线性度量值,即所有结点到起始点的量算距离中最大值。


Implementation
    public function get minM():Number
type 属性  
type:String[Override]

获取或设置几何对象类型。对应于 Geometry 类中的常量。


Implementation
    public function get type():String
    public function set type(value:String):void

另请参见

构造函数详细信息
Route () 构造函数
public function Route()

初始化 Route 类的新实例。