File tree 2 files changed +24
-13
lines changed
2 files changed +24
-13
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,13 @@ class ProcessGraphNode {
62
62
} ) ;
63
63
}
64
64
65
+ processImg ( process_id , args = { } ) {
66
+ // ToDo: Improve? Doesn't seem very tidy (changing an object from outer scope).
67
+ // Should be solved with the new API version though
68
+ args [ 'imagery' ] = this ;
69
+ return new ProcessNode ( process_id , args ) ;
70
+ }
71
+
65
72
process ( process_id , args , processParameterName , imagery = null ) {
66
73
// ToDo: Improve? Doesn't seem very tidy (changing an object from outer scope).
67
74
// Should be solved with the new API version though
@@ -72,18 +79,7 @@ class ProcessGraphNode {
72
79
}
73
80
74
81
execute ( output_format , output_args = { } ) {
75
- return OpenEO . HTTP . send ( {
76
- method : 'post' ,
77
- responseType : 'blob' ,
78
- url : '/execute' ,
79
- data : {
80
- process_graph : this ,
81
- output : {
82
- format : output_format ,
83
- args : output_args
84
- }
85
- }
86
- } ) ;
82
+ return OpenEO . Jobs . executeSync ( this , output_format , output_args ) ;
87
83
}
88
84
89
85
}
@@ -687,6 +683,21 @@ var OpenEO = {
687
683
688
684
getObject ( job_id ) {
689
685
return new JobAPI ( job_id ) ;
686
+ } ,
687
+
688
+ executeSync ( process_graph , output_format , output_args = { } ) {
689
+ return OpenEO . HTTP . send ( {
690
+ method : 'post' ,
691
+ responseType : 'blob' ,
692
+ url : '/execute' ,
693
+ data : {
694
+ process_graph : process_graph ,
695
+ output : {
696
+ format : output_format ,
697
+ args : output_args
698
+ }
699
+ }
700
+ } ) ;
690
701
}
691
702
692
703
} ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @openeo/js-client" ,
3
- "version" : " 0.2.0 " ,
3
+ "version" : " 0.2.1 " ,
4
4
"author" : " openEO Consortium" ,
5
5
"contributors" : [
6
6
{
You can’t perform that action at this time.
0 commit comments