@google/earthengine 0.1.371 → 0.1.374
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/.tmp/BUILD +46 -2
- package/.tmp/METADATA +10 -8
- package/.tmp/VERSION_BUILD +2 -2
- package/build/browser.js +72 -43
- package/build/ee_api_js.js +609 -607
- package/build/ee_api_js_debug.js +72 -43
- package/build/ee_api_js_npm.js +72 -43
- package/build/main.js +72 -43
- package/package.json +1 -1
- package/src/apiclient.js +8 -7
- package/src/data.js +1 -1
- package/src/imagecollection.js +21 -15
- package/src/terrain.js +0 -0
package/build/main.js
CHANGED
|
@@ -1301,6 +1301,8 @@ goog.setImportHandlerInternalDoNotCallOrElse = function(fn) {
|
|
|
1301
1301
|
goog.setUncompiledChunkIdHandlerInternalDoNotCallOrElse = function(fn) {
|
|
1302
1302
|
goog.uncompiledChunkIdHandler_ = fn;
|
|
1303
1303
|
};
|
|
1304
|
+
goog.maybeRequireFrameworkInternalOnlyDoNotCallOrElse = function(namespace) {
|
|
1305
|
+
};
|
|
1304
1306
|
goog.ModuleType = {ES6:"es6", GOOG:"goog"};
|
|
1305
1307
|
goog.moduleLoaderState_ = null;
|
|
1306
1308
|
goog.isInModuleLoader_ = function() {
|
|
@@ -6063,7 +6065,7 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
6063
6065
|
};
|
|
6064
6066
|
var module$contents$eeapiclient$domain_object_CopyValueGetter, module$contents$eeapiclient$domain_object_CopyValueSetter, module$contents$eeapiclient$domain_object_CopyConstructor, module$contents$eeapiclient$domain_object_CopyInstanciator;
|
|
6065
6067
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
6066
|
-
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$
|
|
6068
|
+
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$m192531680$0 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$0 = {mapMetadata:$jscomp$loop$m192531680$0.mapMetadata},
|
|
6067
6069
|
$jscomp$key$key = $jscomp$iter$19.next()) {
|
|
6068
6070
|
var key = $jscomp$key$key.value, value = valueGetter(key, source);
|
|
6069
6071
|
if (null != value) {
|
|
@@ -6076,11 +6078,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6076
6078
|
} else if (objects.hasOwnProperty(key)) {
|
|
6077
6079
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
6078
6080
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
6079
|
-
$jscomp$loop$
|
|
6081
|
+
$jscomp$loop$m192531680$0.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$0.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$0) {
|
|
6080
6082
|
return function(v) {
|
|
6081
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
6083
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6082
6084
|
};
|
|
6083
|
-
}($jscomp$loop$
|
|
6085
|
+
}($jscomp$loop$m192531680$0)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6084
6086
|
} else if (Array.isArray(value)) {
|
|
6085
6087
|
if (metadata.emptyArrayIsUnset && 0 === value.length) {
|
|
6086
6088
|
continue;
|
|
@@ -6126,39 +6128,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
6126
6128
|
if (!(module$contents$eeapiclient$domain_object_sameKeys(keys1, metadata2.keys || []) && module$contents$eeapiclient$domain_object_sameKeys(arrays1, arrays2) && module$contents$eeapiclient$domain_object_sameKeys(objects1, objects2) && module$contents$eeapiclient$domain_object_sameKeys(objectMaps1, objectMaps2))) {
|
|
6127
6129
|
return !1;
|
|
6128
6130
|
}
|
|
6129
|
-
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$
|
|
6131
|
+
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$m192531680$1 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$1 = {value2$jscomp$7:$jscomp$loop$m192531680$1.value2$jscomp$7, mapMetadata$jscomp$2:$jscomp$loop$m192531680$1.mapMetadata$jscomp$2}, $jscomp$key$key = $jscomp$iter$21.next()) {
|
|
6130
6132
|
var key = $jscomp$key$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
6131
6133
|
if (has1 !== has2) {
|
|
6132
6134
|
return !1;
|
|
6133
6135
|
}
|
|
6134
6136
|
if (has1) {
|
|
6135
6137
|
var value1 = serializable1.Serializable$get(key);
|
|
6136
|
-
$jscomp$loop$
|
|
6138
|
+
$jscomp$loop$m192531680$1.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
6137
6139
|
if (arrays1.hasOwnProperty(key)) {
|
|
6138
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6140
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !0)) {
|
|
6139
6141
|
return !1;
|
|
6140
6142
|
}
|
|
6141
6143
|
} else if (objects1.hasOwnProperty(key)) {
|
|
6142
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6144
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !0)) {
|
|
6143
6145
|
return !1;
|
|
6144
6146
|
}
|
|
6145
6147
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
6146
|
-
if ($jscomp$loop$
|
|
6147
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
6148
|
+
if ($jscomp$loop$m192531680$1.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2.isPropertyArray) {
|
|
6149
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$1.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$1) {
|
|
6148
6150
|
return function(v1, i) {
|
|
6149
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
6151
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$1.value2$jscomp$7[i], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2);
|
|
6150
6152
|
};
|
|
6151
|
-
}($jscomp$loop$
|
|
6153
|
+
}($jscomp$loop$m192531680$1))) {
|
|
6152
6154
|
return !1;
|
|
6153
6155
|
}
|
|
6154
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
6156
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, $jscomp$loop$m192531680$1.mapMetadata$jscomp$2)) {
|
|
6155
6157
|
return !1;
|
|
6156
6158
|
}
|
|
6157
6159
|
} else if (Array.isArray(value1)) {
|
|
6158
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6160
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !1)) {
|
|
6159
6161
|
return !1;
|
|
6160
6162
|
}
|
|
6161
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6163
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !1)) {
|
|
6162
6164
|
return !1;
|
|
6163
6165
|
}
|
|
6164
6166
|
}
|
|
@@ -6876,7 +6878,6 @@ goog.html.SafeUrl.fromTrustedResourceUrl = function(trustedResourceUrl) {
|
|
|
6876
6878
|
return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(trustedResourceUrl));
|
|
6877
6879
|
};
|
|
6878
6880
|
goog.html.SAFE_URL_PATTERN_ = /^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;
|
|
6879
|
-
goog.html.SafeUrl.SAFE_URL_PATTERN = goog.html.SAFE_URL_PATTERN_;
|
|
6880
6881
|
goog.html.SafeUrl.trySanitize = function(url) {
|
|
6881
6882
|
if (url instanceof goog.html.SafeUrl) {
|
|
6882
6883
|
return url;
|
|
@@ -9034,6 +9035,11 @@ module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum = {MA
|
|
|
9034
9035
|
return [module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum.PYRAMIDING_POLICY_UNSPECIFIED, module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum.MEAN, module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum.SAMPLE, module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum.MIN, module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum.MAX,
|
|
9035
9036
|
module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum.MODE, module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum.MEDIAN];
|
|
9036
9037
|
}};
|
|
9038
|
+
module$exports$eeapiclient$ee_api_client.IImportImageRequestModeEnum = function() {
|
|
9039
|
+
};
|
|
9040
|
+
module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum = {IMPORT_MODE_UNSPECIFIED:"IMPORT_MODE_UNSPECIFIED", INGEST:"INGEST", VIRTUAL:"VIRTUAL", values:function() {
|
|
9041
|
+
return [module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum.IMPORT_MODE_UNSPECIFIED, module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum.INGEST, module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum.VIRTUAL];
|
|
9042
|
+
}};
|
|
9037
9043
|
module$exports$eeapiclient$ee_api_client.IOperationMetadataStateEnum = function() {
|
|
9038
9044
|
};
|
|
9039
9045
|
module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum = {CANCELLED:"CANCELLED", CANCELLING:"CANCELLING", FAILED:"FAILED", PENDING:"PENDING", RUNNING:"RUNNING", STATE_UNSPECIFIED:"STATE_UNSPECIFIED", SUCCEEDED:"SUCCEEDED", values:function() {
|
|
@@ -10124,15 +10130,16 @@ module$exports$eeapiclient$ee_api_client.EarthEngineAsset = function(parameters)
|
|
|
10124
10130
|
this.Serializable$set("featureCount", null == parameters.featureCount ? null : parameters.featureCount);
|
|
10125
10131
|
this.Serializable$set("quota", null == parameters.quota ? null : parameters.quota);
|
|
10126
10132
|
this.Serializable$set("expression", null == parameters.expression ? null : parameters.expression);
|
|
10133
|
+
this.Serializable$set("tilesets", null == parameters.tilesets ? null : parameters.tilesets);
|
|
10127
10134
|
};
|
|
10128
10135
|
$jscomp.inherits(module$exports$eeapiclient$ee_api_client.EarthEngineAsset, module$exports$eeapiclient$domain_object.Serializable);
|
|
10129
10136
|
module$exports$eeapiclient$ee_api_client.EarthEngineAsset.prototype.getConstructor = function() {
|
|
10130
10137
|
return module$exports$eeapiclient$ee_api_client.EarthEngineAsset;
|
|
10131
10138
|
};
|
|
10132
10139
|
module$exports$eeapiclient$ee_api_client.EarthEngineAsset.prototype.getPartialClassMetadata = function() {
|
|
10133
|
-
return {arrays:{bands:module$exports$eeapiclient$ee_api_client.ImageBand}, enums:{type:module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum}, keys:"bands cloudStorageLocation endTime expression featureCount featureViewAssetLocation geometry id name properties quota sizeBytes startTime tableLocation tilestoreLocation type updateTime".split(" "),
|
|
10134
|
-
properties:{ctor:null, isPropertyArray:!1, isSerializable:!1, isValueArray:!1}}, objects:{cloudStorageLocation:module$exports$eeapiclient$ee_api_client.CloudStorageLocation, expression:module$exports$eeapiclient$ee_api_client.Expression, featureViewAssetLocation:module$exports$eeapiclient$ee_api_client.FeatureViewLocation,
|
|
10135
|
-
tableLocation:module$exports$eeapiclient$ee_api_client.TableLocation, tilestoreLocation:module$exports$eeapiclient$ee_api_client.TilestoreLocation}};
|
|
10140
|
+
return {arrays:{bands:module$exports$eeapiclient$ee_api_client.ImageBand, tilesets:module$exports$eeapiclient$ee_api_client.Tileset}, enums:{type:module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum}, keys:"bands cloudStorageLocation endTime expression featureCount featureViewAssetLocation geometry id name properties quota sizeBytes startTime tableLocation tilesets tilestoreLocation type updateTime".split(" "),
|
|
10141
|
+
objectMaps:{geometry:{ctor:null, isPropertyArray:!1, isSerializable:!1, isValueArray:!1}, properties:{ctor:null, isPropertyArray:!1, isSerializable:!1, isValueArray:!1}}, objects:{cloudStorageLocation:module$exports$eeapiclient$ee_api_client.CloudStorageLocation, expression:module$exports$eeapiclient$ee_api_client.Expression, featureViewAssetLocation:module$exports$eeapiclient$ee_api_client.FeatureViewLocation,
|
|
10142
|
+
quota:module$exports$eeapiclient$ee_api_client.FolderQuota, tableLocation:module$exports$eeapiclient$ee_api_client.TableLocation, tilestoreLocation:module$exports$eeapiclient$ee_api_client.TilestoreLocation}};
|
|
10136
10143
|
};
|
|
10137
10144
|
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.EarthEngineAsset.prototype, {bands:{configurable:!0, enumerable:!0, get:function() {
|
|
10138
10145
|
return this.Serializable$has("bands") ? this.Serializable$get("bands") : null;
|
|
@@ -10190,6 +10197,10 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
10190
10197
|
return this.Serializable$has("tableLocation") ? this.Serializable$get("tableLocation") : null;
|
|
10191
10198
|
}, set:function(value) {
|
|
10192
10199
|
this.Serializable$set("tableLocation", value);
|
|
10200
|
+
}}, tilesets:{configurable:!0, enumerable:!0, get:function() {
|
|
10201
|
+
return this.Serializable$has("tilesets") ? this.Serializable$get("tilesets") : null;
|
|
10202
|
+
}, set:function(value) {
|
|
10203
|
+
this.Serializable$set("tilesets", value);
|
|
10193
10204
|
}}, tilestoreLocation:{configurable:!0, enumerable:!0, get:function() {
|
|
10194
10205
|
return this.Serializable$has("tilestoreLocation") ? this.Serializable$get("tilestoreLocation") : null;
|
|
10195
10206
|
}, set:function(value) {
|
|
@@ -11301,13 +11312,15 @@ module$exports$eeapiclient$ee_api_client.ImageBand = function(parameters) {
|
|
|
11301
11312
|
this.Serializable$set("pyramidingPolicy", null == parameters.pyramidingPolicy ? null : parameters.pyramidingPolicy);
|
|
11302
11313
|
this.Serializable$set("tilesets", null == parameters.tilesets ? null : parameters.tilesets);
|
|
11303
11314
|
this.Serializable$set("missingData", null == parameters.missingData ? null : parameters.missingData);
|
|
11315
|
+
this.Serializable$set("tilesetId", null == parameters.tilesetId ? null : parameters.tilesetId);
|
|
11316
|
+
this.Serializable$set("tilesetBandIndex", null == parameters.tilesetBandIndex ? null : parameters.tilesetBandIndex);
|
|
11304
11317
|
};
|
|
11305
11318
|
$jscomp.inherits(module$exports$eeapiclient$ee_api_client.ImageBand, module$exports$eeapiclient$domain_object.Serializable);
|
|
11306
11319
|
module$exports$eeapiclient$ee_api_client.ImageBand.prototype.getConstructor = function() {
|
|
11307
11320
|
return module$exports$eeapiclient$ee_api_client.ImageBand;
|
|
11308
11321
|
};
|
|
11309
11322
|
module$exports$eeapiclient$ee_api_client.ImageBand.prototype.getPartialClassMetadata = function() {
|
|
11310
|
-
return {arrays:{tilesets:module$exports$eeapiclient$ee_api_client.TilestoreTileset}, enums:{pyramidingPolicy:module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum}, keys:"dataType grid id missingData pyramidingPolicy tilesets".split(" "), objects:{dataType:module$exports$eeapiclient$ee_api_client.PixelDataType, grid:module$exports$eeapiclient$ee_api_client.PixelGrid,
|
|
11323
|
+
return {arrays:{tilesets:module$exports$eeapiclient$ee_api_client.TilestoreTileset}, enums:{pyramidingPolicy:module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum}, keys:"dataType grid id missingData pyramidingPolicy tilesetBandIndex tilesetId tilesets".split(" "), objects:{dataType:module$exports$eeapiclient$ee_api_client.PixelDataType, grid:module$exports$eeapiclient$ee_api_client.PixelGrid,
|
|
11311
11324
|
missingData:module$exports$eeapiclient$ee_api_client.MissingData}};
|
|
11312
11325
|
};
|
|
11313
11326
|
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.ImageBand.prototype, {dataType:{configurable:!0, enumerable:!0, get:function() {
|
|
@@ -11330,6 +11343,14 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
11330
11343
|
return this.Serializable$has("pyramidingPolicy") ? this.Serializable$get("pyramidingPolicy") : null;
|
|
11331
11344
|
}, set:function(value) {
|
|
11332
11345
|
this.Serializable$set("pyramidingPolicy", value);
|
|
11346
|
+
}}, tilesetBandIndex:{configurable:!0, enumerable:!0, get:function() {
|
|
11347
|
+
return this.Serializable$has("tilesetBandIndex") ? this.Serializable$get("tilesetBandIndex") : null;
|
|
11348
|
+
}, set:function(value) {
|
|
11349
|
+
this.Serializable$set("tilesetBandIndex", value);
|
|
11350
|
+
}}, tilesetId:{configurable:!0, enumerable:!0, get:function() {
|
|
11351
|
+
return this.Serializable$has("tilesetId") ? this.Serializable$get("tilesetId") : null;
|
|
11352
|
+
}, set:function(value) {
|
|
11353
|
+
this.Serializable$set("tilesetId", value);
|
|
11333
11354
|
}}, tilesets:{configurable:!0, enumerable:!0, get:function() {
|
|
11334
11355
|
return this.Serializable$has("tilesets") ? this.Serializable$get("tilesets") : null;
|
|
11335
11356
|
}, set:function(value) {
|
|
@@ -11502,13 +11523,14 @@ module$exports$eeapiclient$ee_api_client.ImportImageRequest = function(parameter
|
|
|
11502
11523
|
this.Serializable$set("description", null == parameters.description ? null : parameters.description);
|
|
11503
11524
|
this.Serializable$set("overwrite", null == parameters.overwrite ? null : parameters.overwrite);
|
|
11504
11525
|
this.Serializable$set("requestId", null == parameters.requestId ? null : parameters.requestId);
|
|
11526
|
+
this.Serializable$set("mode", null == parameters.mode ? null : parameters.mode);
|
|
11505
11527
|
};
|
|
11506
11528
|
$jscomp.inherits(module$exports$eeapiclient$ee_api_client.ImportImageRequest, module$exports$eeapiclient$domain_object.Serializable);
|
|
11507
11529
|
module$exports$eeapiclient$ee_api_client.ImportImageRequest.prototype.getConstructor = function() {
|
|
11508
11530
|
return module$exports$eeapiclient$ee_api_client.ImportImageRequest;
|
|
11509
11531
|
};
|
|
11510
11532
|
module$exports$eeapiclient$ee_api_client.ImportImageRequest.prototype.getPartialClassMetadata = function() {
|
|
11511
|
-
return {keys:["description", "imageManifest", "overwrite", "requestId"], objects:{imageManifest:module$exports$eeapiclient$ee_api_client.ImageManifest}};
|
|
11533
|
+
return {enums:{mode:module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum}, keys:["description", "imageManifest", "mode", "overwrite", "requestId"], objects:{imageManifest:module$exports$eeapiclient$ee_api_client.ImageManifest}};
|
|
11512
11534
|
};
|
|
11513
11535
|
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.ImportImageRequest.prototype, {description:{configurable:!0, enumerable:!0, get:function() {
|
|
11514
11536
|
return this.Serializable$has("description") ? this.Serializable$get("description") : null;
|
|
@@ -11518,6 +11540,10 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
11518
11540
|
return this.Serializable$has("imageManifest") ? this.Serializable$get("imageManifest") : null;
|
|
11519
11541
|
}, set:function(value) {
|
|
11520
11542
|
this.Serializable$set("imageManifest", value);
|
|
11543
|
+
}}, mode:{configurable:!0, enumerable:!0, get:function() {
|
|
11544
|
+
return this.Serializable$has("mode") ? this.Serializable$get("mode") : null;
|
|
11545
|
+
}, set:function(value) {
|
|
11546
|
+
this.Serializable$set("mode", value);
|
|
11521
11547
|
}}, overwrite:{configurable:!0, enumerable:!0, get:function() {
|
|
11522
11548
|
return this.Serializable$has("overwrite") ? this.Serializable$get("overwrite") : null;
|
|
11523
11549
|
}, set:function(value) {
|
|
@@ -11527,6 +11553,9 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
11527
11553
|
}, set:function(value) {
|
|
11528
11554
|
this.Serializable$set("requestId", value);
|
|
11529
11555
|
}}});
|
|
11556
|
+
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.ImportImageRequest, {Mode:{configurable:!0, enumerable:!0, get:function() {
|
|
11557
|
+
return module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum;
|
|
11558
|
+
}}});
|
|
11530
11559
|
module$exports$eeapiclient$ee_api_client.ImportTableRequestParameters = function() {
|
|
11531
11560
|
};
|
|
11532
11561
|
module$exports$eeapiclient$ee_api_client.ImportTableRequest = function(parameters) {
|
|
@@ -17380,7 +17409,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
17380
17409
|
ee.apiclient = {};
|
|
17381
17410
|
var module$contents$ee$apiclient_apiclient = {};
|
|
17382
17411
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
17383
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
17412
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.374";
|
|
17384
17413
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
17385
17414
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
17386
17415
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -17581,13 +17610,13 @@ module$contents$ee$apiclient_apiclient.setAuthToken = function(clientId, tokenTy
|
|
|
17581
17610
|
var tokenObject = {token_type:tokenType, access_token:accessToken, state:scopes.join(" "), expires_in:expiresIn};
|
|
17582
17611
|
module$contents$ee$apiclient_apiclient.handleAuthResult_(void 0, void 0, tokenObject);
|
|
17583
17612
|
!1 === updateAuthLibrary ? callback && callback() : module$contents$ee$apiclient_apiclient.ensureAuthLibLoaded_(function() {
|
|
17584
|
-
goog.global.gapi.
|
|
17613
|
+
goog.global.gapi.client.setToken(tokenObject);
|
|
17585
17614
|
callback && callback();
|
|
17586
17615
|
});
|
|
17587
17616
|
};
|
|
17588
17617
|
module$contents$ee$apiclient_apiclient.refreshAuthToken = function(success, error, onImmediateFailed) {
|
|
17589
17618
|
if (module$contents$ee$apiclient_apiclient.isAuthTokenRefreshingEnabled_()) {
|
|
17590
|
-
var authArgs = {client_id:String(module$contents$ee$apiclient_apiclient.authClientId_), immediate:!0, scope:module$contents$ee$apiclient_apiclient.authScopes_.join(" ")};
|
|
17619
|
+
var authArgs = {client_id:String(module$contents$ee$apiclient_apiclient.authClientId_), immediate:!0, scope:module$contents$ee$apiclient_apiclient.authScopes_.join(" "), plugin_name:"earthengine"};
|
|
17591
17620
|
module$contents$ee$apiclient_apiclient.authTokenRefresher_(authArgs, function(result) {
|
|
17592
17621
|
if ("immediate_failed" == result.error && onImmediateFailed) {
|
|
17593
17622
|
onImmediateFailed();
|
|
@@ -17596,7 +17625,7 @@ module$contents$ee$apiclient_apiclient.refreshAuthToken = function(success, erro
|
|
|
17596
17625
|
try {
|
|
17597
17626
|
module$contents$ee$apiclient_apiclient.ensureAuthLibLoaded_(function() {
|
|
17598
17627
|
try {
|
|
17599
|
-
goog.global.gapi.
|
|
17628
|
+
goog.global.gapi.client.setToken(result), module$contents$ee$apiclient_apiclient.handleAuthResult_(success, error, result);
|
|
17600
17629
|
} catch (e) {
|
|
17601
17630
|
error(e.toString());
|
|
17602
17631
|
}
|
|
@@ -17671,8 +17700,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
17671
17700
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
17672
17701
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
17673
17702
|
method = method || "POST";
|
|
17674
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
17675
|
-
"0.1.
|
|
17703
|
+
var headers = {"Content-Type":contentType}, version = "0.1.374";
|
|
17704
|
+
"0.1.374" === version && (version = "latest");
|
|
17676
17705
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
17677
17706
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
17678
17707
|
if (null != authToken) {
|
|
@@ -17782,10 +17811,10 @@ module$contents$ee$apiclient_apiclient.handleResponse_ = function(status, getRes
|
|
|
17782
17811
|
module$contents$ee$apiclient_apiclient.ensureAuthLibLoaded_ = function(callback) {
|
|
17783
17812
|
var done = function() {
|
|
17784
17813
|
goog.global.gapi.config.update("client/cors", !0);
|
|
17785
|
-
module$contents$ee$apiclient_apiclient.authTokenRefresher_ || module$contents$ee$apiclient_apiclient.setAuthTokenRefresher(goog.global.gapi.
|
|
17814
|
+
module$contents$ee$apiclient_apiclient.authTokenRefresher_ || module$contents$ee$apiclient_apiclient.setAuthTokenRefresher(goog.global.gapi.auth2.authorize);
|
|
17786
17815
|
callback();
|
|
17787
17816
|
};
|
|
17788
|
-
if (goog.isObject(goog.global.gapi) && goog.isObject(goog.global.gapi.
|
|
17817
|
+
if (goog.isObject(goog.global.gapi) && goog.isObject(goog.global.gapi.auth2) && "function" === typeof goog.global.gapi.auth2.authorize) {
|
|
17789
17818
|
done();
|
|
17790
17819
|
} else {
|
|
17791
17820
|
for (var callbackName = Date.now().toString(36); callbackName in goog.global;) {
|
|
@@ -19355,7 +19384,7 @@ ee.data.authenticate = function(clientId, success, opt_error, opt_extraScopes, o
|
|
|
19355
19384
|
};
|
|
19356
19385
|
goog.exportSymbol("ee.data.authenticate", ee.data.authenticate);
|
|
19357
19386
|
ee.data.authenticateViaPopup = function(opt_success, opt_error) {
|
|
19358
|
-
goog.global.gapi.
|
|
19387
|
+
goog.global.gapi.auth2.authorize({client_id:module$contents$ee$apiclient_apiclient.getAuthClientId(), immediate:!1, scope:module$contents$ee$apiclient_apiclient.getAuthScopes().join(" ")}, goog.partial(module$contents$ee$apiclient_apiclient.handleAuthResult_, opt_success, opt_error));
|
|
19359
19388
|
};
|
|
19360
19389
|
goog.exportSymbol("ee.data.authenticateViaPopup", ee.data.authenticateViaPopup);
|
|
19361
19390
|
ee.data.authenticateViaPrivateKey = function(privateKey, opt_success, opt_error, opt_extraScopes, opt_suppressDefaultScopes) {
|
|
@@ -21772,9 +21801,9 @@ ee.ImageCollection.prototype.select = function(selectors, opt_names) {
|
|
|
21772
21801
|
};
|
|
21773
21802
|
goog.exportProperty(ee.ImageCollection.prototype, "select", ee.ImageCollection.prototype.select);
|
|
21774
21803
|
ee.ImageCollection.prototype.linkCollection = function(imageCollection, opt_linkedBands, opt_linkedProperties, opt_matchPropertyName) {
|
|
21775
|
-
var
|
|
21804
|
+
var args = ee.arguments.extractFromFunction(ee.ImageCollection.prototype.linkCollection, arguments);
|
|
21776
21805
|
return this.map(function(obj) {
|
|
21777
|
-
return ee.ApiFunction._call
|
|
21806
|
+
return ee.ApiFunction._call("Image.linkCollection", obj, args.imageCollection, args.linkedBands, args.linkedProperties, args.matchPropertyName);
|
|
21778
21807
|
});
|
|
21779
21808
|
};
|
|
21780
21809
|
goog.exportProperty(ee.ImageCollection.prototype, "linkCollection", ee.ImageCollection.prototype.linkCollection);
|
|
@@ -24307,8 +24336,8 @@ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePref
|
|
|
24307
24336
|
throw Error(message);
|
|
24308
24337
|
}
|
|
24309
24338
|
module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
24310
|
-
var $jscomp$templatelit$
|
|
24311
|
-
["\\0"]), $jscomp$templatelit$
|
|
24339
|
+
var $jscomp$templatelit$1274514361$0 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$1 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$1274514361$2 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$3 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$1274514361$4 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$5 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
24340
|
+
["\\0"]), $jscomp$templatelit$1274514361$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), module$contents$safevalues$internals$string_literal_module = module$contents$safevalues$internals$string_literal_module || {id:"third_party/javascript/safevalues/internals/string_literal.closure.js"};
|
|
24312
24341
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
24313
24342
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
24314
24343
|
throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################");
|
|
@@ -24322,14 +24351,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
24322
24351
|
return -1 === fn.toString().indexOf("`");
|
|
24323
24352
|
}
|
|
24324
24353
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24325
|
-
return tag($jscomp$templatelit$
|
|
24354
|
+
return tag($jscomp$templatelit$1274514361$0);
|
|
24326
24355
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24327
|
-
return tag($jscomp$templatelit$
|
|
24356
|
+
return tag($jscomp$templatelit$1274514361$1);
|
|
24328
24357
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24329
|
-
return tag($jscomp$templatelit$
|
|
24358
|
+
return tag($jscomp$templatelit$1274514361$2);
|
|
24330
24359
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24331
|
-
return tag($jscomp$templatelit$
|
|
24332
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
24360
|
+
return tag($jscomp$templatelit$1274514361$3);
|
|
24361
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$4) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$5) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$6) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$7);
|
|
24333
24362
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
24334
24363
|
return Array.isArray(templateObj) && Array.isArray(templateObj.raw) && templateObj.length === templateObj.raw.length && (module$contents$safevalues$internals$string_literal_isTranspiled || templateObj !== templateObj.raw) && (module$contents$safevalues$internals$string_literal_isTranspiled && !module$contents$safevalues$internals$string_literal_frozenTSA || module$contents$safevalues$internals$string_literal_checkFrozen(templateObj)) ?
|
|
24335
24364
|
!0 : !1;
|
|
@@ -24654,7 +24683,7 @@ function module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sani
|
|
|
24654
24683
|
}
|
|
24655
24684
|
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.isCustomElement = module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_isCustomElement;
|
|
24656
24685
|
var module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table = {}, module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_module = module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/sanitizer_table/default_sanitizer_table.closure.js"},
|
|
24657
|
-
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS = "ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER".split(" "),
|
|
24686
|
+
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS = "ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER ACRONYM BASEFONT BIG DIR HGROUP STRIKE TT".split(" "),
|
|
24658
24687
|
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES = [["A", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}]])], ["AREA", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}]])],
|
|
24659
24688
|
["LINK", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL, conditions:new Map([["rel", new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])], ["SOURCE", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])],
|
|
24660
24689
|
["IMG", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])], ["VIDEO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])], ["AUDIO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])]],
|
|
@@ -24792,7 +24821,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
24792
24821
|
return !0;
|
|
24793
24822
|
}
|
|
24794
24823
|
for (var $jscomp$iter$44 = $jscomp.makeIterator(conditions), $jscomp$key$ = $jscomp$iter$44.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$44.next()) {
|
|
24795
|
-
var $jscomp$destructuring$var54 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var54.next().value, expectedValues = $jscomp$destructuring$var54.next().value, $jscomp$optchain$
|
|
24824
|
+
var $jscomp$destructuring$var54 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var54.next().value, expectedValues = $jscomp$destructuring$var54.next().value, $jscomp$optchain$tmpm1803429925$0 = void 0, value = null == ($jscomp$optchain$tmpm1803429925$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1803429925$0.value;
|
|
24796
24825
|
if (value && !expectedValues.has(value)) {
|
|
24797
24826
|
return !1;
|
|
24798
24827
|
}
|
|
@@ -25284,12 +25313,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
25284
25313
|
}
|
|
25285
25314
|
try {
|
|
25286
25315
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
25287
|
-
} catch ($jscomp$unused$catch$
|
|
25316
|
+
} catch ($jscomp$unused$catch$442189172$0) {
|
|
25288
25317
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
25289
25318
|
}
|
|
25290
25319
|
try {
|
|
25291
25320
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
25292
|
-
} catch ($jscomp$unused$catch$
|
|
25321
|
+
} catch ($jscomp$unused$catch$442189172$1) {
|
|
25293
25322
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
25294
25323
|
}
|
|
25295
25324
|
return !1;
|
package/package.json
CHANGED
package/src/apiclient.js
CHANGED
|
@@ -25,7 +25,7 @@ const {PromiseRequestService} = goog.require('eeapiclient.promise_request_servic
|
|
|
25
25
|
/** @namespace */
|
|
26
26
|
const apiclient = {};
|
|
27
27
|
|
|
28
|
-
const API_CLIENT_VERSION = '0.1.
|
|
28
|
+
const API_CLIENT_VERSION = '0.1.374';
|
|
29
29
|
|
|
30
30
|
exports.VERSION = apiVersion.VERSION;
|
|
31
31
|
exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
|
|
@@ -533,7 +533,7 @@ apiclient.setAuthToken = function(
|
|
|
533
533
|
}
|
|
534
534
|
} else {
|
|
535
535
|
apiclient.ensureAuthLibLoaded_(function() {
|
|
536
|
-
goog.global['gapi']['
|
|
536
|
+
goog.global['gapi']['client']['setToken'](tokenObject);
|
|
537
537
|
if (callback) {
|
|
538
538
|
callback();
|
|
539
539
|
}
|
|
@@ -561,7 +561,8 @@ apiclient.refreshAuthToken = function(success, error, onImmediateFailed) {
|
|
|
561
561
|
const authArgs = {
|
|
562
562
|
'client_id': String(apiclient.authClientId_),
|
|
563
563
|
'immediate': true,
|
|
564
|
-
'scope': apiclient.authScopes_.join(' ')
|
|
564
|
+
'scope': apiclient.authScopes_.join(' '),
|
|
565
|
+
'plugin_name': 'earthengine',
|
|
565
566
|
};
|
|
566
567
|
|
|
567
568
|
// Start the authorization flow, first trying immediate mode, which tries to
|
|
@@ -575,7 +576,7 @@ apiclient.refreshAuthToken = function(success, error, onImmediateFailed) {
|
|
|
575
576
|
// Refresh the library auth token and handle error propagation.
|
|
576
577
|
apiclient.ensureAuthLibLoaded_(function() {
|
|
577
578
|
try {
|
|
578
|
-
goog.global['gapi']['
|
|
579
|
+
goog.global['gapi']['client']['setToken'](result);
|
|
579
580
|
apiclient.handleAuthResult_(success, error, result);
|
|
580
581
|
} catch (e) {
|
|
581
582
|
error(e.toString());
|
|
@@ -1128,13 +1129,13 @@ apiclient.ensureAuthLibLoaded_ = function(callback) {
|
|
|
1128
1129
|
// Speed up auth request by using CORS instead of an iframe.
|
|
1129
1130
|
goog.global['gapi']['config']['update']('client/cors', true);
|
|
1130
1131
|
if (!apiclient.authTokenRefresher_) {
|
|
1131
|
-
apiclient.setAuthTokenRefresher(goog.global['gapi']['
|
|
1132
|
+
apiclient.setAuthTokenRefresher(goog.global['gapi']['auth2']['authorize']);
|
|
1132
1133
|
}
|
|
1133
1134
|
callback();
|
|
1134
1135
|
};
|
|
1135
1136
|
if (goog.isObject(goog.global['gapi']) &&
|
|
1136
|
-
goog.isObject(goog.global['gapi']['
|
|
1137
|
-
typeof goog.global['gapi']['
|
|
1137
|
+
goog.isObject(goog.global['gapi']['auth2']) &&
|
|
1138
|
+
typeof goog.global['gapi']['auth2']['authorize'] === 'function') {
|
|
1138
1139
|
done();
|
|
1139
1140
|
} else {
|
|
1140
1141
|
// The library is not loaded; load it now.
|
package/src/data.js
CHANGED
|
@@ -194,7 +194,7 @@ ee.data.authenticate = function(
|
|
|
194
194
|
* @export
|
|
195
195
|
*/
|
|
196
196
|
ee.data.authenticateViaPopup = function(opt_success, opt_error) {
|
|
197
|
-
goog.global['gapi']['
|
|
197
|
+
goog.global['gapi']['auth2']['authorize'](
|
|
198
198
|
{
|
|
199
199
|
'client_id': ee.apiclient.getAuthClientId(),
|
|
200
200
|
'immediate': false,
|
package/src/imagecollection.js
CHANGED
|
@@ -328,30 +328,29 @@ ee.ImageCollection.prototype.select = function(selectors, opt_names) {
|
|
|
328
328
|
* Links images in this collection to matching images from `imageCollection`.
|
|
329
329
|
*
|
|
330
330
|
* For each source image in this collection, any specified bands or metadata
|
|
331
|
-
* will be added to the source image from the matching image
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
*
|
|
335
|
-
*
|
|
331
|
+
* will be added to the source image from the matching image found in
|
|
332
|
+
* `imageCollection`. If bands or metadata are already present, they will be
|
|
333
|
+
* overwritten. If matching images are not found, any new or updated bands will
|
|
334
|
+
* be fully masked and any new or updated metadata will be null. The output
|
|
335
|
+
* footprint will be the same as the source image footprint.
|
|
336
336
|
*
|
|
337
|
-
*
|
|
337
|
+
* Matches are determined if a source image and an image in `imageCollection`
|
|
338
338
|
* have a specific equivalent metadata property. If more than one collection
|
|
339
339
|
* image would match, the collection image selected is arbitrary. By default,
|
|
340
340
|
* images are matched on their 'system:index' metadata property.
|
|
341
341
|
*
|
|
342
|
-
* This linking function is a convenience method for adding bands to
|
|
343
|
-
*
|
|
342
|
+
* This linking function is a convenience method for adding bands to target
|
|
343
|
+
* images based on a specified shared metadata property and is intended to
|
|
344
344
|
* support linking collections that apply different processing/product
|
|
345
|
-
* generation to the same source imagery. For more expressive linking known
|
|
346
|
-
*
|
|
347
|
-
* https://developers.google.com/earth-engine/guides/joins_intro.
|
|
345
|
+
* generation to the same source imagery. For more expressive linking known as
|
|
346
|
+
* 'joining', see https://developers.google.com/earth-engine/guides/joins_intro.
|
|
348
347
|
*
|
|
349
348
|
* @param {!ee.ImageCollection} imageCollection The image collection searched to
|
|
350
349
|
* find matches from this collection.
|
|
351
350
|
* @param {?Array<string>=} opt_linkedBands Optional list of band names to add
|
|
352
|
-
* or update from
|
|
351
|
+
* or update from matching images.
|
|
353
352
|
* @param {?Array<string>=} opt_linkedProperties Optional list of metadata
|
|
354
|
-
* properties to add or update from
|
|
353
|
+
* properties to add or update from matching images.
|
|
355
354
|
* @param {string=} opt_matchPropertyName The metadata property name to use as a
|
|
356
355
|
* match criteria. Defaults to "system:index".
|
|
357
356
|
* @return {!ee.ImageCollection} The linked image collection.
|
|
@@ -360,11 +359,18 @@ ee.ImageCollection.prototype.select = function(selectors, opt_names) {
|
|
|
360
359
|
ee.ImageCollection.prototype.linkCollection = function(
|
|
361
360
|
imageCollection, opt_linkedBands, opt_linkedProperties,
|
|
362
361
|
opt_matchPropertyName) {
|
|
363
|
-
|
|
362
|
+
let args = ee.arguments.extractFromFunction(
|
|
363
|
+
ee.ImageCollection.prototype.linkCollection, arguments);
|
|
364
364
|
return /** @type {!ee.ImageCollection} */ (this.map(function(obj) {
|
|
365
365
|
let img = /** @type {!ee.Image} */ (obj);
|
|
366
366
|
img = /** @type {!ee.Image} */ (
|
|
367
|
-
ee.ApiFunction._call(
|
|
367
|
+
ee.ApiFunction._call(
|
|
368
|
+
'Image.linkCollection',
|
|
369
|
+
img,
|
|
370
|
+
/** @type {!ee.ImageCollection} */ (args['imageCollection']),
|
|
371
|
+
/** @type {?Array<string>} */ (args['linkedBands']),
|
|
372
|
+
/** @type {?Array<string>} */ (args['linkedProperties']),
|
|
373
|
+
/** @type {?string} */ (args['matchPropertyName'])));
|
|
368
374
|
return img;
|
|
369
375
|
}));
|
|
370
376
|
};
|
package/src/terrain.js
CHANGED
|
File without changes
|