当前位置: 首页 > news >正文

通过geoserver imageMosic发布多张tif数据

通过geoserver imageMosic发布多张tif数据

reference:

https://zhuanlan.zhihu.com/p/132388558

https://zhuanlan.zhihu.com/p/103674876

https://docs.geoserver.org/latest/en/user/tutorials/imagemosaic_timeseries/imagemosaic_timeseries.html

步骤

  • 下载数据 https://docs.geoserver.org/latest/en/user/_downloads/5d368630a4da12c7173c0547741d9208/snowLZWdataset.zip
  • 将数据解压到geoserver设置的目录,取名:snowLZWdataset,目录下包涵三张tif图和一个sld文件
  • snowLZWdataset目录下创建timeregex.properties文件:
regex=[0-9]{8}
  • 创建indexer.properties文件

    TimeAttribute=ingestion
    ElevationAttribute=elevation
    Schema=*the_geom:Polygon,location:String,ingestion:java.util.Date,elevation:Integer
    PropertyCollectors=TimestampFileNameExtractorSPI[timeregex](ingestion)
    
  • Create new ImageMosaic data store,指定目录,如file:/imagemosaic_time_sample/snowLZWdataset

    • 自动生成文件
      • sample_image.dat
  • 创建图层,并设置

    • Set coverage parameters sorting 参数

      ingestion D
      
  • 添加snow_style.sld并设置到layer

  • 设置时间参数

    • 选择维度:启用时间,选择list,自动生成,snowLZWdataset.properties和snowLZWdataset.shp(及shp其他文件)
  • 使用三个时间地址

http://localhost:8980/geoserver/NCData/wms?service=WMS&version=1.1.0&request=GetMap&layers=NCData%3AsnowLZWdataset&bbox=624800.0%2C5171500.0%2C632600.0%2C5184500.0&width=460&height=768&srs=EPSG%3A32632&styles=&format=application/openlayers&time=2009-10-01

http://localhost:8980/geoserver/NCData/wms?service=WMS&version=1.1.0&request=GetMap&layers=NCData%3AsnowLZWdataset&bbox=624800.0%2C5171500.0%2C632600.0%2C5184500.0&width=460&height=768&srs=EPSG%3A32632&styles=&format=application/openlayers&time=2009-11-01

http://localhost:8980/geoserver/NCData/wms?service=WMS&version=1.1.0&request=GetMap&layers=NCData%3AsnowLZWdataset&bbox=624800.0%2C5171500.0%2C632600.0%2C5184500.0&width=460&height=768&srs=EPSG%3A32632&styles=&format=application/openlayers&time=2009-12-01

http://www.lryc.cn/news/153201.html

相关文章:

  • 输出图元(四)8-2 OpenGL画点函数、OpenGL画线函数
  • java八股文
  • 算法通关村——解析堆的应用
  • 爬虫源码---爬取小猫猫交易网站
  • Python的由来和基础语法(一)
  • 使用maven创建springboot项目
  • MySQL 基本操作1
  • linux内网yum源服务器搭建
  • 机器学习与数据分析
  • 项目总结知识点记录-文件上传下载(三)
  • 基于LinuxC语言实现的TCP多线程/进程服务器
  • 浅谈JVM垃圾回收机制
  • 【80天学习完《深入理解计算机系统》】第十二天3.6数组和结构体
  • 基于Python+OpenCV智能答题卡识别系统——深度学习和图像识别算法应用(含Python全部工程源码)+训练与测试数据集
  • Redis集群操作-----主从互换
  • 肖sir __linux命令拓展__05
  • 大白菜清理电脑密码教程
  • [libglog][FFmpeg] 如何把 ffmpeg 的库日志输出到 libglog里
  • 【Unity-Cinemachine相机】虚拟相机(Virtual Camera)的本质与基本属性
  • LeetCode:718. 最长重复子数组 - Python
  • 【面试题精讲】Redis如何实现分布式锁
  • list【2】模拟实现(含迭代器实现超详解哦)
  • Nginx+Tomcat的动静分离与负载均衡
  • 【设计模式】Head First 设计模式——策略模式 C++实现
  • c#object类中方法的使用
  • 三种常用盒子布局的方法
  • GB28181学习(二)——注册与注销
  • 【Linux】线程安全-信号量
  • 数字IC验证——PSS可移植测试用例
  • java设计模式---策略模式