com.supermap.mapping

类 ChartObjectInfo

  • java.lang.Object
    • com.supermap.data.InternalHandle
      • com.supermap.mapping.ChartObjectInfo


  • public class ChartObjectInfo
    extends com.supermap.data.InternalHandle
    海图物标信息类。

    通过该类可以返回海图物标信息,包括物标的简称、完整名称、编码、本地化名称以及相关信息。

    • 方法详细资料

      • getLongName

        public String getLongName()
        返回物标对象的 17 个字符的长名,物标全球唯一标识。
        返回:
        物标对象的长名。
      • getFeatureID

        public long getFeatureID()
        返回物标对象的 RCID,物标在一幅海图内的唯一标识。
        返回:
        物标对象的 RCID。
      • getAcronym

        public String getAcronym()
        返回物标六个字符简称。
        返回:
        物标简称。
      • getName

        public String getName()
        返回物标的名称。
        返回:
        物标名称。
      • getLocalName

        public String getLocalName()
        返回物标本地化名称。
        返回:
        物标本地化名称。
      • getCode

        public int getCode()
        返回物标的编码,OBJL 字段值。
        返回:
        物标编码。
      • getAgencyToken

        public String getAgencyToken()
        返回机构简称。
        返回:
        机构简称。
      • getGeometryType

        public GeometryType getGeometryType()
        返回几何对象类型。
        返回:
        几何对象类型。
      • getS57FeatureTypeName

        public String getS57FeatureTypeName()
        返回物标的类型。
        返回:
        物标类型。
      • getRecordsetID

        public int getRecordsetID()
        获取物标对象的记录集 ID。
        返回:
        记录集 ID。
      • getDepth

        public double getDepth()
        返回水深值。单位为米。
        返回:
        水深值。
        默认值:
        默认值为 Double.MIN_VALUE。
      • setDepth

        public void setDepth(double depth)
        设置水深值。单位为米。
        参数:
        value - 水深值。
      • getMasterLongName

        public String getMasterLongName()
        返回物标的主物标的 17 个字符长名。
        返回:
        主物标长名。
      • getCollectionLongName

        public String getCollectionLongName()
        返回物标所属集合物标的 17 个字符长名。
        返回:
        所属集合物标长名。
      • getS57Attributes

        public ChartAttributeInfo[] getS57Attributes()
        返回S-57标准中定义的属性值,以及部分属性基本信息。
        返回:
        S-57 标准中定义的属性值,以及部分属性基本信息。
      • setS57AttributeValue

        public boolean setS57AttributeValue(String acronym,
                                            Object value)
        设置 S57 标准中的属性值。

        设置属性字段时,海图属性类型(请参见 AttributeTypeChart)与输入值类型、值格式的对应关系如下:

        1. 属性字段类型为 AttributeTypeChart.LIST 时,输入值类型为 String,值格式为 ID1+":"Meaning1;ID2+":"Meaning2;...;IDn+":"Meaningn。
        2. 属性字段类型为 AttributeTypeChart.ENUMERATED 时,输入值类型为 String,值格式为 ID+":"Meaning。
        3. 属性字段类型为 AttributeTypeChart.INTEGER 时,输入值类型为 Int32
        4. 属性字段类型为 AttributeTypeChart.FLOAT 时,输入值类型为 Double
        5. 属性字段类型为 AttributeTypeChart.CODEDSTRING 时,输入值类型为 String
        6. 属性字段类型为 AttributeTypeChart.FREETEXT 时,输入值类型为 String

        参数:
        acronym - 指定的属性的六位字符简称。
        value - 指定的属性的字段值。
        返回:
        一个布尔值,如果成功返回 true,否则返回 false。
      • getSelection

        public Selection getSelection()
        返回 ChartObjectInfo 对象所在的选择集。
        返回:
        ChartObjectInfo 对象所在的选择集。
      • getPointStyles

        public GeoStyle[] getPointStyles()
        返回点物标的风格。
        返回:
        点物标的风格。
      • getEdgesStyle

        public S57EdgeStyle[] getEdgesStyle()
        返回线面物标的边界线的风格, 只支持纸质海图显示风格。
        返回:
        线面物标的边界线的风格。
      • setEdgesStyle

        public void setEdgesStyle(S57EdgeStyle[] value)
        设置线面物标的边界线的风格, 只支持纸质海图显示风格(即 ChartDisplayStyleType.PAPERCHART)。
        参数:
        value - 线面物标的边界线的风格。
      • getParentPriority

        public int getParentPriority()
      • getSubPriority

        public int getSubPriority()

Copyright © 2021–2024 SuperMap. All rights reserved.