Addition to the following tutorial of Geoserver: Using the ImageMosaic plugin for raster time-series data

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


Make sure the rasterfiles have the date in the name, preferably in the format of YYYYMMDD

First add the to the folder where the rasterfiles are located

You can copy the examples of the link in the tutorial.


Then assign a workplace and store in geoserver, make sure to select ImageMosaic option in store

Use the path to the folder where the rasterfiles are located.


Geoserver will now automatically create a shapefile with the same name as the folder where the rasterfiles are located. This shapefile will have a timeseries column (‘ingestion’) which causes it to have the time component. If you are unsure, check if this column exists in the shapefile. Next to the shapefile a layername.properties file will also be created.


Then to enable the time component of a layer in Geoserver:

Go to the tab dimensions and tick Time Enabled, then select List. See image below. Also do not forget to style the layer

To check if the time component works, you can either query the URL, or make a WMS connection to the geoserver via QGIS and load in the layer. You’ll see a list of dates under the properties of the layer and it will have a little clock next to it in the layer tab

What if it does not work?

Check if all the needed files are there;

  • Indexer.properties
  • Timeregex.properties
  • Layername.properties
  • Shapefile (and necessary files for that) with time column!


Is a raster file flipped in geoserver?

Please check the processing scripts: https://gis.stackexchange.com/questions/365082/geoserver-flips-my-geotiffs

  • No labels