2

I'm using the Geoserver REST interface to create new coverage stores and add geotiff files to it.

I have a zip file with multiple tiff files in it, one for each band, and would like to have them all stored under the same coverage store. The main goal is then to be able to combine bands using the coverage view.

My problem: the coverage store seems to only accept one tiff file at a time.

How can I add multiple tif files to a coverage store?

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Oct 3, 2016 at 13:28
1
  • I ended up combining the bands into one TIFF file using gdal_merge and the -separate flag. Still interested in an answer though ;-) Commented Oct 4, 2016 at 13:23

2 Answers 2

2

You need to specify CoverageNameCollectorSPI in your indexer.properties:

CoverageNameCollectorSPI=org.geotools.gce.imagemosaic.namecollector.FileNameRegexNameCollectorSPI:regex=_(B[018][0-9A])

This reads the band from the filename. Change the Regex to your needs, file ending is ignored.

enter image description here

You can then create Coverage Views based on that.

See the docs and this very underrated ;-) related question.

answered Aug 24, 2017 at 15:29
0

Try using image mosaic plugin. The plugin combines granules into a one layer ie mosaic. you should have no trouble using this.

answered Mar 14, 2017 at 8:52
1
  • OP already uses image mosaic. Commented Aug 24, 2017 at 15:41

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.