OGC GeoPackage Tiles Writer Parameters
数据库连接
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
The path to the destination GeoPackage file.
Tile Format Parameters
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
存储在tile表中的二进制tile数据的数据格式。
Can be either:
- Auto (Default)
- 巴布亚新几内亚
- PNG8型
- jpeg格式
- 网络计划
如果图块格式为Auto,then the writer will use PNG for tiles with transparency and JPEG for opaque tiles.
如果图块格式为网络计划,then thegpkg_webpextension will be registered in the GeoPackage.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
This option sets the desired compression level of the JPEG or WEBP tiles.This is expressed as a percentage from 0 to 100,where 0 indicates the least possible compression (largest data size) and 100 indicates the maximum possible compression (smallest data size).
Default: 25
注:Repeatedly reading and saving files may decrease the quality for this format.In addition,Workbench may not know which format data comes from,and whether it used lossy compression.如果您知道源数据来自有损压缩的文件,you should also set the compression level to 0.尽管这种压缩仍然不能保证源文件的精确副本,the output will be very close to the original.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
This option sets the PNG DEFLATE compression level.
必须是1-9之间的值。默认值为6。
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
WhenTile Formatis PNG8,this parameter determines if PNG8 data will useFloyd-Steinberg dithering.
- Yes: PNG8 data will be written using Floyd-Steinberg dithering.
- 否(默认):不使用抖动。
Tiling Scheme Parameters
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
确定用于将光栅转换为平铺的平铺方案。Coordinate systems and the divisions of zoom levels can vary among tiling schemes:
- GoogleMapsCompatible (default): The tiling scheme made popular by Google Maps.Uses a projected (Mercator) coordinate system with an approximation of the WGS84 Ellipsoid as a sphere.Uses a single 256x256 tile as zoom level 0.
- GoogleCRS84Quad: Uses a geodetic coordinate system (LL-WGS84) and a single 256x256 tile extending from [-180,180] in both axes as zoom level 0.由于缩放级别0的范围不一致,可能与某些应用程序不兼容。
- InspireCrs84Quad:使用大地坐标系(ll-wgs84)和两个256x256分片作为缩放级别0(每个半球一个)。
- 伪TMS全局算法:基于OSGEO全球大地测量学瓷砖方案。与osgeo tms(tile map service)规范不同,因为地理包规范从左上角对tiles进行编号,而tms规范从左下角对tiles进行编号。
- PseudoTMS GlobalMercator: Based on OSGeo全球墨卡托瓷砖方案。与osgeo tms(tile map service)规范不同,因为地理包规范从左上角对tiles进行编号,而tms规范从左下角对tiles进行编号。
- Use Incoming Feature: Instead of a standard tiling scheme,使用输入的光栅范围和分辨率作为平铺的基础。
All the tiling schemes mentioned above subdivide tiles into four quadrants with each increasing zoom level.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
Determines the resampling algorithm used:
- 双线性(默认):使用双线性插值算法构造图块数据。通过求像素值的最近2x2邻域的平均值来计算像素值。This method produces a higher-quality result than Nearest Neighbor.
- 最近邻:使用最近邻插值构造图块数据。Nearest-neighbor interpolation uses the value of the nearest pixel to calculate the value of a given pixel without considering the values of pixels outside this nearest pixel range.Nearest-neighbor is the least resource-intensive,但也会产生分辨率最低的瓷砖。
- Cubic: Use the cubic interpolation algorithm to construct the tile data.使用像素值最近的4x4邻域计算像素值。
- 三次样条:使用三次样条插值算法构造瓷砖数据。Because it calculates a pixel's value by using a spline,这使得误差比线性插值小,and the interpolation is smoother.
- lanczos:使用lanczos插值算法来构造图块数据。Use Lanczos interpolation when you want to enhance or maintain local contrast;it is useful for viewing detailed features or boundaries.
- Mode: Use the Mode resampling method to construct the tile data.这是一个由gdal定制的重采样算法。This method will select the value which appears most often in all the sampled pixels and use that as the value for the given pixel.
- 平均:使用平均重采样方法来构造图块数据。这是一个由gdal定制的重采样算法。This method will use the average of all non-NODATA contributing pixels to compute the value of a pixel.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
The GeoPackage Tiles writer writes raster data at a particular缩放级别这与光栅的分辨率有关。此选项设置用于确定缩放级别的策略:
- Auto (default): Round the zoom level to the closest integer value when computing the resolution to determine the zoom level.
- Upper: Round the zoom level down when computing the resolution to determine the zoom level.For example,第4.25至5轮。This will lead to oversampling.
- Lower: Round the zoom level up when computing the resolution to determine the zoom level.For example,第4.75至4轮。This will lead to undersampling.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
Determines whether to create additional zoom levels by resampling the original raster:
- 如果Yes,the writer generates zoom levels from the level below the Base Zoom Level,由基础缩放级别策略参数确定。It continues to generate less-resolute zoom levels until it hits the level specified in theMinimum Zoom Level参数(如下所述)or until it is impossible to generate less-resolute zoom levels.The interpolation type used to resample the generated zoom levels is controlled by theInterpolation Typeparameter.
- 如果没有(默认),only the base (closest to native image resolution) zoom level will be written.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
Determines the least-resolute zoom level to generate when Generate Zoom Levels is set toYes.
默认为0,which is the lowest possible zoom level in a GeoPackage.