@google/earthengine 0.1.395 → 0.1.396
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 +42 -28
- package/build/ee_api_js.js +147 -146
- package/build/ee_api_js_debug.js +20 -7
- package/build/ee_api_js_npm.js +42 -28
- package/build/main.js +42 -28
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/data.js +40 -7
- package/src/examples/Demos/Landsat8HarmonicModeling.js +3 -1
package/build/ee_api_js_debug.js
CHANGED
|
@@ -1378,7 +1378,6 @@ goog.LOAD_MODULE_USING_EVAL = !0;
|
|
|
1378
1378
|
goog.SEAL_MODULE_EXPORTS = goog.DEBUG;
|
|
1379
1379
|
goog.loadedModules_ = {};
|
|
1380
1380
|
goog.DEPENDENCIES_ENABLED = !1;
|
|
1381
|
-
goog.TRANSPILE = "detect";
|
|
1382
1381
|
goog.ASSUME_ES_MODULES_TRANSPILED = !1;
|
|
1383
1382
|
goog.TRUSTED_TYPES_POLICY_NAME = "goog";
|
|
1384
1383
|
goog.hasBadLetScoping = null;
|
|
@@ -19089,7 +19088,7 @@ var $jscomp$templatelit$294235699$96 = $jscomp.createTemplateTagFirstArg(["https
|
|
|
19089
19088
|
ee.apiclient = {};
|
|
19090
19089
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19091
19090
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19092
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
19091
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.396";
|
|
19093
19092
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19094
19093
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19095
19094
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19379,8 +19378,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19379
19378
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19380
19379
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19381
19380
|
method = method || "POST";
|
|
19382
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
19383
|
-
"0.1.
|
|
19381
|
+
var headers = {"Content-Type":contentType}, version = "0.1.396";
|
|
19382
|
+
"0.1.396" === version && (version = "latest");
|
|
19384
19383
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19385
19384
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
19386
19385
|
if (null != authToken) {
|
|
@@ -21534,12 +21533,26 @@ goog.exportSymbol("ee.data.getInfo", ee.data.getInfo);
|
|
|
21534
21533
|
ee.data.makeListAssetsCall_ = function(parent, opt_params, opt_callback, opt_postProcessing) {
|
|
21535
21534
|
opt_params = void 0 === opt_params ? {} : opt_params;
|
|
21536
21535
|
opt_postProcessing = void 0 === opt_postProcessing ? goog.functions.identity : opt_postProcessing;
|
|
21537
|
-
var
|
|
21536
|
+
var params = Object.assign({}, opt_params), call = new module$contents$ee$apiclient_Call(opt_callback), isProjectAssetRoot = ee.rpc_convert.CLOUD_ASSET_ROOT_RE.test(parent), methodRoot = isProjectAssetRoot ? call.projects() : call.assets();
|
|
21538
21537
|
parent = isProjectAssetRoot ? ee.rpc_convert.projectParentFromPath(parent) : ee.rpc_convert.assetIdToAssetName(parent);
|
|
21539
|
-
|
|
21538
|
+
var getNextPageIfNeeded = function(response) {
|
|
21539
|
+
if (null != params.pageSize || !response.nextPageToken) {
|
|
21540
|
+
return response;
|
|
21541
|
+
}
|
|
21542
|
+
var previousAssets = response.assets || [];
|
|
21543
|
+
params.pageToken = response.nextPageToken;
|
|
21544
|
+
var nextResponse = methodRoot.listAssets(parent, params).then(function(response) {
|
|
21545
|
+
response.assets = previousAssets.concat(response.assets);
|
|
21546
|
+
return response;
|
|
21547
|
+
}).then(getNextPageIfNeeded);
|
|
21548
|
+
return opt_callback ? nextResponse : call.handle(nextResponse);
|
|
21549
|
+
};
|
|
21550
|
+
return call.handle(methodRoot.listAssets(parent, params).then(getNextPageIfNeeded).then(opt_postProcessing));
|
|
21540
21551
|
};
|
|
21541
21552
|
ee.data.getList = function(params, opt_callback) {
|
|
21542
|
-
|
|
21553
|
+
var convertedParams = ee.rpc_convert.getListToListAssets(params);
|
|
21554
|
+
convertedParams.pageSize || (convertedParams.pageSize = 1E3);
|
|
21555
|
+
return ee.data.makeListAssetsCall_(params.id, convertedParams, opt_callback, function(r) {
|
|
21543
21556
|
return null == r ? null : ee.rpc_convert.listAssetsToGetList(r);
|
|
21544
21557
|
});
|
|
21545
21558
|
};
|
package/build/ee_api_js_npm.js
CHANGED
|
@@ -1378,7 +1378,6 @@ goog.LOAD_MODULE_USING_EVAL = !0;
|
|
|
1378
1378
|
goog.SEAL_MODULE_EXPORTS = goog.DEBUG;
|
|
1379
1379
|
goog.loadedModules_ = {};
|
|
1380
1380
|
goog.DEPENDENCIES_ENABLED = !1;
|
|
1381
|
-
goog.TRANSPILE = "detect";
|
|
1382
1381
|
goog.ASSUME_ES_MODULES_TRANSPILED = !1;
|
|
1383
1382
|
goog.TRUSTED_TYPES_POLICY_NAME = "goog";
|
|
1384
1383
|
goog.hasBadLetScoping = null;
|
|
@@ -19089,7 +19088,7 @@ var $jscomp$templatelit$294235699$96 = $jscomp.createTemplateTagFirstArg(["https
|
|
|
19089
19088
|
ee.apiclient = {};
|
|
19090
19089
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19091
19090
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19092
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
19091
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.396";
|
|
19093
19092
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19094
19093
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19095
19094
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19379,8 +19378,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19379
19378
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19380
19379
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19381
19380
|
method = method || "POST";
|
|
19382
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
19383
|
-
"0.1.
|
|
19381
|
+
var headers = {"Content-Type":contentType}, version = "0.1.396";
|
|
19382
|
+
"0.1.396" === version && (version = "latest");
|
|
19384
19383
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19385
19384
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
19386
19385
|
if (null != authToken) {
|
|
@@ -21534,12 +21533,26 @@ goog.exportSymbol("ee.data.getInfo", ee.data.getInfo);
|
|
|
21534
21533
|
ee.data.makeListAssetsCall_ = function(parent, opt_params, opt_callback, opt_postProcessing) {
|
|
21535
21534
|
opt_params = void 0 === opt_params ? {} : opt_params;
|
|
21536
21535
|
opt_postProcessing = void 0 === opt_postProcessing ? goog.functions.identity : opt_postProcessing;
|
|
21537
|
-
var
|
|
21536
|
+
var params = Object.assign({}, opt_params), call = new module$contents$ee$apiclient_Call(opt_callback), isProjectAssetRoot = ee.rpc_convert.CLOUD_ASSET_ROOT_RE.test(parent), methodRoot = isProjectAssetRoot ? call.projects() : call.assets();
|
|
21538
21537
|
parent = isProjectAssetRoot ? ee.rpc_convert.projectParentFromPath(parent) : ee.rpc_convert.assetIdToAssetName(parent);
|
|
21539
|
-
|
|
21538
|
+
var getNextPageIfNeeded = function(response) {
|
|
21539
|
+
if (null != params.pageSize || !response.nextPageToken) {
|
|
21540
|
+
return response;
|
|
21541
|
+
}
|
|
21542
|
+
var previousAssets = response.assets || [];
|
|
21543
|
+
params.pageToken = response.nextPageToken;
|
|
21544
|
+
var nextResponse = methodRoot.listAssets(parent, params).then(function(response) {
|
|
21545
|
+
response.assets = previousAssets.concat(response.assets);
|
|
21546
|
+
return response;
|
|
21547
|
+
}).then(getNextPageIfNeeded);
|
|
21548
|
+
return opt_callback ? nextResponse : call.handle(nextResponse);
|
|
21549
|
+
};
|
|
21550
|
+
return call.handle(methodRoot.listAssets(parent, params).then(getNextPageIfNeeded).then(opt_postProcessing));
|
|
21540
21551
|
};
|
|
21541
21552
|
ee.data.getList = function(params, opt_callback) {
|
|
21542
|
-
|
|
21553
|
+
var convertedParams = ee.rpc_convert.getListToListAssets(params);
|
|
21554
|
+
convertedParams.pageSize || (convertedParams.pageSize = 1E3);
|
|
21555
|
+
return ee.data.makeListAssetsCall_(params.id, convertedParams, opt_callback, function(r) {
|
|
21543
21556
|
return null == r ? null : ee.rpc_convert.listAssetsToGetList(r);
|
|
21544
21557
|
});
|
|
21545
21558
|
};
|
|
@@ -26932,28 +26945,29 @@ ee.data.Profiler.Format.prototype.toString = function() {
|
|
|
26932
26945
|
ee.data.Profiler.Format.TEXT = new ee.data.Profiler.Format("text");
|
|
26933
26946
|
ee.data.Profiler.Format.JSON = new ee.data.Profiler.Format("json");
|
|
26934
26947
|
(function() {
|
|
26935
|
-
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction.
|
|
26936
|
-
orderedParamLists = [["name", "namedArgs"], ["name"
|
|
26948
|
+
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction._call ee.ApiFunction.lookup ee.batch.Export.image.toDrive ee.batch.Export.classifier.toAsset ee.batch.Export.table.toCloudStorage ee.batch.Export.table.toAsset ee.batch.Export.image.toAsset ee.batch.Export.map.toCloudStorage ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.Collection.prototype.filterDate ee.Collection.prototype.map ee.Collection.prototype.iterate ee.Collection.prototype.sort ee.Collection.prototype.filter ee.Collection.prototype.limit ee.Collection.prototype.filterBounds ee.Collection.prototype.filterMetadata ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.getInfo ee.data.startIngestion ee.data.createFolder ee.data.getFilmstripThumbId ee.data.startProcessing ee.data.setAssetAcl ee.data.updateTask ee.data.listAssets ee.data.makeThumbUrl ee.data.renameAsset ee.data.authenticateViaOauth ee.data.getMapId ee.data.setAssetProperties ee.data.getTaskList ee.data.copyAsset ee.data.authenticate ee.data.listBuckets ee.data.getTableDownloadId ee.data.getTileUrl ee.data.startTableIngestion ee.data.deleteAsset ee.data.getAssetRootQuota ee.data.getTaskListWithLimit ee.data.makeTableDownloadUrl ee.data.listOperations ee.data.listImages ee.data.getAssetAcl ee.data.getWorkloadTag ee.data.getDownloadId ee.data.cancelOperation ee.data.makeDownloadUrl ee.data.authenticateViaPopup ee.data.getFeatureViewTilesKey ee.data.listFeatures ee.data.getAsset ee.data.getAssetRoots ee.data.setWorkloadTag ee.data.createAssetHome ee.data.getOperation ee.data.getInfo ee.data.authenticateViaPrivateKey ee.data.newTaskId ee.data.createAsset ee.data.computeValue ee.data.setDefaultWorkloadTag ee.data.resetWorkloadTag ee.data.cancelTask ee.data.getThumbId ee.data.getVideoThumbId ee.data.updateAsset ee.data.getList ee.data.getTaskStatus ee.Date ee.Deserializer.fromJSON ee.Deserializer.decodeCloudApi ee.Deserializer.fromCloudApiJSON ee.Deserializer.decode ee.Dictionary ee.initialize ee.Algorithms ee.InitState ee.apply ee.reset ee.TILE_SIZE ee.call ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.Feature.prototype.getMap ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMap ee.FeatureCollection ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.select ee.Filter ee.Filter.eq ee.Filter.and ee.Filter.inList ee.Filter.gt ee.Filter.or ee.Filter.lt ee.Filter.prototype.not ee.Filter.neq ee.Filter.lte ee.Filter.metadata ee.Filter.gte ee.Filter.bounds ee.Filter.date ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.prototype.toGeoJSONString ee.Geometry.BBox ee.Geometry.MultiPoint ee.Geometry.LineString ee.Geometry ee.Geometry.prototype.serialize ee.Geometry.Rectangle ee.Geometry.MultiPolygon ee.Geometry.Polygon ee.Geometry.Point ee.Geometry.MultiLineString ee.Geometry.prototype.toGeoJSON ee.Geometry.LinearRing ee.Image.prototype.getInfo ee.Image.prototype.getMapId ee.Image.prototype.getMap ee.Image.prototype.getDownloadURL ee.Image ee.Image.prototype.getThumbId ee.Image.rgb ee.Image.cat ee.Image.prototype.rename ee.Image.prototype.select ee.Image.prototype.expression ee.Image.prototype.clip ee.Image.prototype.getThumbURL ee.ImageCollection ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getMapId ee.List ee.Number ee.Serializer.toReadableJSON ee.Serializer.toReadableCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encode ee.Serializer.toJSON ee.Serializer.toCloudApiJSON ee.Serializer.encodeCloudApi ee.String ee.Terrain".split(" "),
|
|
26949
|
+
orderedParamLists = [["name", "namedArgs"], ["name", "var_args"], ["name"], "image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), ["classifier", "opt_description", "opt_assetId", "opt_priority"], "collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),
|
|
26950
|
+
["collection", "opt_description", "opt_assetId", "opt_maxVertices", "opt_priority"], "image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".split(" "), "image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
|
|
26937
26951
|
"collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "),
|
|
26938
|
-
"collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "
|
|
26939
|
-
"
|
|
26940
|
-
"
|
|
26941
|
-
["
|
|
26942
|
-
["
|
|
26943
|
-
["
|
|
26944
|
-
|
|
26945
|
-
"
|
|
26946
|
-
"
|
|
26947
|
-
|
|
26948
|
-
[ee.ApiFunction._apply, ee.ApiFunction.
|
|
26949
|
-
module$contents$ee$batch_Export.
|
|
26950
|
-
ee.ComputedObject.prototype.
|
|
26951
|
-
ee.data.
|
|
26952
|
-
ee.data.
|
|
26953
|
-
ee.call, ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.Feature.prototype.getMap, ee.FeatureCollection.prototype.
|
|
26954
|
-
ee.Filter, ee.Filter.
|
|
26955
|
-
ee.Image.prototype.
|
|
26956
|
-
ee.ImageCollection.prototype.
|
|
26952
|
+
"collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), ["start", "opt_end"], ["algorithm",
|
|
26953
|
+
"opt_dropNulls"], ["algorithm", "opt_first"], ["property", "opt_ascending"], ["filter"], ["max", "opt_property", "opt_ascending"], ["geometry"], ["name", "operator", "value"], ["callback"], ["func", "var_args"], ["legacy"], ["opt_callback"], ["taskId", "request", "opt_callback"], ["path", "opt_force", "opt_callback"], ["params", "opt_callback"], ["taskId", "params", "opt_callback"], ["assetId", "aclUpdate", "opt_callback"], ["taskId", "action", "opt_callback"], ["parent", "opt_params", "opt_callback"],
|
|
26954
|
+
["id"], ["sourceId", "destinationId", "opt_callback"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "), ["params", "opt_callback"], ["assetId", "properties", "opt_callback"], ["opt_callback"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["project", "opt_callback"], ["params", "opt_callback"], ["id", "x", "y", "z"], ["taskId", "request", "opt_callback"],
|
|
26955
|
+
["assetId", "opt_callback"], ["rootId", "opt_callback"], ["opt_limit", "opt_callback"], ["id"], ["opt_limit", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["assetId", "opt_callback"], [], ["params", "opt_callback"], ["operationName", "opt_callback"], ["id"], ["opt_success", "opt_error"], ["params", "opt_callback"], ["asset", "params", "opt_callback"], ["id", "opt_callback"], ["opt_callback"], ["tag"], ["requestedId", "opt_callback"], ["operationName", "opt_callback"], ["id", "opt_callback"],
|
|
26956
|
+
["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"], ["opt_count", "opt_callback"], ["value", "opt_path", "opt_force", "opt_properties", "opt_callback"], ["obj", "opt_callback"], ["tag"], ["opt_resetDefault"], ["taskId", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"], ["params", "opt_callback"], ["taskId", "opt_callback"], ["date", "opt_tz"], ["json"], ["json"], ["json"], ["json"],
|
|
26957
|
+
["opt_dict"], "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "), [], [], ["func", "namedArgs"], [], [], ["func", "var_args"], ["var_args"], [], ["geometry", "opt_properties"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["opt_visParams", "opt_callback"], ["args", "opt_column"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["propertySelectors",
|
|
26958
|
+
"opt_newProperties", "opt_retainGeometry"], ["opt_filter"], ["name", "value"], ["var_args"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["name", "value"], ["var_args"], ["name", "value"], [], ["name", "value"], ["name", "value"], ["name", "operator", "value"], ["name", "value"], ["geometry", "opt_errorMargin"], ["start", "opt_end"], ["namedArgs"], ["var_args"], [], ["west", "south", "east", "north"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"],
|
|
26959
|
+
["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["legacy"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["params",
|
|
26960
|
+
"opt_callback"], ["opt_args"], ["params", "opt_callback"], ["r", "g", "b"], ["var_args"], ["var_args"], ["var_args"], ["expression", "opt_map"], ["geometry"], ["params", "opt_callback"], ["args"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties", "opt_matchPropertyName"], ["params", "opt_callback"], ["opt_callback"], ["selectors", "opt_names"], [], ["opt_visParams", "opt_callback"], ["list"], ["number"], ["obj"], ["obj"],
|
|
26961
|
+
["obj"], ["obj", "opt_isCompound"], ["obj"], ["obj"], ["obj"], ["string"], []];
|
|
26962
|
+
[ee.ApiFunction._apply, ee.ApiFunction._call, ee.ApiFunction.lookup, module$contents$ee$batch_Export.image.toDrive, module$contents$ee$batch_Export.classifier.toAsset, module$contents$ee$batch_Export.table.toCloudStorage, module$contents$ee$batch_Export.table.toAsset, module$contents$ee$batch_Export.image.toAsset, module$contents$ee$batch_Export.map.toCloudStorage, module$contents$ee$batch_Export.videoMap.toCloudStorage, module$contents$ee$batch_Export.table.toBigQuery, module$contents$ee$batch_Export.image.toCloudStorage,
|
|
26963
|
+
module$contents$ee$batch_Export.video.toCloudStorage, module$contents$ee$batch_Export.table.toFeatureView, module$contents$ee$batch_Export.video.toDrive, module$contents$ee$batch_Export.table.toDrive, ee.Collection.prototype.filterDate, ee.Collection.prototype.map, ee.Collection.prototype.iterate, ee.Collection.prototype.sort, ee.Collection.prototype.filter, ee.Collection.prototype.limit, ee.Collection.prototype.filterBounds, ee.Collection.prototype.filterMetadata, ee.ComputedObject.prototype.evaluate,
|
|
26964
|
+
ee.ComputedObject.prototype.aside, ee.ComputedObject.prototype.serialize, ee.ComputedObject.prototype.getInfo, ee.data.startIngestion, ee.data.createFolder, ee.data.getFilmstripThumbId, ee.data.startProcessing, ee.data.setAssetAcl, ee.data.updateTask, ee.data.listAssets, ee.data.makeThumbUrl, ee.data.renameAsset, ee.data.authenticateViaOauth, ee.data.getMapId, ee.data.setAssetProperties, ee.data.getTaskList, ee.data.copyAsset, ee.data.authenticate, ee.data.listBuckets, ee.data.getTableDownloadId,
|
|
26965
|
+
ee.data.getTileUrl, ee.data.startTableIngestion, ee.data.deleteAsset, ee.data.getAssetRootQuota, ee.data.getTaskListWithLimit, ee.data.makeTableDownloadUrl, ee.data.listOperations, ee.data.listImages, ee.data.getAssetAcl, ee.data.getWorkloadTag, ee.data.getDownloadId, ee.data.cancelOperation, ee.data.makeDownloadUrl, ee.data.authenticateViaPopup, ee.data.getFeatureViewTilesKey, ee.data.listFeatures, ee.data.getAsset, ee.data.getAssetRoots, ee.data.setWorkloadTag, ee.data.createAssetHome, ee.data.getOperation,
|
|
26966
|
+
ee.data.getInfo, ee.data.authenticateViaPrivateKey, ee.data.newTaskId, ee.data.createAsset, ee.data.computeValue, ee.data.setDefaultWorkloadTag, ee.data.resetWorkloadTag, ee.data.cancelTask, ee.data.getThumbId, ee.data.getVideoThumbId, ee.data.updateAsset, ee.data.getList, ee.data.getTaskStatus, ee.Date, ee.Deserializer.fromJSON, ee.Deserializer.decodeCloudApi, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.decode, ee.Dictionary, ee.initialize, ee.Algorithms, ee.InitState, ee.apply, ee.reset,
|
|
26967
|
+
ee.TILE_SIZE, ee.call, ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.Feature.prototype.getMap, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection.prototype.getMapId, ee.FeatureCollection.prototype.select, ee.Filter, ee.Filter.eq, ee.Filter.and, ee.Filter.inList, ee.Filter.gt, ee.Filter.or, ee.Filter.lt,
|
|
26968
|
+
ee.Filter.prototype.not, ee.Filter.neq, ee.Filter.lte, ee.Filter.metadata, ee.Filter.gte, ee.Filter.bounds, ee.Filter.date, ee.Function.prototype.apply, ee.Function.prototype.call, ee.Geometry.prototype.toGeoJSONString, ee.Geometry.BBox, ee.Geometry.MultiPoint, ee.Geometry.LineString, ee.Geometry, ee.Geometry.prototype.serialize, ee.Geometry.Rectangle, ee.Geometry.MultiPolygon, ee.Geometry.Polygon, ee.Geometry.Point, ee.Geometry.MultiLineString, ee.Geometry.prototype.toGeoJSON, ee.Geometry.LinearRing,
|
|
26969
|
+
ee.Image.prototype.getInfo, ee.Image.prototype.getMapId, ee.Image.prototype.getMap, ee.Image.prototype.getDownloadURL, ee.Image, ee.Image.prototype.getThumbId, ee.Image.rgb, ee.Image.cat, ee.Image.prototype.rename, ee.Image.prototype.select, ee.Image.prototype.expression, ee.Image.prototype.clip, ee.Image.prototype.getThumbURL, ee.ImageCollection, ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.linkCollection, ee.ImageCollection.prototype.getVideoThumbURL,
|
|
26970
|
+
ee.ImageCollection.prototype.getInfo, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.first, ee.ImageCollection.prototype.getMapId, ee.List, ee.Number, ee.Serializer.toReadableJSON, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.encode, ee.Serializer.toJSON, ee.Serializer.toCloudApiJSON, ee.Serializer.encodeCloudApi, ee.String, ee.Terrain].forEach(function(fn, i) {
|
|
26957
26971
|
fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
|
|
26958
26972
|
});
|
|
26959
26973
|
goog.global.EXPORTED_FN_INFO = exportedFnInfo;
|
package/build/main.js
CHANGED
|
@@ -1380,7 +1380,6 @@ goog.LOAD_MODULE_USING_EVAL = !0;
|
|
|
1380
1380
|
goog.SEAL_MODULE_EXPORTS = goog.DEBUG;
|
|
1381
1381
|
goog.loadedModules_ = {};
|
|
1382
1382
|
goog.DEPENDENCIES_ENABLED = !1;
|
|
1383
|
-
goog.TRANSPILE = "detect";
|
|
1384
1383
|
goog.ASSUME_ES_MODULES_TRANSPILED = !1;
|
|
1385
1384
|
goog.TRUSTED_TYPES_POLICY_NAME = "goog";
|
|
1386
1385
|
goog.hasBadLetScoping = null;
|
|
@@ -19091,7 +19090,7 @@ var $jscomp$templatelit$294235699$96 = $jscomp.createTemplateTagFirstArg(["https
|
|
|
19091
19090
|
ee.apiclient = {};
|
|
19092
19091
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19093
19092
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19094
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
19093
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.396";
|
|
19095
19094
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19096
19095
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19097
19096
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19381,8 +19380,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19381
19380
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19382
19381
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19383
19382
|
method = method || "POST";
|
|
19384
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
19385
|
-
"0.1.
|
|
19383
|
+
var headers = {"Content-Type":contentType}, version = "0.1.396";
|
|
19384
|
+
"0.1.396" === version && (version = "latest");
|
|
19386
19385
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19387
19386
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
19388
19387
|
if (null != authToken) {
|
|
@@ -21536,12 +21535,26 @@ goog.exportSymbol("ee.data.getInfo", ee.data.getInfo);
|
|
|
21536
21535
|
ee.data.makeListAssetsCall_ = function(parent, opt_params, opt_callback, opt_postProcessing) {
|
|
21537
21536
|
opt_params = void 0 === opt_params ? {} : opt_params;
|
|
21538
21537
|
opt_postProcessing = void 0 === opt_postProcessing ? goog.functions.identity : opt_postProcessing;
|
|
21539
|
-
var
|
|
21538
|
+
var params = Object.assign({}, opt_params), call = new module$contents$ee$apiclient_Call(opt_callback), isProjectAssetRoot = ee.rpc_convert.CLOUD_ASSET_ROOT_RE.test(parent), methodRoot = isProjectAssetRoot ? call.projects() : call.assets();
|
|
21540
21539
|
parent = isProjectAssetRoot ? ee.rpc_convert.projectParentFromPath(parent) : ee.rpc_convert.assetIdToAssetName(parent);
|
|
21541
|
-
|
|
21540
|
+
var getNextPageIfNeeded = function(response) {
|
|
21541
|
+
if (null != params.pageSize || !response.nextPageToken) {
|
|
21542
|
+
return response;
|
|
21543
|
+
}
|
|
21544
|
+
var previousAssets = response.assets || [];
|
|
21545
|
+
params.pageToken = response.nextPageToken;
|
|
21546
|
+
var nextResponse = methodRoot.listAssets(parent, params).then(function(response) {
|
|
21547
|
+
response.assets = previousAssets.concat(response.assets);
|
|
21548
|
+
return response;
|
|
21549
|
+
}).then(getNextPageIfNeeded);
|
|
21550
|
+
return opt_callback ? nextResponse : call.handle(nextResponse);
|
|
21551
|
+
};
|
|
21552
|
+
return call.handle(methodRoot.listAssets(parent, params).then(getNextPageIfNeeded).then(opt_postProcessing));
|
|
21542
21553
|
};
|
|
21543
21554
|
ee.data.getList = function(params, opt_callback) {
|
|
21544
|
-
|
|
21555
|
+
var convertedParams = ee.rpc_convert.getListToListAssets(params);
|
|
21556
|
+
convertedParams.pageSize || (convertedParams.pageSize = 1E3);
|
|
21557
|
+
return ee.data.makeListAssetsCall_(params.id, convertedParams, opt_callback, function(r) {
|
|
21545
21558
|
return null == r ? null : ee.rpc_convert.listAssetsToGetList(r);
|
|
21546
21559
|
});
|
|
21547
21560
|
};
|
|
@@ -26934,28 +26947,29 @@ ee.data.Profiler.Format.prototype.toString = function() {
|
|
|
26934
26947
|
ee.data.Profiler.Format.TEXT = new ee.data.Profiler.Format("text");
|
|
26935
26948
|
ee.data.Profiler.Format.JSON = new ee.data.Profiler.Format("json");
|
|
26936
26949
|
(function() {
|
|
26937
|
-
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction.
|
|
26938
|
-
orderedParamLists = [["name", "namedArgs"], ["name"
|
|
26950
|
+
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction._call ee.ApiFunction.lookup ee.batch.Export.image.toDrive ee.batch.Export.classifier.toAsset ee.batch.Export.table.toCloudStorage ee.batch.Export.table.toAsset ee.batch.Export.image.toAsset ee.batch.Export.map.toCloudStorage ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.Collection.prototype.filterDate ee.Collection.prototype.map ee.Collection.prototype.iterate ee.Collection.prototype.sort ee.Collection.prototype.filter ee.Collection.prototype.limit ee.Collection.prototype.filterBounds ee.Collection.prototype.filterMetadata ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.getInfo ee.data.startIngestion ee.data.createFolder ee.data.getFilmstripThumbId ee.data.startProcessing ee.data.setAssetAcl ee.data.updateTask ee.data.listAssets ee.data.makeThumbUrl ee.data.renameAsset ee.data.authenticateViaOauth ee.data.getMapId ee.data.setAssetProperties ee.data.getTaskList ee.data.copyAsset ee.data.authenticate ee.data.listBuckets ee.data.getTableDownloadId ee.data.getTileUrl ee.data.startTableIngestion ee.data.deleteAsset ee.data.getAssetRootQuota ee.data.getTaskListWithLimit ee.data.makeTableDownloadUrl ee.data.listOperations ee.data.listImages ee.data.getAssetAcl ee.data.getWorkloadTag ee.data.getDownloadId ee.data.cancelOperation ee.data.makeDownloadUrl ee.data.authenticateViaPopup ee.data.getFeatureViewTilesKey ee.data.listFeatures ee.data.getAsset ee.data.getAssetRoots ee.data.setWorkloadTag ee.data.createAssetHome ee.data.getOperation ee.data.getInfo ee.data.authenticateViaPrivateKey ee.data.newTaskId ee.data.createAsset ee.data.computeValue ee.data.setDefaultWorkloadTag ee.data.resetWorkloadTag ee.data.cancelTask ee.data.getThumbId ee.data.getVideoThumbId ee.data.updateAsset ee.data.getList ee.data.getTaskStatus ee.Date ee.Deserializer.fromJSON ee.Deserializer.decodeCloudApi ee.Deserializer.fromCloudApiJSON ee.Deserializer.decode ee.Dictionary ee.initialize ee.Algorithms ee.InitState ee.apply ee.reset ee.TILE_SIZE ee.call ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.Feature.prototype.getMap ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMap ee.FeatureCollection ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.select ee.Filter ee.Filter.eq ee.Filter.and ee.Filter.inList ee.Filter.gt ee.Filter.or ee.Filter.lt ee.Filter.prototype.not ee.Filter.neq ee.Filter.lte ee.Filter.metadata ee.Filter.gte ee.Filter.bounds ee.Filter.date ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.prototype.toGeoJSONString ee.Geometry.BBox ee.Geometry.MultiPoint ee.Geometry.LineString ee.Geometry ee.Geometry.prototype.serialize ee.Geometry.Rectangle ee.Geometry.MultiPolygon ee.Geometry.Polygon ee.Geometry.Point ee.Geometry.MultiLineString ee.Geometry.prototype.toGeoJSON ee.Geometry.LinearRing ee.Image.prototype.getInfo ee.Image.prototype.getMapId ee.Image.prototype.getMap ee.Image.prototype.getDownloadURL ee.Image ee.Image.prototype.getThumbId ee.Image.rgb ee.Image.cat ee.Image.prototype.rename ee.Image.prototype.select ee.Image.prototype.expression ee.Image.prototype.clip ee.Image.prototype.getThumbURL ee.ImageCollection ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getMapId ee.List ee.Number ee.Serializer.toReadableJSON ee.Serializer.toReadableCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encode ee.Serializer.toJSON ee.Serializer.toCloudApiJSON ee.Serializer.encodeCloudApi ee.String ee.Terrain".split(" "),
|
|
26951
|
+
orderedParamLists = [["name", "namedArgs"], ["name", "var_args"], ["name"], "image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), ["classifier", "opt_description", "opt_assetId", "opt_priority"], "collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),
|
|
26952
|
+
["collection", "opt_description", "opt_assetId", "opt_maxVertices", "opt_priority"], "image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".split(" "), "image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
|
|
26939
26953
|
"collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "),
|
|
26940
|
-
"collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "
|
|
26941
|
-
"
|
|
26942
|
-
"
|
|
26943
|
-
["
|
|
26944
|
-
["
|
|
26945
|
-
["
|
|
26946
|
-
|
|
26947
|
-
"
|
|
26948
|
-
"
|
|
26949
|
-
|
|
26950
|
-
[ee.ApiFunction._apply, ee.ApiFunction.
|
|
26951
|
-
module$contents$ee$batch_Export.
|
|
26952
|
-
ee.ComputedObject.prototype.
|
|
26953
|
-
ee.data.
|
|
26954
|
-
ee.data.
|
|
26955
|
-
ee.call, ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.Feature.prototype.getMap, ee.FeatureCollection.prototype.
|
|
26956
|
-
ee.Filter, ee.Filter.
|
|
26957
|
-
ee.Image.prototype.
|
|
26958
|
-
ee.ImageCollection.prototype.
|
|
26954
|
+
"collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), ["start", "opt_end"], ["algorithm",
|
|
26955
|
+
"opt_dropNulls"], ["algorithm", "opt_first"], ["property", "opt_ascending"], ["filter"], ["max", "opt_property", "opt_ascending"], ["geometry"], ["name", "operator", "value"], ["callback"], ["func", "var_args"], ["legacy"], ["opt_callback"], ["taskId", "request", "opt_callback"], ["path", "opt_force", "opt_callback"], ["params", "opt_callback"], ["taskId", "params", "opt_callback"], ["assetId", "aclUpdate", "opt_callback"], ["taskId", "action", "opt_callback"], ["parent", "opt_params", "opt_callback"],
|
|
26956
|
+
["id"], ["sourceId", "destinationId", "opt_callback"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "), ["params", "opt_callback"], ["assetId", "properties", "opt_callback"], ["opt_callback"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["project", "opt_callback"], ["params", "opt_callback"], ["id", "x", "y", "z"], ["taskId", "request", "opt_callback"],
|
|
26957
|
+
["assetId", "opt_callback"], ["rootId", "opt_callback"], ["opt_limit", "opt_callback"], ["id"], ["opt_limit", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["assetId", "opt_callback"], [], ["params", "opt_callback"], ["operationName", "opt_callback"], ["id"], ["opt_success", "opt_error"], ["params", "opt_callback"], ["asset", "params", "opt_callback"], ["id", "opt_callback"], ["opt_callback"], ["tag"], ["requestedId", "opt_callback"], ["operationName", "opt_callback"], ["id", "opt_callback"],
|
|
26958
|
+
["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"], ["opt_count", "opt_callback"], ["value", "opt_path", "opt_force", "opt_properties", "opt_callback"], ["obj", "opt_callback"], ["tag"], ["opt_resetDefault"], ["taskId", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"], ["params", "opt_callback"], ["taskId", "opt_callback"], ["date", "opt_tz"], ["json"], ["json"], ["json"], ["json"],
|
|
26959
|
+
["opt_dict"], "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "), [], [], ["func", "namedArgs"], [], [], ["func", "var_args"], ["var_args"], [], ["geometry", "opt_properties"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["opt_visParams", "opt_callback"], ["args", "opt_column"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["propertySelectors",
|
|
26960
|
+
"opt_newProperties", "opt_retainGeometry"], ["opt_filter"], ["name", "value"], ["var_args"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["name", "value"], ["var_args"], ["name", "value"], [], ["name", "value"], ["name", "value"], ["name", "operator", "value"], ["name", "value"], ["geometry", "opt_errorMargin"], ["start", "opt_end"], ["namedArgs"], ["var_args"], [], ["west", "south", "east", "north"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"],
|
|
26961
|
+
["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["legacy"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["params",
|
|
26962
|
+
"opt_callback"], ["opt_args"], ["params", "opt_callback"], ["r", "g", "b"], ["var_args"], ["var_args"], ["var_args"], ["expression", "opt_map"], ["geometry"], ["params", "opt_callback"], ["args"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties", "opt_matchPropertyName"], ["params", "opt_callback"], ["opt_callback"], ["selectors", "opt_names"], [], ["opt_visParams", "opt_callback"], ["list"], ["number"], ["obj"], ["obj"],
|
|
26963
|
+
["obj"], ["obj", "opt_isCompound"], ["obj"], ["obj"], ["obj"], ["string"], []];
|
|
26964
|
+
[ee.ApiFunction._apply, ee.ApiFunction._call, ee.ApiFunction.lookup, module$contents$ee$batch_Export.image.toDrive, module$contents$ee$batch_Export.classifier.toAsset, module$contents$ee$batch_Export.table.toCloudStorage, module$contents$ee$batch_Export.table.toAsset, module$contents$ee$batch_Export.image.toAsset, module$contents$ee$batch_Export.map.toCloudStorage, module$contents$ee$batch_Export.videoMap.toCloudStorage, module$contents$ee$batch_Export.table.toBigQuery, module$contents$ee$batch_Export.image.toCloudStorage,
|
|
26965
|
+
module$contents$ee$batch_Export.video.toCloudStorage, module$contents$ee$batch_Export.table.toFeatureView, module$contents$ee$batch_Export.video.toDrive, module$contents$ee$batch_Export.table.toDrive, ee.Collection.prototype.filterDate, ee.Collection.prototype.map, ee.Collection.prototype.iterate, ee.Collection.prototype.sort, ee.Collection.prototype.filter, ee.Collection.prototype.limit, ee.Collection.prototype.filterBounds, ee.Collection.prototype.filterMetadata, ee.ComputedObject.prototype.evaluate,
|
|
26966
|
+
ee.ComputedObject.prototype.aside, ee.ComputedObject.prototype.serialize, ee.ComputedObject.prototype.getInfo, ee.data.startIngestion, ee.data.createFolder, ee.data.getFilmstripThumbId, ee.data.startProcessing, ee.data.setAssetAcl, ee.data.updateTask, ee.data.listAssets, ee.data.makeThumbUrl, ee.data.renameAsset, ee.data.authenticateViaOauth, ee.data.getMapId, ee.data.setAssetProperties, ee.data.getTaskList, ee.data.copyAsset, ee.data.authenticate, ee.data.listBuckets, ee.data.getTableDownloadId,
|
|
26967
|
+
ee.data.getTileUrl, ee.data.startTableIngestion, ee.data.deleteAsset, ee.data.getAssetRootQuota, ee.data.getTaskListWithLimit, ee.data.makeTableDownloadUrl, ee.data.listOperations, ee.data.listImages, ee.data.getAssetAcl, ee.data.getWorkloadTag, ee.data.getDownloadId, ee.data.cancelOperation, ee.data.makeDownloadUrl, ee.data.authenticateViaPopup, ee.data.getFeatureViewTilesKey, ee.data.listFeatures, ee.data.getAsset, ee.data.getAssetRoots, ee.data.setWorkloadTag, ee.data.createAssetHome, ee.data.getOperation,
|
|
26968
|
+
ee.data.getInfo, ee.data.authenticateViaPrivateKey, ee.data.newTaskId, ee.data.createAsset, ee.data.computeValue, ee.data.setDefaultWorkloadTag, ee.data.resetWorkloadTag, ee.data.cancelTask, ee.data.getThumbId, ee.data.getVideoThumbId, ee.data.updateAsset, ee.data.getList, ee.data.getTaskStatus, ee.Date, ee.Deserializer.fromJSON, ee.Deserializer.decodeCloudApi, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.decode, ee.Dictionary, ee.initialize, ee.Algorithms, ee.InitState, ee.apply, ee.reset,
|
|
26969
|
+
ee.TILE_SIZE, ee.call, ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.Feature.prototype.getMap, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection.prototype.getMapId, ee.FeatureCollection.prototype.select, ee.Filter, ee.Filter.eq, ee.Filter.and, ee.Filter.inList, ee.Filter.gt, ee.Filter.or, ee.Filter.lt,
|
|
26970
|
+
ee.Filter.prototype.not, ee.Filter.neq, ee.Filter.lte, ee.Filter.metadata, ee.Filter.gte, ee.Filter.bounds, ee.Filter.date, ee.Function.prototype.apply, ee.Function.prototype.call, ee.Geometry.prototype.toGeoJSONString, ee.Geometry.BBox, ee.Geometry.MultiPoint, ee.Geometry.LineString, ee.Geometry, ee.Geometry.prototype.serialize, ee.Geometry.Rectangle, ee.Geometry.MultiPolygon, ee.Geometry.Polygon, ee.Geometry.Point, ee.Geometry.MultiLineString, ee.Geometry.prototype.toGeoJSON, ee.Geometry.LinearRing,
|
|
26971
|
+
ee.Image.prototype.getInfo, ee.Image.prototype.getMapId, ee.Image.prototype.getMap, ee.Image.prototype.getDownloadURL, ee.Image, ee.Image.prototype.getThumbId, ee.Image.rgb, ee.Image.cat, ee.Image.prototype.rename, ee.Image.prototype.select, ee.Image.prototype.expression, ee.Image.prototype.clip, ee.Image.prototype.getThumbURL, ee.ImageCollection, ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.linkCollection, ee.ImageCollection.prototype.getVideoThumbURL,
|
|
26972
|
+
ee.ImageCollection.prototype.getInfo, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.first, ee.ImageCollection.prototype.getMapId, ee.List, ee.Number, ee.Serializer.toReadableJSON, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.encode, ee.Serializer.toJSON, ee.Serializer.toCloudApiJSON, ee.Serializer.encodeCloudApi, ee.String, ee.Terrain].forEach(function(fn, i) {
|
|
26959
26973
|
fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
|
|
26960
26974
|
});
|
|
26961
26975
|
goog.global.EXPORTED_FN_INFO = exportedFnInfo;
|
package/package.json
CHANGED
package/src/apiclient.js
CHANGED
|
@@ -24,7 +24,7 @@ const {trustedResourceUrl} = goog.require('safevalues');
|
|
|
24
24
|
/** @namespace */
|
|
25
25
|
const apiclient = {};
|
|
26
26
|
|
|
27
|
-
const API_CLIENT_VERSION = '0.1.
|
|
27
|
+
const API_CLIENT_VERSION = '0.1.396';
|
|
28
28
|
|
|
29
29
|
exports.VERSION = apiVersion.VERSION;
|
|
30
30
|
exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
|
package/src/data.js
CHANGED
|
@@ -1659,14 +1659,41 @@ ee.data.getInfo = ee.data.getAsset;
|
|
|
1659
1659
|
ee.data.makeListAssetsCall_ = function(
|
|
1660
1660
|
parent, opt_params = {}, opt_callback = undefined,
|
|
1661
1661
|
opt_postProcessing = goog.functions.identity) {
|
|
1662
|
+
/** @type {!ee.api.ProjectsAssetsListAssetsNamedParameters} */
|
|
1663
|
+
const params = Object.assign({}, opt_params);
|
|
1664
|
+
const call = new ee.apiclient.Call(opt_callback);
|
|
1662
1665
|
// Detect project asset root call.
|
|
1663
1666
|
const isProjectAssetRoot = ee.rpc_convert.CLOUD_ASSET_ROOT_RE.test(parent);
|
|
1664
|
-
const call = new ee.apiclient.Call(opt_callback);
|
|
1665
1667
|
const methodRoot = isProjectAssetRoot ? call.projects() : call.assets();
|
|
1666
1668
|
parent = isProjectAssetRoot ? ee.rpc_convert.projectParentFromPath(parent) :
|
|
1667
1669
|
ee.rpc_convert.assetIdToAssetName(parent);
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
+
const getNextPageIfNeeded = (response) => {
|
|
1671
|
+
// We currently treat pageSize as a cap on the results, if this param was
|
|
1672
|
+
// provided we should break fast and not return more than the asked for
|
|
1673
|
+
// amount.
|
|
1674
|
+
if (params.pageSize != null || !response.nextPageToken) {
|
|
1675
|
+
return response;
|
|
1676
|
+
}
|
|
1677
|
+
const previousAssets = response.assets || [];
|
|
1678
|
+
params.pageToken = response.nextPageToken;
|
|
1679
|
+
const nextResponse = methodRoot.listAssets(parent, params)
|
|
1680
|
+
.then((response) => {
|
|
1681
|
+
// Add previous assets to front.
|
|
1682
|
+
response.assets = previousAssets.concat(response.assets);
|
|
1683
|
+
return response;
|
|
1684
|
+
})
|
|
1685
|
+
.then(getNextPageIfNeeded);
|
|
1686
|
+
if (opt_callback) {
|
|
1687
|
+
// For async, make sure we have only a single chained `call.handle` call.
|
|
1688
|
+
return nextResponse;
|
|
1689
|
+
}
|
|
1690
|
+
// For sync mode, the response data needs to be uplifted from the fake
|
|
1691
|
+
// Promise object to be returned immediately.
|
|
1692
|
+
return call.handle(nextResponse);
|
|
1693
|
+
};
|
|
1694
|
+
return call.handle(methodRoot.listAssets(parent, params)
|
|
1695
|
+
.then(getNextPageIfNeeded)
|
|
1696
|
+
.then(opt_postProcessing));
|
|
1670
1697
|
};
|
|
1671
1698
|
|
|
1672
1699
|
|
|
@@ -1686,9 +1713,15 @@ ee.data.makeListAssetsCall_ = function(
|
|
|
1686
1713
|
* @export
|
|
1687
1714
|
*/
|
|
1688
1715
|
ee.data.getList = function(params, opt_callback) {
|
|
1716
|
+
const convertedParams = ee.rpc_convert.getListToListAssets(params);
|
|
1717
|
+
// Force a single page of results by explicitly specifying a page size.
|
|
1718
|
+
// This maintains backward compatibility, as well as compatibility with the
|
|
1719
|
+
// Python implementation.
|
|
1720
|
+
if (!convertedParams.pageSize) {
|
|
1721
|
+
convertedParams.pageSize = 1000;
|
|
1722
|
+
}
|
|
1689
1723
|
return ee.data.makeListAssetsCall_(
|
|
1690
|
-
params['id'],
|
|
1691
|
-
(r) => {
|
|
1724
|
+
params['id'], convertedParams, opt_callback, (r) => {
|
|
1692
1725
|
if (r == null) {
|
|
1693
1726
|
return null;
|
|
1694
1727
|
}
|
|
@@ -1709,7 +1742,7 @@ ee.data.getList = function(params, opt_callback) {
|
|
|
1709
1742
|
* <table>
|
|
1710
1743
|
* <tr>
|
|
1711
1744
|
* <td><code> pageSize </code> (string) The number of results to
|
|
1712
|
-
* return.
|
|
1745
|
+
* return. If not specified, all results are returned.</td>
|
|
1713
1746
|
* </tr>
|
|
1714
1747
|
* <tr>
|
|
1715
1748
|
* <td><code> pageToken </code> (string) The token for the page of
|
|
@@ -1753,7 +1786,7 @@ ee.data.listAssets = function(
|
|
|
1753
1786
|
* <table>
|
|
1754
1787
|
* <tr>
|
|
1755
1788
|
* <td><code> pageSize </code> (string) The number of results to return.
|
|
1756
|
-
*
|
|
1789
|
+
* If not specified, all results are returned.</td>
|
|
1757
1790
|
* </tr>
|
|
1758
1791
|
* <tr>
|
|
1759
1792
|
* <td><code> pageToken </code> (string) The token page of results to
|
|
@@ -69,8 +69,10 @@ var addHarmonics = function(freqs) {
|
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
// Filter to the area of interest, mask clouds,
|
|
72
|
+
// Filter to the desired date range and area of interest, mask clouds,
|
|
73
|
+
// and add variables.
|
|
73
74
|
var harmonicLandsat = landsatCollection
|
|
75
|
+
.filterDate('2015-01-01', '2020-01-01')
|
|
74
76
|
.filterBounds(roi)
|
|
75
77
|
.map(maskClouds)
|
|
76
78
|
.map(addNDVI)
|