com.supermap.chart
类 AgencyS57s
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.chart.AgencyS57s
-
- 所有已实现的接口:
- IDisposable
public class AgencyS57s extends com.supermap.data.InternalHandleDisposable
S-57 生产机构集合。Agencies.xml 文件的初始位置为:SuperMap 组件产品安装目录\Bin\Resource\Chart\S57文件夹下,但需要注意的是,该文件路径可通过
ChartEnvironment
类的setAgencyFile()
方法进行修改,并且 SuperMap 不建议对该文件进行修改,以免造成不必要的错误而影响使用。
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 限定符和类型 方法和说明 void
dispose()
释放对象所占用的资源。AgencyS57
get(int index)
根据指定索引获取生产机构。AgencyS57
getByCode(int code)
根据给定的机构编码返回 S-57 生产机构AgencyS57
对象。AgencyS57
getByToken(String strToken)
根据给定的机构缩写返回生产机构AgencyS57
对象。int
getCount()
获取生产机构的个数。static long
getHandle(com.supermap.data.InternalHandle obj)
static void
setHandle(com.supermap.data.InternalHandle obj, long handle)
static void
setIsDisposable(com.supermap.data.InternalHandleDisposable obj, boolean disposable)
AgencyS57[]
toArray()
转换为生产机构对象的数组集合。
-
-
-
方法详细资料
-
dispose
public void dispose()
释放对象所占用的资源。调用该方法之后,此对象不再可用。
-
getCount
public int getCount()
获取生产机构的个数。- 返回:
-
getByCode
public AgencyS57 getByCode(int code)
根据给定的机构编码返回 S-57 生产机构AgencyS57
对象。- 参数:
code
- 指定的机构编码。- 返回:
- S-57 生产机构对象。
-
getByToken
public AgencyS57 getByToken(String strToken)
根据给定的机构缩写返回生产机构AgencyS57
对象。- 参数:
strToken
- 指定的机构缩写。- 返回:
- S-57 生产机构对象。
-
toArray
public AgencyS57[] toArray()
转换为生产机构对象的数组集合。- 返回:
- S-57 生产机构对象集合。
-
setIsDisposable
public static void setIsDisposable(com.supermap.data.InternalHandleDisposable obj, boolean disposable)
-
getHandle
public static long getHandle(com.supermap.data.InternalHandle obj)
-
setHandle
public static void setHandle(com.supermap.data.InternalHandle obj, long handle)
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.