This commit is contained in:
Sufyan Abbasi 2020-12-11 02:19:32 +00:00
parent 2a9794f52d
commit 4651f6e052
9 changed files with 684 additions and 678 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15260,7 +15260,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
ee.apiclient = {};
var module$contents$ee$apiclient_apiclient = {};
ee.apiclient.VERSION = ee.apiVersion.VERSION;
ee.apiclient.API_CLIENT_VERSION = "0.1.244";
ee.apiclient.API_CLIENT_VERSION = "0.1.245";
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
@ -15459,7 +15459,7 @@ module$contents$ee$apiclient_apiclient.setAuthTokenRefresher = function(refreshe
module$contents$ee$apiclient_apiclient.authTokenRefresher_ = refresher;
};
module$contents$ee$apiclient_apiclient.getAuthToken = function() {
module$contents$ee$apiclient_apiclient.authTokenExpiration_ && 0 <= goog.now() - module$contents$ee$apiclient_apiclient.authTokenExpiration_ && module$contents$ee$apiclient_apiclient.clearAuthToken();
module$contents$ee$apiclient_apiclient.authTokenExpiration_ && 0 <= Date.now() - module$contents$ee$apiclient_apiclient.authTokenExpiration_ && module$contents$ee$apiclient_apiclient.clearAuthToken();
return module$contents$ee$apiclient_apiclient.authToken_;
};
module$contents$ee$apiclient_apiclient.clearAuthToken = function() {
@ -15515,8 +15515,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
method = method || "POST";
var headers = {"Content-Type":contentType, }, version = "0.1.244";
"0.1.244" === version && (version = "latest");
var headers = {"Content-Type":contentType, }, version = "0.1.245";
"0.1.245" === version && (version = "latest");
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
if (null != authToken) {
@ -15641,7 +15641,7 @@ module$contents$ee$apiclient_apiclient.ensureAuthLibLoaded_ = function(callback)
if (goog.isObject(goog.global.gapi) && goog.isObject(goog.global.gapi.auth) && "function" === typeof goog.global.gapi.auth.authorize) {
done();
} else {
for (var callbackName = goog.now().toString(36); callbackName in goog.global;) {
for (var callbackName = Date.now().toString(36); callbackName in goog.global;) {
callbackName += "_";
}
goog.global[callbackName] = function() {
@ -15657,7 +15657,7 @@ module$contents$ee$apiclient_apiclient.handleAuthResult_ = function(success, err
if (result.expires_in || 0 === result.expires_in) {
var expiresInMs = 900 * result.expires_in, timeout = setTimeout(module$contents$ee$apiclient_apiclient.refreshAuthToken, 0.9 * expiresInMs);
void 0 !== timeout.unref && timeout.unref();
module$contents$ee$apiclient_apiclient.authTokenExpiration_ = goog.now() + expiresInMs;
module$contents$ee$apiclient_apiclient.authTokenExpiration_ = Date.now() + expiresInMs;
}
module$contents$ee$apiclient_apiclient.authToken_ = token;
success && success();
@ -22562,7 +22562,7 @@ ee.FeatureCollection = function(args, opt_column) {
if (args instanceof ee.List) {
ee.Collection.call(this, new ee.ApiFunction("Collection"), {features:args});
} else {
if (args instanceof Object && "FeatureCollection" === args.type) {
if (args && "object" === typeof args && "FeatureCollection" === args.type) {
ee.Collection.call(this, new ee.ApiFunction("Collection"), {features:args.features.map(function(f) {
return new ee.Feature(f);
})});

View File

@ -15260,7 +15260,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
ee.apiclient = {};
var module$contents$ee$apiclient_apiclient = {};
ee.apiclient.VERSION = ee.apiVersion.VERSION;
ee.apiclient.API_CLIENT_VERSION = "0.1.244";
ee.apiclient.API_CLIENT_VERSION = "0.1.245";
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
@ -15459,7 +15459,7 @@ module$contents$ee$apiclient_apiclient.setAuthTokenRefresher = function(refreshe
module$contents$ee$apiclient_apiclient.authTokenRefresher_ = refresher;
};
module$contents$ee$apiclient_apiclient.getAuthToken = function() {
module$contents$ee$apiclient_apiclient.authTokenExpiration_ && 0 <= goog.now() - module$contents$ee$apiclient_apiclient.authTokenExpiration_ && module$contents$ee$apiclient_apiclient.clearAuthToken();
module$contents$ee$apiclient_apiclient.authTokenExpiration_ && 0 <= Date.now() - module$contents$ee$apiclient_apiclient.authTokenExpiration_ && module$contents$ee$apiclient_apiclient.clearAuthToken();
return module$contents$ee$apiclient_apiclient.authToken_;
};
module$contents$ee$apiclient_apiclient.clearAuthToken = function() {
@ -15515,8 +15515,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
method = method || "POST";
var headers = {"Content-Type":contentType, }, version = "0.1.244";
"0.1.244" === version && (version = "latest");
var headers = {"Content-Type":contentType, }, version = "0.1.245";
"0.1.245" === version && (version = "latest");
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
if (null != authToken) {
@ -15641,7 +15641,7 @@ module$contents$ee$apiclient_apiclient.ensureAuthLibLoaded_ = function(callback)
if (goog.isObject(goog.global.gapi) && goog.isObject(goog.global.gapi.auth) && "function" === typeof goog.global.gapi.auth.authorize) {
done();
} else {
for (var callbackName = goog.now().toString(36); callbackName in goog.global;) {
for (var callbackName = Date.now().toString(36); callbackName in goog.global;) {
callbackName += "_";
}
goog.global[callbackName] = function() {
@ -15657,7 +15657,7 @@ module$contents$ee$apiclient_apiclient.handleAuthResult_ = function(success, err
if (result.expires_in || 0 === result.expires_in) {
var expiresInMs = 900 * result.expires_in, timeout = setTimeout(module$contents$ee$apiclient_apiclient.refreshAuthToken, 0.9 * expiresInMs);
void 0 !== timeout.unref && timeout.unref();
module$contents$ee$apiclient_apiclient.authTokenExpiration_ = goog.now() + expiresInMs;
module$contents$ee$apiclient_apiclient.authTokenExpiration_ = Date.now() + expiresInMs;
}
module$contents$ee$apiclient_apiclient.authToken_ = token;
success && success();
@ -22562,7 +22562,7 @@ ee.FeatureCollection = function(args, opt_column) {
if (args instanceof ee.List) {
ee.Collection.call(this, new ee.ApiFunction("Collection"), {features:args});
} else {
if (args instanceof Object && "FeatureCollection" === args.type) {
if (args && "object" === typeof args && "FeatureCollection" === args.type) {
ee.Collection.call(this, new ee.ApiFunction("Collection"), {features:args.features.map(function(f) {
return new ee.Feature(f);
})});
@ -26152,22 +26152,22 @@ ee.SavedFunction.prototype.getSignature = function() {
return this.signature_;
};
(function() {
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._call ee.ApiFunction._apply ee.ApiFunction.lookup ee.Collection.prototype.map ee.Collection.prototype.sort ee.Collection.prototype.filterBounds ee.Collection.prototype.filterMetadata ee.Collection.prototype.iterate ee.Collection.prototype.filterDate ee.Collection.prototype.limit ee.Collection.prototype.filter ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.evaluate ee.data.authenticateViaOauth ee.data.renameAsset ee.data.setAssetAcl ee.data.setAssetProperties ee.data.copyAsset ee.data.getDownloadId ee.data.deleteAsset ee.data.makeDownloadUrl ee.data.getAssetRootQuota ee.data.authenticate ee.data.makeTableDownloadUrl ee.data.authenticateViaPopup ee.data.getAssetAcl ee.data.getTableDownloadId ee.data.authenticateViaPrivateKey ee.data.newTaskId ee.data.updateAsset ee.data.getTaskStatus ee.data.getMapId ee.data.updateTask ee.data.listImages ee.data.getTaskList ee.data.getTileUrl ee.data.startProcessing ee.data.listBuckets ee.data.getAssetRoots ee.data.startTableIngestion ee.data.getTaskListWithLimit ee.data.getAsset ee.data.createAssetHome ee.data.listOperations ee.data.computeValue ee.data.cancelOperation ee.data.getFilmstripThumbId ee.data.getInfo ee.data.getThumbId ee.data.createAsset ee.data.makeThumbUrl ee.data.getOperation ee.data.createFolder ee.data.getVideoThumbId ee.data.startIngestion ee.data.cancelTask ee.data.getList ee.data.listAssets ee.Date ee.Deserializer.decode ee.Deserializer.fromJSON ee.Deserializer.fromCloudApiJSON ee.Deserializer.decodeCloudApi ee.Dictionary ee.Algorithms ee.call ee.reset ee.apply ee.TILE_SIZE ee.initialize ee.InitState ee.Element.prototype.set ee.Feature ee.Feature.prototype.getMap ee.Feature.prototype.getInfo ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.select ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMap ee.FeatureCollection ee.Filter ee.Filter.gte ee.Filter.lte ee.Filter.metadata ee.Filter.inList ee.Filter.date ee.Filter.bounds ee.Filter.lt ee.Filter.or ee.Filter.gt ee.Filter.eq ee.Filter.prototype.not ee.Filter.and ee.Filter.neq ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.prototype.toGeoJSONString ee.Geometry.BBox ee.Geometry.Point ee.Geometry.prototype.serialize ee.Geometry.LinearRing ee.Geometry ee.Geometry.MultiPoint ee.Geometry.LineString ee.Geometry.MultiPolygon ee.Geometry.Rectangle ee.Geometry.MultiLineString ee.Geometry.Polygon ee.Geometry.prototype.toGeoJSON ee.Image.prototype.rename ee.Image.prototype.expression ee.Image ee.Image.prototype.getThumbURL ee.Image.prototype.getMap ee.Image.prototype.getInfo ee.Image.prototype.select ee.Image.prototype.clip ee.Image.prototype.getDownloadURL ee.Image.rgb ee.Image.prototype.getThumbId ee.Image.cat ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getInfo ee.ImageCollection ee.ImageCollection.prototype.first ee.List ee.Number ee.Serializer.toJSON ee.Serializer.toReadableCloudApiJSON ee.Serializer.encode ee.Serializer.toCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.toReadableJSON ee.Serializer.encodeCloudApi ee.String ee.Terrain".split(" "),
orderedParamLists = [["name", "var_args"], ["name", "namedArgs"], ["name"], ["algorithm", "opt_dropNulls"], ["property", "opt_ascending"], ["geometry"], ["name", "operator", "value"], ["algorithm", "opt_first"], ["start", "opt_end"], ["max", "opt_property", "opt_ascending"], ["filter"], ["legacy"], ["opt_callback"], ["func", "var_args"], ["callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["sourceId", "destinationId", "opt_callback"], ["assetId", "aclUpdate",
"opt_callback"], ["assetId", "properties", "opt_callback"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["params", "opt_callback"], ["assetId", "opt_callback"], ["id"], ["rootId", "opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["id"], ["opt_success", "opt_error"], ["assetId", "opt_callback"], ["params", "opt_callback"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes"], ["opt_count", "opt_callback"], ["assetId",
"asset", "updateFields", "opt_callback"], ["taskId", "opt_callback"], ["params", "opt_callback"], ["taskId", "action", "opt_callback"], ["parent", "params", "opt_callback"], ["opt_callback"], ["id", "x", "y", "z"], ["taskId", "params", "opt_callback"], ["project", "opt_callback"], ["opt_callback"], ["taskId", "request", "opt_callback"], ["opt_limit", "opt_callback"], ["id", "opt_callback"], ["requestedId", "opt_callback"], ["opt_limit", "opt_callback"], ["obj", "opt_callback"], ["operationName",
"opt_callback"], ["params", "opt_callback"], ["id", "opt_callback"], ["params", "opt_callback"], ["value", "opt_path", "opt_force", "opt_properties", "opt_callback"], ["id"], ["operationName", "opt_callback"], ["path", "opt_force", "opt_callback"], ["params", "opt_callback"], ["taskId", "request", "opt_callback"], ["taskId", "opt_callback"], ["params", "opt_callback"], ["parent", "params", "opt_callback"], ["date", "opt_tz"], ["json"], ["json"], ["json"], ["json"], ["opt_dict"], [], ["func", "var_args"],
[], ["func", "namedArgs"], [], ["opt_baseurl", "opt_tileurl", "opt_successCallback", "opt_errorCallback", "opt_xsrfToken"], [], ["var_args"], ["geometry", "opt_properties"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["opt_visParams", "opt_callback"], ["args", "opt_column"], ["opt_filter"], ["name", "value"], ["name", "value"], ["name", "operator",
"value"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["start", "opt_end"], ["geometry", "opt_errorMargin"], ["name", "value"], ["var_args"], ["name", "value"], ["name", "value"], [], ["var_args"], ["name", "value"], ["namedArgs"], ["var_args"], [], ["west", "south", "east", "north"], ["coords", "opt_proj"], ["legacy"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj"], ["coords", "opt_proj",
"opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], [], ["var_args"], ["expression", "opt_map"], ["opt_args"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["var_args"], ["geometry"], ["params", "opt_callback"], ["r", "g", "b"],
["params", "opt_callback"], ["var_args"], ["selectors", "opt_names"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["opt_callback"], ["args"], [], ["list"], ["number"], ["obj"], ["obj"], ["obj", "opt_isCompound"], ["obj"], ["obj"], ["obj"], ["obj"], ["string"], []];
[ee.ApiFunction._call, ee.ApiFunction._apply, ee.ApiFunction.lookup, ee.Collection.prototype.map, ee.Collection.prototype.sort, ee.Collection.prototype.filterBounds, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.iterate, ee.Collection.prototype.filterDate, ee.Collection.prototype.limit, ee.Collection.prototype.filter, ee.ComputedObject.prototype.serialize, ee.ComputedObject.prototype.getInfo, ee.ComputedObject.prototype.aside, ee.ComputedObject.prototype.evaluate, ee.data.authenticateViaOauth,
ee.data.renameAsset, ee.data.setAssetAcl, ee.data.setAssetProperties, ee.data.copyAsset, ee.data.getDownloadId, ee.data.deleteAsset, ee.data.makeDownloadUrl, ee.data.getAssetRootQuota, ee.data.authenticate, ee.data.makeTableDownloadUrl, ee.data.authenticateViaPopup, ee.data.getAssetAcl, ee.data.getTableDownloadId, ee.data.authenticateViaPrivateKey, ee.data.newTaskId, ee.data.updateAsset, ee.data.getTaskStatus, ee.data.getMapId, ee.data.updateTask, ee.data.listImages, ee.data.getTaskList, ee.data.getTileUrl,
ee.data.startProcessing, ee.data.listBuckets, ee.data.getAssetRoots, ee.data.startTableIngestion, ee.data.getTaskListWithLimit, ee.data.getAsset, ee.data.createAssetHome, ee.data.listOperations, ee.data.computeValue, ee.data.cancelOperation, ee.data.getFilmstripThumbId, ee.data.getInfo, ee.data.getThumbId, ee.data.createAsset, ee.data.makeThumbUrl, ee.data.getOperation, ee.data.createFolder, ee.data.getVideoThumbId, ee.data.startIngestion, ee.data.cancelTask, ee.data.getList, ee.data.listAssets,
ee.Date, ee.Deserializer.decode, ee.Deserializer.fromJSON, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.decodeCloudApi, ee.Dictionary, ee.Algorithms, ee.call, ee.reset, ee.apply, ee.TILE_SIZE, ee.initialize, ee.InitState, ee.Element.prototype.set, ee.Feature, ee.Feature.prototype.getMap, ee.Feature.prototype.getInfo, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection.prototype.select, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection,
ee.Filter, ee.Filter.gte, ee.Filter.lte, ee.Filter.metadata, ee.Filter.inList, ee.Filter.date, ee.Filter.bounds, ee.Filter.lt, ee.Filter.or, ee.Filter.gt, ee.Filter.eq, ee.Filter.prototype.not, ee.Filter.and, ee.Filter.neq, ee.Function.prototype.apply, ee.Function.prototype.call, ee.Geometry.prototype.toGeoJSONString, ee.Geometry.BBox, ee.Geometry.Point, ee.Geometry.prototype.serialize, ee.Geometry.LinearRing, ee.Geometry, ee.Geometry.MultiPoint, ee.Geometry.LineString, ee.Geometry.MultiPolygon,
ee.Geometry.Rectangle, ee.Geometry.MultiLineString, ee.Geometry.Polygon, ee.Geometry.prototype.toGeoJSON, ee.Image.prototype.rename, ee.Image.prototype.expression, ee.Image, ee.Image.prototype.getThumbURL, ee.Image.prototype.getMap, ee.Image.prototype.getInfo, ee.Image.prototype.select, ee.Image.prototype.clip, ee.Image.prototype.getDownloadURL, ee.Image.rgb, ee.Image.prototype.getThumbId, ee.Image.cat, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.getFilmstripThumbURL,
ee.ImageCollection.prototype.getVideoThumbURL, ee.ImageCollection.prototype.getInfo, ee.ImageCollection, ee.ImageCollection.prototype.first, ee.List, ee.Number, ee.Serializer.toJSON, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.encode, ee.Serializer.toCloudApiJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.toReadableJSON, ee.Serializer.encodeCloudApi, ee.String, ee.Terrain].forEach(function(fn, i) {
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction.lookup ee.ApiFunction._apply ee.ApiFunction._call ee.Collection.prototype.map ee.Collection.prototype.filterMetadata ee.Collection.prototype.iterate ee.Collection.prototype.filterDate ee.Collection.prototype.limit ee.Collection.prototype.filter ee.Collection.prototype.sort ee.Collection.prototype.filterBounds ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.getInfo ee.data.authenticateViaOauth ee.data.getMapId ee.data.getTileUrl ee.data.setAssetAcl ee.data.authenticate ee.data.makeThumbUrl ee.data.authenticateViaPopup ee.data.computeValue ee.data.authenticateViaPrivateKey ee.data.getThumbId ee.data.getFilmstripThumbId ee.data.getVideoThumbId ee.data.updateTask ee.data.listImages ee.data.setAssetProperties ee.data.copyAsset ee.data.getTaskList ee.data.getDownloadId ee.data.startProcessing ee.data.listOperations ee.data.listBuckets ee.data.deleteAsset ee.data.getAssetRootQuota ee.data.makeDownloadUrl ee.data.startTableIngestion ee.data.getTaskListWithLimit ee.data.getAssetRoots ee.data.getAssetAcl ee.data.getTableDownloadId ee.data.getAsset ee.data.createAssetHome ee.data.makeTableDownloadUrl ee.data.cancelOperation ee.data.getInfo ee.data.createAsset ee.data.newTaskId ee.data.updateAsset ee.data.getOperation ee.data.createFolder ee.data.getTaskStatus ee.data.startIngestion ee.data.cancelTask ee.data.getList ee.data.listAssets ee.data.renameAsset ee.Date ee.Deserializer.decode ee.Deserializer.fromJSON ee.Deserializer.fromCloudApiJSON ee.Deserializer.decodeCloudApi ee.Dictionary ee.reset ee.apply ee.InitState ee.Algorithms ee.TILE_SIZE ee.initialize ee.call ee.Element.prototype.set ee.Feature ee.Feature.prototype.getMap ee.Feature.prototype.getInfo ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.select ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection ee.FeatureCollection.prototype.getMap ee.Filter.lt ee.Filter ee.Filter.gte ee.Filter.or ee.Filter.gt ee.Filter.prototype.not ee.Filter.eq ee.Filter.and ee.Filter.bounds ee.Filter.neq ee.Filter.lte ee.Filter.metadata ee.Filter.inList ee.Filter.date ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.LineString ee.Geometry.prototype.toGeoJSONString ee.Geometry.BBox ee.Geometry.Point ee.Geometry.prototype.serialize ee.Geometry.LinearRing ee.Geometry.MultiPoint ee.Geometry ee.Geometry.MultiPolygon ee.Geometry.Rectangle ee.Geometry.MultiLineString ee.Geometry.prototype.toGeoJSON ee.Geometry.Polygon ee.Image.prototype.getThumbURL ee.Image.prototype.getInfo ee.Image.prototype.getMap ee.Image.prototype.select ee.Image.prototype.rename ee.Image.prototype.getDownloadURL ee.Image.rgb ee.Image.prototype.getThumbId ee.Image.prototype.clip ee.Image ee.Image.cat ee.Image.prototype.expression ee.ImageCollection.prototype.getInfo ee.ImageCollection ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getFilmstripThumbURL ee.List ee.Number ee.Serializer.encodeCloudApiPretty ee.Serializer.toCloudApiJSON ee.Serializer.encodeCloudApi ee.Serializer.toReadableJSON ee.Serializer.toReadableCloudApiJSON ee.Serializer.toJSON ee.Serializer.encode ee.String ee.Terrain".split(" "),
orderedParamLists = [["name"], ["name", "namedArgs"], ["name", "var_args"], ["algorithm", "opt_dropNulls"], ["name", "operator", "value"], ["algorithm", "opt_first"], ["start", "opt_end"], ["max", "opt_property", "opt_ascending"], ["filter"], ["property", "opt_ascending"], ["geometry"], ["func", "var_args"], ["callback"], ["legacy"], ["opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["params", "opt_callback"], ["id", "x", "y", "z"], ["assetId",
"aclUpdate", "opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["id"], ["opt_success", "opt_error"], ["obj", "opt_callback"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes"], ["params", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["taskId", "action", "opt_callback"], ["parent", "params", "opt_callback"], ["assetId", "properties", "opt_callback"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"],
["opt_callback"], ["params", "opt_callback"], ["taskId", "params", "opt_callback"], ["opt_limit", "opt_callback"], ["project", "opt_callback"], ["assetId", "opt_callback"], ["rootId", "opt_callback"], ["id"], ["taskId", "request", "opt_callback"], ["opt_limit", "opt_callback"], ["opt_callback"], ["assetId", "opt_callback"], ["params", "opt_callback"], ["id", "opt_callback"], ["requestedId", "opt_callback"], ["id"], ["operationName", "opt_callback"], ["id", "opt_callback"], ["value", "opt_path",
"opt_force", "opt_properties", "opt_callback"], ["opt_count", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"], ["operationName", "opt_callback"], ["path", "opt_force", "opt_callback"], ["taskId", "opt_callback"], ["taskId", "request", "opt_callback"], ["taskId", "opt_callback"], ["params", "opt_callback"], ["parent", "params", "opt_callback"], ["sourceId", "destinationId", "opt_callback"], ["date", "opt_tz"], ["json"], ["json"], ["json"], ["json"], ["opt_dict"], [], ["func",
"namedArgs"], [], [], [], ["opt_baseurl", "opt_tileurl", "opt_successCallback", "opt_errorCallback", "opt_xsrfToken"], ["func", "var_args"], ["var_args"], ["geometry", "opt_properties"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["args", "opt_column"], ["opt_visParams", "opt_callback"], ["name", "value"], ["opt_filter"], ["name", "value"],
["var_args"], ["name", "value"], [], ["name", "value"], ["var_args"], ["geometry", "opt_errorMargin"], ["name", "value"], ["name", "value"], ["name", "operator", "value"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["start", "opt_end"], ["namedArgs"], ["var_args"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], [], ["west", "south", "east", "north"], ["coords", "opt_proj"], ["legacy"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj"],
["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["params", "opt_callback"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["var_args"], ["var_args"], ["params", "opt_callback"], ["r", "g", "b"], ["params", "opt_callback"], ["geometry"],
["opt_args"], ["var_args"], ["expression", "opt_map"], ["opt_callback"], ["args"], ["selectors", "opt_names"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], [], ["params", "opt_callback"], ["list"], ["number"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj", "opt_isCompound"], ["string"], []];
[ee.ApiFunction.lookup, ee.ApiFunction._apply, ee.ApiFunction._call, ee.Collection.prototype.map, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.iterate, ee.Collection.prototype.filterDate, ee.Collection.prototype.limit, ee.Collection.prototype.filter, ee.Collection.prototype.sort, ee.Collection.prototype.filterBounds, ee.ComputedObject.prototype.aside, ee.ComputedObject.prototype.evaluate, ee.ComputedObject.prototype.serialize, ee.ComputedObject.prototype.getInfo, ee.data.authenticateViaOauth,
ee.data.getMapId, ee.data.getTileUrl, ee.data.setAssetAcl, ee.data.authenticate, ee.data.makeThumbUrl, ee.data.authenticateViaPopup, ee.data.computeValue, ee.data.authenticateViaPrivateKey, ee.data.getThumbId, ee.data.getFilmstripThumbId, ee.data.getVideoThumbId, ee.data.updateTask, ee.data.listImages, ee.data.setAssetProperties, ee.data.copyAsset, ee.data.getTaskList, ee.data.getDownloadId, ee.data.startProcessing, ee.data.listOperations, ee.data.listBuckets, ee.data.deleteAsset, ee.data.getAssetRootQuota,
ee.data.makeDownloadUrl, ee.data.startTableIngestion, ee.data.getTaskListWithLimit, ee.data.getAssetRoots, ee.data.getAssetAcl, ee.data.getTableDownloadId, ee.data.getAsset, ee.data.createAssetHome, ee.data.makeTableDownloadUrl, ee.data.cancelOperation, ee.data.getInfo, ee.data.createAsset, ee.data.newTaskId, ee.data.updateAsset, ee.data.getOperation, ee.data.createFolder, ee.data.getTaskStatus, ee.data.startIngestion, ee.data.cancelTask, ee.data.getList, ee.data.listAssets, ee.data.renameAsset,
ee.Date, ee.Deserializer.decode, ee.Deserializer.fromJSON, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.decodeCloudApi, ee.Dictionary, ee.reset, ee.apply, ee.InitState, ee.Algorithms, ee.TILE_SIZE, ee.initialize, ee.call, ee.Element.prototype.set, ee.Feature, ee.Feature.prototype.getMap, ee.Feature.prototype.getInfo, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection.prototype.select, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection, ee.FeatureCollection.prototype.getMap,
ee.Filter.lt, ee.Filter, ee.Filter.gte, ee.Filter.or, ee.Filter.gt, ee.Filter.prototype.not, ee.Filter.eq, ee.Filter.and, ee.Filter.bounds, ee.Filter.neq, ee.Filter.lte, ee.Filter.metadata, ee.Filter.inList, ee.Filter.date, ee.Function.prototype.apply, ee.Function.prototype.call, ee.Geometry.LineString, ee.Geometry.prototype.toGeoJSONString, ee.Geometry.BBox, ee.Geometry.Point, ee.Geometry.prototype.serialize, ee.Geometry.LinearRing, ee.Geometry.MultiPoint, ee.Geometry, ee.Geometry.MultiPolygon,
ee.Geometry.Rectangle, ee.Geometry.MultiLineString, ee.Geometry.prototype.toGeoJSON, ee.Geometry.Polygon, ee.Image.prototype.getThumbURL, ee.Image.prototype.getInfo, ee.Image.prototype.getMap, ee.Image.prototype.select, ee.Image.prototype.rename, ee.Image.prototype.getDownloadURL, ee.Image.rgb, ee.Image.prototype.getThumbId, ee.Image.prototype.clip, ee.Image, ee.Image.cat, ee.Image.prototype.expression, ee.ImageCollection.prototype.getInfo, ee.ImageCollection, ee.ImageCollection.prototype.select,
ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.getVideoThumbURL, ee.ImageCollection.prototype.first, ee.ImageCollection.prototype.getFilmstripThumbURL, ee.List, ee.Number, ee.Serializer.encodeCloudApiPretty, ee.Serializer.toCloudApiJSON, ee.Serializer.encodeCloudApi, ee.Serializer.toReadableJSON, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.toJSON, ee.Serializer.encode, ee.String, ee.Terrain].forEach(function(fn, i) {
fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
});
goog.global.EXPORTED_FN_INFO = exportedFnInfo;

View File

@ -1,6 +1,6 @@
{
"name": "@google/earthengine",
"version": "0.1.244",
"version": "0.1.245",
"description": "JavaScript client for Google Earth Engine API.",
"author": "Google LLC",
"license": "Apache-2.0",

View File

@ -26,7 +26,7 @@ const {PromiseRequestService} = goog.require('eeapiclient.promise_request_servic
const apiclient = {};
const API_CLIENT_VERSION = '0.1.244';
const API_CLIENT_VERSION = '0.1.245';
exports.VERSION = apiVersion.VERSION;
exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
@ -541,7 +541,7 @@ apiclient.setAuthTokenRefresher = function(refresher) {
*/
apiclient.getAuthToken = function() {
const isExpired = apiclient.authTokenExpiration_ &&
(goog.now() - apiclient.authTokenExpiration_) >= 0;
(Date.now() - apiclient.authTokenExpiration_) >= 0;
if (isExpired) {
apiclient.clearAuthToken();
}
@ -1050,7 +1050,7 @@ apiclient.ensureAuthLibLoaded_ = function(callback) {
done();
} else {
// The library is not loaded; load it now.
let callbackName = goog.now().toString(36);
let callbackName = Date.now().toString(36);
while (callbackName in goog.global) {
callbackName += '_';
}
@ -1103,7 +1103,7 @@ apiclient.handleAuthResult_ = function(success, error, result) {
timeout['unref']();
}
apiclient.authTokenExpiration_ = goog.now() + expiresInMs;
apiclient.authTokenExpiration_ = Date.now() + expiresInMs;
}
apiclient.authToken_ = token;
if (success) {

View File

@ -9080,9 +9080,10 @@ export class TableSource extends Serializable {
/**
* A format with which to parse fields encoding dates. The format pattern must
* be as described at http: //joda-time.sourceforge.net/apidocs/org/ //
* joda/time/format/DateTimeFormat.html. If left blank, dates will be imported
* as strings. For CSV/TFRecord sources only.
* be as described at
* http://joda-time.sourceforge.net/apidocs/org/joda/time/format/DateTimeFormat.html.
* If left blank, dates will be imported as strings. For CSV/TFRecord sources
* only.
*/
set dateFormat(value: string|null) {
this.Serializable$set('dateFormat', value);

View File

@ -68,10 +68,14 @@ ee.FeatureCollection = function(args, opt_column) {
if (opt_column) {
actualArgs['geometryColumn'] = opt_column;
}
ee.FeatureCollection.base(this, 'constructor', new ee.ApiFunction('Collection.loadTable'), actualArgs);
ee.FeatureCollection.base(
this,
'constructor',
new ee.ApiFunction('Collection.loadTable'), actualArgs);
} else if (Array.isArray(args)) {
// A list of features.
ee.FeatureCollection.base(this, 'constructor', new ee.ApiFunction('Collection'), {
ee.FeatureCollection.base(
this, 'constructor', new ee.ApiFunction('Collection'), {
'features': goog.array.map(args, function(elem) {
return new ee.Feature(elem);
})
@ -81,13 +85,15 @@ ee.FeatureCollection = function(args, opt_column) {
ee.FeatureCollection.base(
this, 'constructor', new ee.ApiFunction('Collection'),
{'features': args});
} else if (args instanceof Object && args['type'] === 'FeatureCollection') {
} else if (args && typeof args === 'object'
&& args['type'] === 'FeatureCollection') {
ee.FeatureCollection.base(
this, 'constructor', new ee.ApiFunction('Collection'),
{'features': args['features'].map(f => new ee.Feature(f))});
} else if (args instanceof ee.ComputedObject) {
// A custom object to reinterpret as a FeatureCollection.
ee.FeatureCollection.base(this, 'constructor', args.func, args.args, args.varName);
ee.FeatureCollection.base(
this, 'constructor', args.func, args.args, args.varName);
} else {
throw Error('Unrecognized argument type to convert to a ' +
'FeatureCollection: ' + args);

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python
"""The EE Python library."""
__version__ = '0.1.244'
__version__ = '0.1.245'
# Using lowercase function naming to match the JavaScript names.
# pylint: disable=g-bad-name

File diff suppressed because one or more lines are too long