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

database.properties| Parameter | Mandatory? | Description |
SPI | Y | The DataStoreFactory used to connect to the index store |
| StoreName | N | Can be used to refer to a GeoServer registered store |
|
| Y | Must be the string |
|
| Y | Machine name or IP address to connect to |
|
| Y | Port number to connect to, default 5432 |
|
| Y | The database schema to access |
|
| Y | The database to connect to |
|
| Y | User name |
|
| Y | Password |
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 |
timeregex.properties将配置文件存放于landtype相应的影像文件夹内,基本配置如下图
indexer.properties:
- Schema=*the_geom:Polygon,location:String,ingestion:java.util.Date,elevation:Integer
- PropertyCollectors=TimestampFileNameExtractorSPI[timeregex](ingestion)
- TimeAttribute=ingestion
- ElevationAttribute=elevation
- Caching=false
timeregex.properties:
regex=[0-9]{8}
在geoserver中发布ImageMosaic,同时开启时间维度(略..........)。


文件结构:

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