Wednesday 3 June 2015

postgis - How to add time and elevation dimension attributes to Geoserver rasters?


In geoserver, when I edit a postgis raster layer and click on the Dimensions Tab, I can't enable either of the Time or Elevation dimensions. The following message appears next to each of the respective enable checkboxes:



Time



Cannot enable, no attribute of type Date found



Elevation



Cannot enable, no attribute of type Number found



Where do I add these attributes? I do have a date column in my raster postgis table.



Answer




There is a simple answer, the ImageMosaic JDBC module, that you're using to read data from PostGis raster, does not support dimensions at all. You should try a simple file based ImageMosaic instead (you can still keep the mosaic index in the database if you want).


In case you really need dimensions support in the ImageMosaic JDBC module, have a look here: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...