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
    • 构造器概要

      构造器 
      构造器和说明
      TilesetQuery()
      默认构造函数
    • 方法概要

      方法 
      限定符和类型 方法和说明
      static TilesetQuery from(MapParameter mapParam, ImageOutputOption outputOption, double resolution)
      从 MapParameter 和 ImageOutputOption 构建查询参数 needEpsgSuffix 默认为 false
      static TilesetQuery from(MapParameter mapParam, ImageOutputOption outputOption, double resolution, PrjCoordSys defaultPrjCoordSys)
      从 MapParameter 和 ImageOutputOption 构建查询参数
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • mapName

        public java.lang.String mapName
        
        地图名称
      • resolution

        public double resolution
        
        请求的分辨率
      • tileWidth

        public int tileWidth
        
        瓦片宽度
      • tileHeight

        public int tileHeight
        
        瓦片高度
      • 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: 仅精确匹配

    • 构造器详细资料

      • TilesetQuery

        public TilesetQuery()
        
        默认构造函数
    • 方法详细资料

      • 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 实例