com.supermap.services.tilesource
类 TilesetQuery
- java.lang.Object
-
- com.supermap.services.tilesource.TilesetQuery
-
public class TilesetQuery extends java.lang.Object瓦片集查询参数用于 Provider 层根据参数选择最佳瓦片集。 支持 user 缓存优先匹配和重采样(容差匹配)场景。
- 从以下版本开始:
- 12.0.0
-
-
字段概要
字段 限定符和类型 字段和说明 booleanallowResampling是否允许重采样(容差匹配) true: 精确匹配优先,容差匹配其次 false: 仅精确匹配Rectangle2Dbounds地图范围(用于设置瓦片集 bounds 和 originalPoint)OutputFormatformat输出格式java.lang.StringmapName地图名称java.lang.StringmapStatusHashCodehashcode(用于区分不同地图状态)booleanneedEpsgSuffix是否需要 EPSG 后缀(动态投影场景)PrjCoordSysprjCoordSys坐标系doubleresolution请求的分辨率doublescale比例尺(1:N 中的 N,即比例尺分母) 用于创建瓦片集时设置 scaleDenominatorsStorageTypestorageType存储类型inttileHeight瓦片高度inttileWidth瓦片宽度booleantransparent是否透明
-
构造器概要
构造器 构造器和说明 TilesetQuery()默认构造函数
-
方法概要
方法 限定符和类型 方法和说明 static TilesetQueryfrom(MapParameter mapParam, ImageOutputOption outputOption, double resolution)从 MapParameter 和 ImageOutputOption 构建查询参数 needEpsgSuffix 默认为 falsestatic TilesetQueryfrom(MapParameter mapParam, ImageOutputOption outputOption, double resolution, PrjCoordSys defaultPrjCoordSys)从 MapParameter 和 ImageOutputOption 构建查询参数
-
-
-
字段详细资料
-
mapName
public java.lang.String mapName
地图名称
-
resolution
public double resolution
请求的分辨率
-
prjCoordSys
public PrjCoordSys prjCoordSys
坐标系
-
tileWidth
public int tileWidth
瓦片宽度
-
tileHeight
public int tileHeight
瓦片高度
-
format
public OutputFormat format
输出格式
-
transparent
public boolean transparent
是否透明
-
mapStatusHashCode
public java.lang.String mapStatusHashCode
hashcode(用于区分不同地图状态)
-
storageType
public StorageType storageType
存储类型
-
needEpsgSuffix
public boolean needEpsgSuffix
是否需要 EPSG 后缀(动态投影场景)
-
bounds
public Rectangle2D bounds
地图范围(用于设置瓦片集 bounds 和 originalPoint)
-
scale
public double scale
比例尺(1:N 中的 N,即比例尺分母)用于创建瓦片集时设置 scaleDenominators
-
allowResampling
public boolean allowResampling
是否允许重采样(容差匹配)true: 精确匹配优先,容差匹配其次
false: 仅精确匹配
-
-
方法详细资料
-
from
public static TilesetQuery from(MapParameter mapParam, ImageOutputOption outputOption, double resolution)
从 MapParameter 和 ImageOutputOption 构建查询参数needEpsgSuffix 默认为 false
- 参数:
mapParam- 地图参数outputOption- 输出选项resolution- 分辨率- 返回:
- TilesetQuery 实例
-
from
public static TilesetQuery from(MapParameter mapParam, ImageOutputOption outputOption, double resolution, PrjCoordSys defaultPrjCoordSys)
从 MapParameter 和 ImageOutputOption 构建查询参数- 参数:
mapParam- 地图参数outputOption- 输出选项resolution- 分辨率defaultPrjCoordSys- 地图默认坐标系,用于计算 needEpsgSuffix(null 时 needEpsgSuffix=false)- 返回:
- TilesetQuery 实例
-
-