ROI produce params
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user