GeoServer之发布Geotiff存在的问题html
首次使用geoserver发布geotiff时,在导入geotiff会遇到这样的问题:java
Could not list layers for this store, an error occurred retrieving them: Failed to create reader from file://F:\tif\11.tif and hints Hints: REPOSITORY = org.geoserver.catalog.CatalogRepository@11d3c487 EXECUTOR_SERVICE = java.util.concurrent.ThreadPoolExecutor@583d19fb[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0] System defaults: GRID_COVERAGE_FACTORY = GridCoverageFactory TILE_ENCODING = null FILTER_FACTORY = FilterFactoryImpl LENIENT_DATUM_SHIFT = true FORCE_AXIS_ORDER_HONORING = http FEATURE_FACTORY = org.geotools.feature.LenientFeatureFactoryImpl@1e0f9063 FORCE_LONGITUDE_FIRST_AXIS_ORDER = true COMPARISON_TOLERANCE = 1.0E-8 STYLE_FACTORY = StyleFactoryImplthis
出现这种状况时由于所选的TIFF的头文件有问题或者geoserver没法识别投影坐标系。spa
解决方法:经过gdal_translate(提早安装了gdal)重写TIFF文件命令行
CMD命令行输入:gdal_translate -of GTiff -scale 输入文件路径 输出文件路径3d
官方连接:https://gdal.org/1.11/gdal_translate.htmlserver