Showing results for 
Search instead for 
Do you mean 

How to change Apollo default decoder order

by Technical Evangelist on ‎07-24-2020 07:34 AM (73 Views)

Apollo use decoder.yaml to control raster decoders

C:\Program Files\Hexagon\ERDAS APOLLO\config\erdas-apollo\providers\coverage\decoder.yaml

 

For example, the following is tif decoder configuration. "gio" decoder is used by default.

 

tif:
 !!com.erdas.apollo.api.dataaccess.configuration.file.ImageryFileHandlerConfiguration
  defaultExtension: tif
  handlerClassNames:
  - com.lggi.esp.coverage.decoder.raster.gio.GIORasterDecoderProxy
  - com.ionicsoft.raster.codec.GeotiffFileImage
  - com.ionicsoft.gdal.coverage.GDALCoverageDecoder
  dataType: imagery
  template: (?iu).*\.tif[f]?

 

If user want to use "gdal", then just change the order

 

tif:
 !!com.erdas.apollo.api.dataaccess.configuration.file.ImageryFileHandlerConfiguration
  defaultExtension: tif
  handlerClassNames:
  - com.ionicsoft.gdal.coverage.GDALCoverageDecoder
  - com.lggi.esp.coverage.decoder.raster.gio.GIORasterDecoderProxy
  - com.ionicsoft.raster.codec.GeotiffFileImage
  dataType: imagery
  template: (?iu).*\.tif[f]?

 

Then restart Apollo tomcat service.

Contributors