adjust
This commit is contained in:
@@ -8,11 +8,11 @@ import (
|
||||
"github.com/airbusgeo/godal"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/spf13/cobra"
|
||||
imageproc "starwiz.cn/sjy01/image-proc"
|
||||
producer "starwiz.cn/sjy01/image-proc/producer"
|
||||
)
|
||||
|
||||
var (
|
||||
params imageproc.Params
|
||||
params producer.Params
|
||||
)
|
||||
|
||||
var procCmd = &cobra.Command{
|
||||
@@ -20,7 +20,7 @@ var procCmd = &cobra.Command{
|
||||
Short: "process images",
|
||||
Long: `process images`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
reg := imageproc.NewRegistrator(imageproc.DownSampled)
|
||||
reg := producer.NewRegistrator(producer.DownSampled)
|
||||
reg.Params = params
|
||||
reg.Params.MssTiffFile = filepath.Join(params.OutputDir, strings.TrimSuffix(filepath.Base(params.MssRawFile), filepath.Ext(params.MssRawFile))+".tiff")
|
||||
reg.Params.PanTiffFile = filepath.Join(params.OutputDir, strings.TrimSuffix(filepath.Base(params.PanRawFile), filepath.Ext(params.PanRawFile))+".tiff")
|
||||
|
||||
Reference in New Issue
Block a user