File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ class OgcConnection extends Connection {
4242 if ( Array . isArray ( spec . jobControlOptions ) && spec . jobControlOptions . includes ( "async-execute" ) ) {
4343 mode = 'async' ;
4444 }
45- return Boolean ( spec && spec . ogcapi ) ;
45+ return Boolean ( spec /* && spec.ogcapi*/ ) ;
4646 } ) ;
47- let requestBody = Migrate . executeSync ( openEO ) ;
47+ let requestBody = Migrate . executeSync ( this , openEO ) ;
4848 let headers = { } ;
4949 if ( mode === 'async' ) {
5050 headers . Prefer = 'respond-async' ;
Original file line number Diff line number Diff line change @@ -161,20 +161,21 @@ class OgcMigrate {
161161 * Executes an OGC API process synchronously.
162162 *
163163 * @todo Check whether implementation still works
164+ * @param {Connection } connection
164165 * @param {object } requestBody
165166 * @returns {object }
166167 */
167- static executeSync ( requestBody ) {
168+ static executeSync ( connection , requestBody ) {
168169 const graph = Object . values ( requestBody . process . process_graph ) ;
169170 const valid = graph . every ( node => {
170- let spec = OgcMigrate . connection . processes . get ( node . process_id ) ;
171+ let spec = connection . processes . get ( node . process_id ) ;
171172 return Boolean ( spec && ( spec . ogcapi || spec . id === 'load_collection' ) ) ;
172173 } ) ;
173174 if ( ! valid ) {
174175 throw new Error ( 'Process must consist only of OGC Processes and Collections' ) ;
175176 }
176177
177- const parser = new PgParser ( requestBody . process , OgcMigrate . connection . getBaseUrl ( ) ) ;
178+ const parser = new PgParser ( requestBody . process , connection . getBaseUrl ( ) ) ;
178179 return parser . parse ( ) ;
179180 }
180181
You can’t perform that action at this time.
0 commit comments