• geoserver2.18系列(6):使用ImageMosaic发布时间序列栅格


    0 说明

    官方文档(重要):

    GeoServer ImageMosaic configurationhttps://docs.geoserver.org/2.18.x/en/user/data/raster/imagemosaic/configuration.html数据源说明:为某地区的2000-2005-2010-2013-2015-2018-2020年的时间序列地类变化栅格数据,命名格式为“landtype_yyyyMMdd”。


     1 配置文件

    1.1 database.properties

    • 包含连接到存储镶嵌索引的数据库的所有相关信息;
    • 该配置文件不是必须的;
    • 若数据文件夹landtype目录内存在该配置文件,则会在相应的数据库中创建相同名称的空间表用来存储时间序列影像的索引信息;
    • 若数据文件夹landtype目录内不存在该配置文件,则会自动创建同名的shp文件用来存储时间序列影像的索引信息。
    ParameterMandatory?Description
    SPIYThe DataStoreFactory used to connect to the index store
    StoreNameNCan be used to refer to a GeoServer registered store

    dbtype

    Y

    Must be the string postgis

    host

    Y

    Machine name or IP address to connect to

    port

    Y

    Port number to connect to, default 5432

    schema

    Y

    The database schema to access

    database

    Y

    The database to connect to

    user

    Y

    User name

    passwd

    Y

    Password

    1.2 indexer.properties(参数说明详见官网)

    • 用于指定时间变量属性的名称、高程属性的名称和这些属性的类型。

    Parameter

    Mandatory?

    Description

    Schema

    Y

    A comma-separated sequence describing the mapping between attribute and data type.

    PropertyCollectors

    Y

    TimeAttribute

    N

    Specifies the name of the time-variant attribute.

    ElevationAttribute

    N

    Specifies the name of the elevation attribute.

    AuxiliaryFile

    N

    AbsolutePath

    N

    Caching

    N

    CanBeEmpty

    N

    Envelope2D

    N

    ExpandToRGB

    N

    IndexingDirectories

    N

    Name

    N

    NoData

    N

    CoverageNameCollectorSPI

    N

    Recursive

    N

    UseExistingSchema

    N

    Wildcard

    N

    WrapStore

    N

    MosaicCRS

    N

    AdditionalDomainAttributes

    N

    1.3 timeregex.properties

    • 指定用于从栅格文件的文件名中提取时间信息的正则表达式。

    2 发布步骤

    2.1 编写配置文件

    将配置文件存放于landtype相应的影像文件夹内,基本配置如下图

    indexer.properties:

    1. Schema=*the_geom:Polygon,location:String,ingestion:java.util.Date,elevation:Integer
    2. PropertyCollectors=TimestampFileNameExtractorSPI[timeregex](ingestion)
    3. TimeAttribute=ingestion
    4. ElevationAttribute=elevation
    5. Caching=false

    timeregex.properties:

    regex=[0-9]{8}

     2.2 geoserver数据发布

    在geoserver中发布ImageMosaic,同时开启时间维度(略..........)。

    2.3 时间序列影像数据

    文件结构:

    在wms的getmap的url中添加&time=2000-01-01参数即可访问相应时间的影像数据。

  • 相关阅读:
    PCB信号仿真之为什么DDR走线要同组同层?
    颜色扩散类dp及其优化:0919T2
    Unity摩天轮旋转
    【网络教程】揭秘Windows SSH服务端免密登录:告别繁琐,享受安全连接
    数据挖掘:分类,聚类,关联关系,回归
    杂谈-Android和Ios的对比
    thingsboard之源码规则链入口
    【MySQL】数据库常见错误及解决
    数据是一种资产|如何实现数据价值最大化
    【HDLBits 刷题 10】Circuits(6)Finite State Manchines 10-17
  • 原文地址:https://blog.csdn.net/qq_34520411/article/details/126580184