com.supermap.services.providers

类 MBTilesTileProviderBase

    • 字段详细资料

      • message

        protected static final ResourceManager message
        
      • mapNames

        protected java.util.List<java.lang.String> mapNames
        
      • tileOrigin

        protected Point2D tileOrigin
        
      • positiveDirection

        protected java.lang.String positiveDirection
        
      • epsgCode

        protected int epsgCode
        
      • scales

        protected double[] scales
        
      • resolutions

        protected double[] resolutions
        
      • conn

        protected java.sql.Connection conn
        
      • loadedMetadata

        protected java.lang.Boolean loadedMetadata
        
      • isStandard

        protected java.lang.Boolean isStandard
        
      • mbTilesDir

        protected java.io.File mbTilesDir
        
      • isPBF

        protected boolean isPBF
        
    • 构造器详细资料

      • MBTilesTileProviderBase

        public MBTilesTileProviderBase(MapProviderSetting setting)
        

        带参构造函数

        参数:
        setting - 地图服务提供者配置
      • MBTilesTileProviderBase

        public MBTilesTileProviderBase()
        

        默认构造函数

    • 方法详细资料

      • loadMetaData

        protected abstract void loadMetaData()
        

        加载元数据信息。

      • getMetadata

        protected java.lang.String getMetadata(java.lang.String itemName)
        
      • initSupportedMapNames

        protected java.util.List<java.lang.String> initSupportedMapNames()
        
        初始化支持的地图列表。
        指定者:
        initSupportedMapNames 在类中 TiledMapProviderBase
        返回:
        地图名列表
      • initDefaultMapParameter

        protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
        

        初始化默认地图状态,返回值为一个映射,键为地图名,值为地图参数对象。

        指定者:
        initDefaultMapParameter 在类中 TiledMapProviderBase
        返回:
        地图状态映射,键为地图名,值为地图参数对象。
      • getConn

        protected java.sql.Connection getConn(java.io.File mbTilesDir)
        
      • getSupportResolutions

        public double[] getSupportResolutions(java.lang.String mapName)
        

        返回当前服务支持的分辨率 。如果支持所有分辨率,则返回空。

        指定者:
        getSupportResolutions 在类中 TiledMapProviderBase
        参数:
        mapName地图名 -
        返回:
        分辨率数组
      • getSupportScales

        public double[] getSupportScales(java.lang.String mapName)
        

        根据地图名得到地图支持的比例尺集合

        参数:
        mapName地图名 -
        返回:
      • isResolutionEquals

        protected boolean isResolutionEquals(double resolution1,
                                 double resolution2)
        
        从类复制的说明: TiledMapProviderBase

        判断两个分辨率是否在容差范围之内(1.0E-6)

        覆盖:
        isResolutionEquals 在类中 TiledMapProviderBase
        参数:
        resolution1 - double值
        resolution2 - double值
        返回:
        是否相等
      • getMinZoomLevel

        protected java.lang.Integer getMinZoomLevel()
                                             throws java.sql.SQLException
        

        获取最小的 zoom_level 值。

        返回:
        最小级别,如果表为空则返回 null
        抛出:
        java.sql.SQLException
      • getMaxZoomLevel

        protected java.lang.Integer getMaxZoomLevel()
                                             throws java.sql.SQLException
        

        获取最大的 zoom_level 值。

        返回:
        最大级别,如果表为空则返回 null
        抛出:
        java.sql.SQLException
      • levelExists

        protected boolean levelExists(int level)
                               throws java.sql.SQLException
        

        判断指定级别是否存在。

        参数:
        level - 级别
        返回:
        存在返回 true,否则返回 false
        抛出:
        java.sql.SQLException
      • queryZoomLevels

        protected java.util.List<java.lang.Integer> queryZoomLevels()
        

        查询所有存在的 zoom_level 列表。

        对于标准 MBTiles 规范,级别范围通常在 0-23 之间,使用 MIN/MAX 迭代法比 DISTINCT 全表扫描更高效。

        返回:
        级别列表,按升序排列