ESRIC—Esri压缩缓存

司机简称

ESRIC

Driver built-in by default

This driver is built-in by default

将Esri Compact Cache V2作为单个栅格读取

驱动程序功能

Supports Georeferencing

This driver supports georeferencing

Supports VirtualIO

This driver supports virtual I/O operations (/vsimem/, etc.)

Esri Compact缓存V2

读者 Esri Compact Cache V2 . 缓存存储在特定文件夹结构中的多个文件中。从这个驱动程序的角度来看,栅格由名为conf.xml格式,它位于缓存的根文件夹中。而这个文件的确切内容并不是由Esri完全记录的。此驱动程序仅使用少数XML字段(根据需要)来读取栅格。

使用实例

如果/path/Layers在正常的Web Mercator平铺网格中包含V2格式的Esri Compact缓存,则此命令将把级别2内容复制到TIF文件中。

gdal_translate -outsize 1024 1024 path/Layers/conf.xml output.tif

特点和局限性

  • 仅支持V2压缩缓存。此格式由值标识 esriMapCacheStorageModeCompactV2CacheInfo.TileCacheInfo.StorageFormat 元素的conf.xml格式文件。不支持其他旧版Esri缓存格式。

  • 仅支持分幅为256 x 256像素的缓存。这些存储为 CacheInfo.TileCacheInfo.TileRowsCacheInfo.TileCacheInfo.TileCols 元素。

  • 缓存中的磁贴可以采用不同的格式,包括JPEG和PNG。最常见的是8位彩色或灰度JPEG和彩色PNG有或没有不透明度。这些缓存将具有 JPEGPNGMIXEDCacheInfo.TileImageInfo.CacheTileFormat 元素。其他平铺格式,例如 PNG8 不支持。此驱动程序将栅格提升为RGB或RGBA,即使源是灰度。

  • 仅支持捆绑文件中具有128×128个磁贴的缓存。这个值,即一个包中的平铺的线性数,包含在 CacheInfo.CacheStorageInfo.PacketSize 元素。

  • 空间参考是从 CacheInfo.TileCacheInfo.SpatialReference.WKT 现场。如果不存在此字段,则默认值为EPSG:4326是假设。

  • As defined in the standard conf.xml file, the cache tile grid has an origin location, stored in the CacheInfo.TileCacheInfo.TileOrigin element, which has X and Y components. The cache size is not explicitly defined. The ESRIC format driver will assume a symmetric area around the 0,0 coordinates, in the reference system coordinates. This is true for the standard Web Mercator and GCS reference systems. If this assumption is not valid, the conf.xml file can be modified, adding a non-standard CacheInfo.TileCacheInfo.TileEnd element with the appropriate values for the X and Y components, similar to the TileOrigin. Note that the grid origin and size is different from the raster data extent. For example, it is common to generate a cache in the standard Web Mercator tile grid, which is defined for the whole Earth, even if data is only available for a small region of the globe.

  • 捆绑缓存具有多个分辨率级别,以一系列 CacheInfo.TileCacheInfo.LODInfos.LODInfo 节点。这个 LODInfo XML节点由 水平线 值,该值必须是连续的,从0开始表示级别,该级别的值最大 分辨率 并朝着 LODInfo 具有最小 分辨率 价值观。级别约定类似于WMT中使用的其他级别、行和列磁贴寻址方案。虽然很常见,但不要求两个连续级别的分辨率相差两倍。每个缓存级别都将以适当的分辨率作为概览读取。分辨率值以每像素的空间参考距离单位表示。

  • 许多缓存是从不同的源逐级构建的,类似于GDAL WMS驱动程序支持的许多web地图平铺协议。这意味着特定级别的内容可能来自与相邻级别不同的源,或者特定级别的内容可能完全丢失。当读取在给定分辨率级别的缓存中没有平铺的区域时,此驱动程序将返回不透明的黑色,即使数据确实存在于同一位置的其他级别。

  • 缓存在任一维度上都可能超过GDAL支持的最大大小,即INT32u MAX。此驱动程序在打开此类缓存时将生成错误。卸下 LODInfo 具有最高 水平线 从conf.xml格式在栅格大小降到INT32MAX以下之前,可以使用文件,但不会读取最高分辨率级别。

也见

  • Implemented as gdal/frmts/esric/esric_dataset.cpp.