com.supermap.data
类 GeoCompoundCurve
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.Geometry
-
- com.supermap.data.GeoCompoundCurve
-
- 所有已实现的接口:
- IDisposable
public class GeoCompoundCurve extends Geometry
参数化线几何对象类,派生于Geometry
类。该类用于描述参数化线地理实体,组成部分可包含:折线(GeoLine)、圆弧(GeoArc)、圆(GeoCircle)、椭圆弧(GeoEllipticArc)、椭圆(GeoEllipse)、贝塞尔曲线(GeoBezier3Curve),并且上一部分的终止坐标与下一部分的起始坐标重合。
为防止三方数据中的参数化对象,迁移到SuperMap数据源后,参数化部分由于拟合导致的精度问题,设计此类来描述参数化线对象。
-
-
构造器概要
构造器 构造器和说明 GeoCompoundCurve()
构造一个新的 GeoCompoundCurve 参数化线对象。GeoCompoundCurve(GeoCompoundCurve geoParametricLine)
根据指定的 GeoCompoundCurve 对象构造一个与其完全相同的新对象。
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 boolean
addCurve(Geometry geometry)
添加一个参数化部分,添加的对象必须要保证和上一个对象首尾相接,否则返回失败GeoCompoundCurve
clone()
克隆一个Geometry对象。GeoLine
convertToLine()
GeoCompoundCurve对象转换成线对象void
dispose()
释放该对象所占用的资源。Geometry
getCurve(int index)
获取指定索引的参数化部分。int
getCurveCount()
获取包含的对象数目。double
getLength()
返回线对象的长度,单位与数据集的单位相同。boolean
isEmpty()
返回是否为空。void
setEmpty()
清空几何对象。-
从类继承的方法 com.supermap.data.Geometry
addCustomGeometryCreatedListener, fromXML, getBounds, getID, getInnerPoint, getStyle, getType, getVariantID, hitTest, mirror, offset, removeCustomGeometryCreatedListener, resize, rotate, setBounds, setID, setStyle, toXML
-
-
-
-
构造器详细资料
-
GeoCompoundCurve
public GeoCompoundCurve()
构造一个新的 GeoCompoundCurve 参数化线对象。
-
GeoCompoundCurve
public GeoCompoundCurve(GeoCompoundCurve geoParametricLine)
根据指定的 GeoCompoundCurve 对象构造一个与其完全相同的新对象。- 参数:
geoParametricLine
- 指定的 GeoCompoundCurve 参数化线对象。
-
-
方法详细资料
-
getLength
public double getLength()
返回线对象的长度,单位与数据集的单位相同。- 返回:
- 参数化线几何对象的长度。
- 默认值:
- 默认值为 0.0。
-
addCurve
public boolean addCurve(Geometry geometry)
添加一个参数化部分,添加的对象必须要保证和上一个对象首尾相接,否则返回失败- 参数:
geometry
- 参数化部分。- 返回:
- 如果添加成功则返回 true;否则返回 false。
- 默认值:
- 默认值为 true。
-
getCurveCount
public int getCurveCount()
获取包含的对象数目。- 返回:
- 线几何子对象的数量。
- 默认值:
- 默认值为 0。
-
getCurve
public Geometry getCurve(int index)
获取指定索引的参数化部分。- 参数:
index
- 指定的子对象的序号。- 返回:
- 参数化部分。
- 默认值:
- 默认值为 0。
-
clone
public GeoCompoundCurve clone()
从类复制的说明:Geometry
克隆一个Geometry对象。
-
dispose
public void dispose()
从类复制的说明:Geometry
释放该对象所占用的资源。当调用该方法之后,此对象不再可用。- 指定者:
dispose
在接口中IDisposable
- 指定者:
dispose
在类中Geometry
-
isEmpty
public boolean isEmpty()
返回是否为空。- 覆盖:
isEmpty
在类中Geometry
- 返回:
- 如果当前对象为空则返回 true;否则返回 false。
- 另请参阅:
Geometry.offset(double, double)
- 默认值:
- 默认值为 true。
-
convertToLine
public GeoLine convertToLine()
GeoCompoundCurve对象转换成线对象- 返回:
- GeoLine 成功则返回线对象 ,否则就返回null;
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.