Thursday, 6 September 2018

Geoserver/Image Mosaic - A problem when adding multiple Custom Dimensions


I want to add more custom dimensions. My indexer.properties file is:


Caching=false
TimeAttribute=ingestion

ElevationAttribute=elevation
AdditionalDomainAttributes=indeksi(indeksi)
AdditionalDomainAttributes=parcela(parcela)
Schema=*the_geom:Polygon,location:String,ingestion:java.util.Date,elevation:Integer,parcela:Integer,indeksi:String
PropertyCollectors=TimestampFileNameExtractorSPI[timeregex](ingestion),IntegerFileNameExtractorSPI[elevationregex](elevation),IntegerFileNameExtractorSPI[parcelaregex](parcela),StringFileNameExtractorSPI[indeksiregex](indeksi)

Only one custom dimension (PARCELA) appears in the GUI Geoserver and should be two (PARCELA and INDEKSI)


enter image description here


The database (Postgresql) correctly creates all attributes and values


enter image description here



Any ideas what the problem is? Why is the GUI GeoServer not appear both custom dimensions?



Answer



Each variable in the indexer.properties file can only be set once. The second "AdditionalDomainAttributes" overwrites the first one.


You need to put the attributes comma-separated like this:


AdditionalDomainAttributes=indeksi(indeksi),parcela(parcela)

No comments:

Post a Comment