ROI produce params

This commit is contained in:
nuknal
2024-07-22 16:56:29 +08:00
parent 688f709b39
commit 814d750f99
3 changed files with 143 additions and 31 deletions

View File

@@ -18,6 +18,15 @@ type Params struct {
SubScenes bool
ReportFile string
DataId string
Targets ROITargets // 分景的时候优先按目标分景输出_ROI_100_2000_
}
type ROITargets struct {
XMLName xml.Name `xml:"targets"`
Targets []struct {
StartLine int `xml:"startLine"`
EndLine int `xml:"endLine"`
} `xml:"target"`
}
type XMLImageTask struct {
@@ -36,16 +45,17 @@ type XMLInputFileList struct {
}
type XMLParams struct {
Satellite string `xml:"satellite"`
Sensor string `xml:"sensor"`
ProductLevel string `xml:"productLevel"`
ProductID string `xml:"productId"`
TempPath string `xml:"tempPath"`
OutputPath string `xml:"outputPath"`
DeleteTempFlag int `xml:"deleteTempFlag"`
ReportFile string `xml:"reportFile"`
DataID string `xml:"dataId"`
DoPansharpen bool `xml:"doPansharpen"`
Satellite string `xml:"satellite"`
Sensor string `xml:"sensor"`
ProductLevel string `xml:"productLevel"`
ProductID string `xml:"productId"`
TempPath string `xml:"tempPath"`
OutputPath string `xml:"outputPath"`
DeleteTempFlag int `xml:"deleteTempFlag"`
ReportFile string `xml:"reportFile"`
DataID string `xml:"dataId"`
DoPansharpen bool `xml:"doPansharpen"`
Targets ROITargets `xml:"targets"`
}
func ParseXMLImageTask(xmlFile string) (*XMLImageTask, error) {