Hello,

I need some little help for the CoverageNameCollectorSPI. In Geoserver I work 
with the Imagemosaic and some custom Sentinel2 data. The Sentinel2 bands are 
single band data and I'm using a shapefile to store the indexes. (Geoserver 
2.16.1, Java-Version: openjdk version "11.0.8, Linux system, Ubuntu 18.04.5 
LTS, 64Bit).

The single band data name syntax looks like this:
...
SENTINEL2B_20190624-103725-573_L2A_T32UMV_C_V1-0_FRE_B4_masked_cog.tif
...
SENTINEL2B_20190624-103725-573_L2A_T32UMV_C_V1-0_FRE_masked_10m_ndvi_cog.tif
...

I tried to create an Imagemosaic with this data and it works fine. - But this 
results in only one coverage - And with one coverage I can't work with the 
bands in Geoserver.

So, my aim is to work with all of the single bands of the Imagemosaic. This 
means I want to get coverages of all single band data which where included from 
the Imagemosaic.
I use the CoverageNameCollectorSPI in Geoserver similar to the documentation.
The code should be defined in the indexer.properties file and looks like this:

TimeAttribute=time
AdditionalDomainAttributes=band(band),coverage(coverage)
PropertyCollectors=TimestampFileNameExtractorSPI[timeregex](time),StringFileNameExtractorSPI[dimbandregex](band),StringFileNameExtractorSPI[coverageregex](coverage)
CoverageNameCollectorSPI=org.geotools.gce.imagemosaic.namecollector.FileNameRegexNameCollectorSPI:regex=(FRE_[a-zA-Z0-9_]+_)
Schema=*the_geom:Polygon,location:String,time:java.util.Date,band:String,coverage:String
Caching=false
AbsolutePath=false


But there is always the same type of error (on the process to create the 
imagemosaic with the CoverageNameCollectorSPI) (full error log: see attachment):
...
2020-09-18 14:53:28,669 ERROR [org.geotools.gce.imagemosaic] - Schema 
'FRE_B4_masked_' does not exist.
java.io.IOException: Schema 'FRE_B4_masked_' does not exist.
...

To solve this schema-issue I tried to define a new schema in the 
indexer.properties file but it doesn't help.

I also looked at the docs and read about the topic in the forum, but even the 
solutions didn't work for me. Even this kind of error I couldn't find anywhere 
on that topic.

I can't get the CoverageNameCollectorSPI works and I don't know why. I think my 
data shouldn't be the issue. Without the codeline of the 
"CoverageNameCollectorSPI" the indexer.properties file and the Imagemosaic 
worked well.

Does anyone has experiences on this topic or knows this kind of issue of this 
not existing schema?

Thanks for any help or advice

Dominik Schilder

Attachment: geoserver_logfile.bin
Description: Binary data

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to