zoukankan      html  css  js  c++  java
  • GeoServer之发布Geotiff存在的问题

    GeoServer之发布Geotiff存在的问题

    首次使用geoserver发布geotiff时,在导入geotiff会遇到这样的问题:

    Could not list layers for this store, an error occurred retrieving them: Failed to create reader from file://F: if11.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 = StyleFactoryImpl

    出现这种情况时因为所选的TIFF的头文件有问题或者geoserver无法识别投影坐标系。

    解决方法:通过gdal_translate(提前安装了gdal)重写TIFF文件

    CMD命令行输入:gdal_translate -of GTiff -scale 输入文件路径 输出文件路径

    官方链接:https://gdal.org/1.11/gdal_translate.html

  • 相关阅读:
    面试(转)
    Expression Blend实战开发技巧
    Twelve Principles of Agile Software
    Test Software Engineer
    Web开发工程师必读的15个设计博客
    麻省理工的C/C++的课程
    Orchard:处理1对多的关系
    DotNetNuke Switches to C# !!
    我的那个他
    2011 微软MVP全球大会
  • 原文地址:https://www.cnblogs.com/pycsharpthon/p/9492429.html
Copyright © 2011-2022 走看看