@google/earthengine 1.7.1 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/browser.js +469 -428
- package/build/ee_api_js.js +246 -246
- package/build/ee_api_js_debug.js +446 -406
- package/build/ee_api_js_npm.js +469 -428
- package/build/main.js +469 -428
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/batch.js +6 -2
- package/src/data.js +3 -0
- package/src/encodable_batch.js +4 -2
package/package.json
CHANGED
package/src/apiclient.js
CHANGED
|
@@ -24,7 +24,7 @@ const {trustedResourceUrl} = goog.require('safevalues.index');
|
|
|
24
24
|
/** @namespace */
|
|
25
25
|
const apiclient = {};
|
|
26
26
|
|
|
27
|
-
const API_CLIENT_VERSION = '1.7.
|
|
27
|
+
const API_CLIENT_VERSION = '1.7.3';
|
|
28
28
|
|
|
29
29
|
exports.VERSION = apiVersion.VERSION;
|
|
30
30
|
exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
|
package/src/batch.js
CHANGED
|
@@ -125,13 +125,14 @@ class ExportTask {
|
|
|
125
125
|
* @param {number=} opt_maxPixels
|
|
126
126
|
* @param {number=} opt_shardSize
|
|
127
127
|
* @param {number=} opt_priority
|
|
128
|
+
* @param {boolean=} opt_overwrite
|
|
128
129
|
* @return {!ExportTask}
|
|
129
130
|
* @export
|
|
130
131
|
*/
|
|
131
132
|
Export.image.toAsset = function(
|
|
132
133
|
image, opt_description, opt_assetId, opt_pyramidingPolicy, opt_dimensions,
|
|
133
134
|
opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels,
|
|
134
|
-
opt_shardSize, opt_priority) {
|
|
135
|
+
opt_shardSize, opt_priority, opt_overwrite) {
|
|
135
136
|
const clientConfig =
|
|
136
137
|
eeArguments.extractFromFunction(Export.image.toAsset, arguments);
|
|
137
138
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -289,11 +290,13 @@ Export.table.toDrive = function(
|
|
|
289
290
|
* @param {string=} opt_assetId
|
|
290
291
|
* @param {number=} opt_maxVertices
|
|
291
292
|
* @param {number=} opt_priority
|
|
293
|
+
* @param {boolean=} opt_overwrite
|
|
292
294
|
* @return {!ExportTask}
|
|
293
295
|
* @export
|
|
294
296
|
*/
|
|
295
297
|
Export.table.toAsset = function(
|
|
296
|
-
collection, opt_description, opt_assetId, opt_maxVertices, opt_priority
|
|
298
|
+
collection, opt_description, opt_assetId, opt_maxVertices, opt_priority,
|
|
299
|
+
opt_overwrite) {
|
|
297
300
|
const clientConfig =
|
|
298
301
|
eeArguments.extractFromFunction(Export.table.toAsset, arguments);
|
|
299
302
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -628,6 +631,7 @@ Export.prepareDestination_ = function(taskConfig, destination) {
|
|
|
628
631
|
break;
|
|
629
632
|
case data.ExportDestination.ASSET:
|
|
630
633
|
taskConfig['assetId'] = taskConfig['assetId'] || '';
|
|
634
|
+
taskConfig['overwrite'] = taskConfig['overwrite'] || false;
|
|
631
635
|
break;
|
|
632
636
|
case data.ExportDestination.FEATURE_VIEW:
|
|
633
637
|
taskConfig['mapName'] = taskConfig['mapName'] || '';
|
package/src/data.js
CHANGED
|
@@ -3478,6 +3478,7 @@ ee.data.AbstractTaskConfig;
|
|
|
3478
3478
|
* pyramidingPolicy: (undefined|string),
|
|
3479
3479
|
* workloadTag: (undefined|string),
|
|
3480
3480
|
* priority: (undefined|number),
|
|
3481
|
+
* overwrite: (undefined|boolean),
|
|
3481
3482
|
* }}
|
|
3482
3483
|
*/
|
|
3483
3484
|
ee.data.ImageTaskConfigUnformatted;
|
|
@@ -3523,6 +3524,7 @@ ee.data.ImageTaskConfigUnformatted;
|
|
|
3523
3524
|
* pyramidingPolicy: (undefined|string),
|
|
3524
3525
|
* workloadTag: (undefined|string),
|
|
3525
3526
|
* priority: (undefined|number),
|
|
3527
|
+
* overwrite: (undefined|boolean),
|
|
3526
3528
|
* }}
|
|
3527
3529
|
*/
|
|
3528
3530
|
ee.data.ImageTaskConfig;
|
|
@@ -3661,6 +3663,7 @@ ee.data.BigQueryTaskConfig;
|
|
|
3661
3663
|
* maxVertices: (undefined|number),
|
|
3662
3664
|
* workloadTag: (undefined|string),
|
|
3663
3665
|
* priority: (undefined|number),
|
|
3666
|
+
* overwrite: (undefined|boolean),
|
|
3664
3667
|
* }}
|
|
3665
3668
|
*/
|
|
3666
3669
|
ee.data.TableTaskConfig;
|
package/src/encodable_batch.js
CHANGED
|
@@ -707,8 +707,10 @@ ee.rpc_convert_batch.buildDriveDestination_ = function(params) {
|
|
|
707
707
|
* @private
|
|
708
708
|
*/
|
|
709
709
|
ee.rpc_convert_batch.buildEarthEngineDestination_ = function(params) {
|
|
710
|
-
return new ee.api.EarthEngineDestination(
|
|
711
|
-
|
|
710
|
+
return new ee.api.EarthEngineDestination({
|
|
711
|
+
name: ee.rpc_convert.assetIdToAssetName(params['assetId']),
|
|
712
|
+
overwrite: Boolean(params['overwrite'])
|
|
713
|
+
});
|
|
712
714
|
};
|
|
713
715
|
|
|
714
716
|
|