public class DatasetUtilities
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static void |
closeDataset(com.supermap.data.Dataset... closeDataset)
关闭数据集
|
static void |
closeDataset(com.supermap.data.Datasets closeDatasets)
关闭数据集
|
static void |
deleteDataset(com.supermap.data.Dataset... datasets)
删除数据集
|
static java.lang.String |
getAvailableDatasetName(com.supermap.data.Datasource datasource, java.lang.String datasetName)
根据已有的数据源和即将创建的数据集,获取指定前缀字符串的唯一数据集名
|
static java.lang.String |
getAvailableDatasetName(com.supermap.data.Datasource datasource, java.lang.String datasetName, java.lang.String[] newDatasetNames)
根据已有的数据源和即将创建的数据集,获取指定前缀字符串的唯一数据集名
|
static java.lang.String |
getAvailableDatasetName(java.lang.String datasetName, java.lang.String[] allDatasetNames)
根据已有的数据集名,获取指定前缀字符串的唯一数据集名
|
static com.supermap.data.Dataset |
getDatasetFromFormat(java.lang.String format)
从标准化的输出转换为数据集
|
static org.pushingpixels.flamingo.api.common.icon.ResizableIcon |
getDatasetTypeIcon(com.supermap.data.DatasetType type)
根据数据集类型返回对应的图标所在的绝对路径
|
static com.supermap.data.Tolerance |
getDefaultTolerance(com.supermap.data.DatasetVector dataset)
获取数据集的默认容限
|
static java.lang.String |
getFormatDataset(com.supermap.data.Dataset dataset)
将数据集转换为标准化输出形式
|
static double |
getResolutionRatio(com.supermap.data.DatasetGrid datasetGrid)
获取栅格数据集的分辨率
|
static java.lang.Double |
getResolutionRatio(com.supermap.data.DatasetImage datasetImage)
获取影像数据集的分辨率
|
static boolean |
isDatasetDisposed(com.supermap.data.Dataset dataset)
判断数据集是否已经被销毁
|
static boolean |
isDatasetOpened(com.supermap.data.Dataset dataset)
判断数据集是否已经打开
|
static boolean |
isIncludeDataset(com.supermap.mapping.Layer layer, com.supermap.data.Dataset dataset)
判断图层中是否有指定数据集,如果为图层分组则会递归查询子图层
|
static boolean |
isIncludeDataset(com.supermap.mapping.Layers layers, com.supermap.data.Dataset dataset)
图层中是否包含指定的数据集
|
static boolean |
isPBFDataset(com.supermap.data.Dataset dataset)
判断数据集瓦片类型是否为pbf类型
|
static java.lang.String |
openPBFServer(com.supermap.data.Dataset dataset)
打开pbfSci的服务
|
static boolean |
removeByDatasets(com.supermap.mapping.Layers layers, com.supermap.data.Dataset... closeDatasets)
移除图层中包含对应数据集的图层。
|
static void |
removeSciServer(java.lang.String... sci)
清除指定的sic服务,不传参数则会清除所有服务
|
public static com.supermap.data.Tolerance getDefaultTolerance(com.supermap.data.DatasetVector dataset)
dataset
- 数据集public static boolean isDatasetOpened(com.supermap.data.Dataset dataset)
dataset
- 需要判断的数据集public static boolean isIncludeDataset(com.supermap.mapping.Layers layers, com.supermap.data.Dataset dataset)
layers
- layersdataset
- 数据集public static boolean isIncludeDataset(com.supermap.mapping.Layer layer, com.supermap.data.Dataset dataset)
layer
- 图层dataset
- 数据集public static boolean removeByDatasets(com.supermap.mapping.Layers layers, com.supermap.data.Dataset... closeDatasets)
layers
- 需要删除地图的layers对象closeDatasets
- 关闭的数据集集合public static void deleteDataset(com.supermap.data.Dataset... datasets)
datasets
- 需要删除的数据集数组public static void closeDataset(com.supermap.data.Dataset... closeDataset)
closeDataset
- 需要关闭的数据集public static void closeDataset(com.supermap.data.Datasets closeDatasets)
closeDatasets
- :需要关闭的数据集集合类public static java.lang.String getAvailableDatasetName(java.lang.String datasetName, java.lang.String[] allDatasetNames)
datasetName
- 指定的数据集名称allDatasetNames
- 即将增加的数据集的名称public static java.lang.String getAvailableDatasetName(com.supermap.data.Datasource datasource, java.lang.String datasetName, java.lang.String[] newDatasetNames)
datasource
- 保存数据集的数据源datasetName
- 指定的数据集名称public static java.lang.String getAvailableDatasetName(com.supermap.data.Datasource datasource, java.lang.String datasetName)
datasource
- 保存数据集的数据源datasetName
- 指定的数据集名称public static double getResolutionRatio(com.supermap.data.DatasetGrid datasetGrid)
datasetGrid
- 要计算的数据集public static java.lang.Double getResolutionRatio(com.supermap.data.DatasetImage datasetImage)
datasetImage
- 要计算的数据集public static java.lang.String getFormatDataset(com.supermap.data.Dataset dataset)
dataset
- 需要转换的数据集public static com.supermap.data.Dataset getDatasetFromFormat(java.lang.String format)
format
- 数据集的标准化输出形式public static boolean isPBFDataset(com.supermap.data.Dataset dataset)
dataset
- 需要判断的数据集public static java.lang.String openPBFServer(com.supermap.data.Dataset dataset)
dataset
- pbfSci数据集public static void removeSciServer(java.lang.String... sci)
public static boolean isDatasetDisposed(com.supermap.data.Dataset dataset)
dataset
- 数据集public static org.pushingpixels.flamingo.api.common.icon.ResizableIcon getDatasetTypeIcon(com.supermap.data.DatasetType type)
type
-