mirror of
https://github.com/google/earthengine-api.git
synced 2025-12-08 19:26:12 +00:00
v0.1.251
This commit is contained in:
parent
7a6f605e1b
commit
8c3a3916b1
@ -24,10 +24,6 @@ Layers are taken from a central Google Cloud Storage bucket
|
||||
|
||||
To run this app, first create an App Engine application as per the Developer
|
||||
Docs instructions for [deploying an EE-based App Engine app][1].
|
||||
Note that the service account created in the "Set up credentials" step needs to
|
||||
be registered with Earth Engine; one can only do this currently by emailing
|
||||
`earthengine@google.com` for it to be added to the whitelist; in the future (Q1
|
||||
2020), this validation process will be more streamlined.
|
||||
|
||||
## Deploying
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -4950,9 +4950,8 @@ goog.debug.freeze = function(arg) {
|
||||
return goog.debug.freezeInternal_(arg);
|
||||
}();
|
||||
};
|
||||
goog.events.BrowserFeature = {HAS_W3C_BUTTON:!goog.userAgent.IE || goog.userAgent.isDocumentModeOrHigher(9), HAS_W3C_EVENT_SUPPORT:!goog.userAgent.IE || goog.userAgent.isDocumentModeOrHigher(9), SET_KEY_CODE_TO_PREVENT_DEFAULT:goog.userAgent.IE && !goog.userAgent.isVersionOrHigher("9"), HAS_NAVIGATOR_ONLINE_PROPERTY:!goog.userAgent.WEBKIT || goog.userAgent.isVersionOrHigher("528"), HAS_HTML5_NETWORK_EVENT_SUPPORT:goog.userAgent.GECKO && goog.userAgent.isVersionOrHigher("1.9b") || goog.userAgent.IE &&
|
||||
goog.userAgent.isVersionOrHigher("8") || goog.userAgent.OPERA && goog.userAgent.isVersionOrHigher("9.5") || goog.userAgent.WEBKIT && goog.userAgent.isVersionOrHigher("528"), HTML5_NETWORK_EVENTS_FIRE_ON_BODY:goog.userAgent.GECKO && !goog.userAgent.isVersionOrHigher("8") || goog.userAgent.IE && !goog.userAgent.isVersionOrHigher("9"), TOUCH_ENABLED:"ontouchstart" in goog.global || !!(goog.global.document && document.documentElement && "ontouchstart" in document.documentElement) || !(!goog.global.navigator ||
|
||||
!goog.global.navigator.maxTouchPoints && !goog.global.navigator.msMaxTouchPoints), POINTER_EVENTS:"PointerEvent" in goog.global, MSPOINTER_EVENTS:"MSPointerEvent" in goog.global && !(!goog.global.navigator || !goog.global.navigator.msPointerEnabled), PASSIVE_EVENTS:function(fn) {
|
||||
goog.events.BrowserFeature = {HAS_W3C_BUTTON:!0, HAS_W3C_EVENT_SUPPORT:!0, SET_KEY_CODE_TO_PREVENT_DEFAULT:!1, HAS_NAVIGATOR_ONLINE_PROPERTY:!0, HAS_HTML5_NETWORK_EVENT_SUPPORT:goog.userAgent.GECKO && goog.userAgent.isVersionOrHigher("1.9b") || goog.userAgent.IE && goog.userAgent.isVersionOrHigher("8") || goog.userAgent.OPERA && goog.userAgent.isVersionOrHigher("9.5") || goog.userAgent.WEBKIT && goog.userAgent.isVersionOrHigher("528"), HTML5_NETWORK_EVENTS_FIRE_ON_BODY:!1, TOUCH_ENABLED:"ontouchstart" in
|
||||
goog.global || !!(goog.global.document && document.documentElement && "ontouchstart" in document.documentElement) || !(!goog.global.navigator || !goog.global.navigator.maxTouchPoints && !goog.global.navigator.msMaxTouchPoints), POINTER_EVENTS:"PointerEvent" in goog.global, MSPOINTER_EVENTS:"MSPointerEvent" in goog.global && !(!goog.global.navigator || !goog.global.navigator.msPointerEnabled), PASSIVE_EVENTS:function(fn) {
|
||||
return {valueOf:fn}.valueOf();
|
||||
}(function() {
|
||||
if (!goog.global.addEventListener || !Object.defineProperty) {
|
||||
@ -14435,7 +14434,7 @@ goog.net.jsloader.Error = function(code, opt_message) {
|
||||
goog.inherits(goog.net.jsloader.Error, module$contents$goog$debug$Error_DebugError);
|
||||
goog.json = {};
|
||||
goog.json.USE_NATIVE_JSON = !1;
|
||||
goog.json.TRY_NATIVE_JSON = !1;
|
||||
goog.json.TRY_NATIVE_JSON = !0;
|
||||
goog.json.isValid = function(s) {
|
||||
return /^\s*$/.test(s) ? !1 : /^[\],:{}\s\u2028\u2029]*$/.test(s.replace(/\\["\\\/bfnrtu]/g, "@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g, "]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g, ""));
|
||||
};
|
||||
@ -15287,7 +15286,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.250";
|
||||
ee.apiclient.API_CLIENT_VERSION = "0.1.251";
|
||||
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;
|
||||
@ -15555,8 +15554,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.250";
|
||||
"0.1.250" === version && (version = "latest");
|
||||
var headers = {"Content-Type":contentType, }, version = "0.1.251";
|
||||
"0.1.251" === 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) {
|
||||
|
||||
@ -4950,9 +4950,8 @@ goog.debug.freeze = function(arg) {
|
||||
return goog.debug.freezeInternal_(arg);
|
||||
}();
|
||||
};
|
||||
goog.events.BrowserFeature = {HAS_W3C_BUTTON:!goog.userAgent.IE || goog.userAgent.isDocumentModeOrHigher(9), HAS_W3C_EVENT_SUPPORT:!goog.userAgent.IE || goog.userAgent.isDocumentModeOrHigher(9), SET_KEY_CODE_TO_PREVENT_DEFAULT:goog.userAgent.IE && !goog.userAgent.isVersionOrHigher("9"), HAS_NAVIGATOR_ONLINE_PROPERTY:!goog.userAgent.WEBKIT || goog.userAgent.isVersionOrHigher("528"), HAS_HTML5_NETWORK_EVENT_SUPPORT:goog.userAgent.GECKO && goog.userAgent.isVersionOrHigher("1.9b") || goog.userAgent.IE &&
|
||||
goog.userAgent.isVersionOrHigher("8") || goog.userAgent.OPERA && goog.userAgent.isVersionOrHigher("9.5") || goog.userAgent.WEBKIT && goog.userAgent.isVersionOrHigher("528"), HTML5_NETWORK_EVENTS_FIRE_ON_BODY:goog.userAgent.GECKO && !goog.userAgent.isVersionOrHigher("8") || goog.userAgent.IE && !goog.userAgent.isVersionOrHigher("9"), TOUCH_ENABLED:"ontouchstart" in goog.global || !!(goog.global.document && document.documentElement && "ontouchstart" in document.documentElement) || !(!goog.global.navigator ||
|
||||
!goog.global.navigator.maxTouchPoints && !goog.global.navigator.msMaxTouchPoints), POINTER_EVENTS:"PointerEvent" in goog.global, MSPOINTER_EVENTS:"MSPointerEvent" in goog.global && !(!goog.global.navigator || !goog.global.navigator.msPointerEnabled), PASSIVE_EVENTS:function(fn) {
|
||||
goog.events.BrowserFeature = {HAS_W3C_BUTTON:!0, HAS_W3C_EVENT_SUPPORT:!0, SET_KEY_CODE_TO_PREVENT_DEFAULT:!1, HAS_NAVIGATOR_ONLINE_PROPERTY:!0, HAS_HTML5_NETWORK_EVENT_SUPPORT:goog.userAgent.GECKO && goog.userAgent.isVersionOrHigher("1.9b") || goog.userAgent.IE && goog.userAgent.isVersionOrHigher("8") || goog.userAgent.OPERA && goog.userAgent.isVersionOrHigher("9.5") || goog.userAgent.WEBKIT && goog.userAgent.isVersionOrHigher("528"), HTML5_NETWORK_EVENTS_FIRE_ON_BODY:!1, TOUCH_ENABLED:"ontouchstart" in
|
||||
goog.global || !!(goog.global.document && document.documentElement && "ontouchstart" in document.documentElement) || !(!goog.global.navigator || !goog.global.navigator.maxTouchPoints && !goog.global.navigator.msMaxTouchPoints), POINTER_EVENTS:"PointerEvent" in goog.global, MSPOINTER_EVENTS:"MSPointerEvent" in goog.global && !(!goog.global.navigator || !goog.global.navigator.msPointerEnabled), PASSIVE_EVENTS:function(fn) {
|
||||
return {valueOf:fn}.valueOf();
|
||||
}(function() {
|
||||
if (!goog.global.addEventListener || !Object.defineProperty) {
|
||||
@ -14435,7 +14434,7 @@ goog.net.jsloader.Error = function(code, opt_message) {
|
||||
goog.inherits(goog.net.jsloader.Error, module$contents$goog$debug$Error_DebugError);
|
||||
goog.json = {};
|
||||
goog.json.USE_NATIVE_JSON = !1;
|
||||
goog.json.TRY_NATIVE_JSON = !1;
|
||||
goog.json.TRY_NATIVE_JSON = !0;
|
||||
goog.json.isValid = function(s) {
|
||||
return /^\s*$/.test(s) ? !1 : /^[\],:{}\s\u2028\u2029]*$/.test(s.replace(/\\["\\\/bfnrtu]/g, "@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g, "]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g, ""));
|
||||
};
|
||||
@ -15287,7 +15286,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.250";
|
||||
ee.apiclient.API_CLIENT_VERSION = "0.1.251";
|
||||
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;
|
||||
@ -15555,8 +15554,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.250";
|
||||
"0.1.250" === version && (version = "latest");
|
||||
var headers = {"Content-Type":contentType, }, version = "0.1.251";
|
||||
"0.1.251" === 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) {
|
||||
@ -26376,26 +26375,26 @@ ee.SavedFunction.prototype.getSignature = function() {
|
||||
return this.signature_;
|
||||
};
|
||||
(function() {
|
||||
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction.lookup ee.ApiFunction._call ee.ApiFunction._apply ee.batch.Export.table.toCloudStorage ee.batch.Export.image.toDrive ee.batch.Export.table.toAsset ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.map.toCloudStorage ee.batch.Export.video.toDrive ee.batch.Export.image.toCloudStorage ee.batch.Export.image.toAsset ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toDrive ee.Collection.prototype.filterDate ee.Collection.prototype.limit ee.Collection.prototype.filter ee.Collection.prototype.filterMetadata ee.Collection.prototype.sort ee.Collection.prototype.map ee.Collection.prototype.filterBounds ee.Collection.prototype.iterate ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.data.setAssetAcl ee.data.getTaskList ee.data.listBuckets ee.data.getAssetRootQuota ee.data.getTaskListWithLimit ee.data.getAssetRoots ee.data.authenticateViaPopup ee.data.createAssetHome ee.data.listOperations ee.data.authenticateViaPrivateKey ee.data.cancelOperation ee.data.createAsset ee.data.getOperation ee.data.createFolder ee.data.getMapId ee.data.cancelTask ee.data.updateTask ee.data.copyAsset ee.data.renameAsset ee.data.authenticateViaOauth ee.data.authenticate ee.data.startProcessing ee.data.getTileUrl ee.data.getDownloadId ee.data.deleteAsset ee.data.startTableIngestion ee.data.makeDownloadUrl ee.data.getAssetAcl ee.data.getAsset ee.data.getTableDownloadId ee.data.computeValue ee.data.getInfo ee.data.makeTableDownloadUrl ee.data.getThumbId ee.data.getList ee.data.newTaskId ee.data.updateAsset ee.data.getVideoThumbId ee.data.listImages ee.data.getFilmstripThumbId ee.data.startIngestion ee.data.getTaskStatus ee.data.makeThumbUrl ee.data.listAssets ee.data.setAssetProperties ee.Date ee.Deserializer.fromCloudApiJSON ee.Deserializer.decodeCloudApi ee.Deserializer.decode ee.Deserializer.fromJSON ee.Dictionary ee.initialize ee.InitState ee.Algorithms ee.call ee.reset ee.apply ee.TILE_SIZE ee.Element.prototype.set ee.Feature.prototype.getMap ee.Feature.prototype.getInfo ee.Feature ee.FeatureCollection ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.select ee.FeatureCollection.prototype.getInfo ee.Filter.and ee.Filter.bounds ee.Filter.neq ee.Filter ee.Filter.gte ee.Filter.gt ee.Filter.metadata ee.Filter.inList ee.Filter.date ee.Filter.lte ee.Filter.prototype.not ee.Filter.lt ee.Filter.or ee.Filter.eq ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.LinearRing ee.Geometry.MultiPolygon ee.Geometry.prototype.serialize ee.Geometry.Point ee.Geometry.MultiLineString ee.Geometry ee.Geometry.MultiPoint ee.Geometry.BBox ee.Geometry.LineString ee.Geometry.Polygon ee.Geometry.prototype.toGeoJSON ee.Geometry.Rectangle ee.Geometry.prototype.toGeoJSONString ee.Image ee.Image.prototype.select ee.Image.prototype.expression ee.Image.prototype.getInfo ee.Image.prototype.getThumbURL ee.Image.prototype.rename ee.Image.prototype.getMap ee.Image.cat ee.Image.prototype.clip ee.Image.prototype.getDownloadURL ee.Image.rgb ee.Image.prototype.getThumbId ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection ee.ImageCollection.prototype.getInfo ee.List ee.Number ee.Serializer.toReadableCloudApiJSON ee.Serializer.toJSON ee.Serializer.toCloudApiJSON ee.Serializer.encode ee.Serializer.encodeCloudApiPretty ee.Serializer.toReadableJSON ee.Serializer.encodeCloudApi ee.String ee.Terrain".split(" "),
|
||||
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction.lookup ee.ApiFunction._call ee.ApiFunction._apply ee.batch.Export.table.toCloudStorage ee.batch.Export.image.toDrive ee.batch.Export.table.toAsset ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.map.toCloudStorage ee.batch.Export.video.toDrive ee.batch.Export.image.toCloudStorage ee.batch.Export.image.toAsset ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toDrive ee.Collection.prototype.filterDate ee.Collection.prototype.limit ee.Collection.prototype.filter ee.Collection.prototype.filterMetadata ee.Collection.prototype.sort ee.Collection.prototype.map ee.Collection.prototype.filterBounds ee.Collection.prototype.iterate ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.getInfo ee.data.authenticateViaOauth ee.data.getTaskList ee.data.startProcessing ee.data.deleteAsset ee.data.getAssetRootQuota ee.data.startTableIngestion ee.data.getTaskListWithLimit ee.data.getAsset ee.data.getAssetAcl ee.data.listOperations ee.data.cancelOperation ee.data.getInfo ee.data.getOperation ee.data.getList ee.data.updateAsset ee.data.cancelTask ee.data.startIngestion ee.data.setAssetProperties ee.data.updateTask ee.data.listAssets ee.data.setAssetAcl ee.data.listImages ee.data.getTileUrl ee.data.getDownloadId ee.data.listBuckets ee.data.makeDownloadUrl ee.data.getAssetRoots ee.data.makeTableDownloadUrl ee.data.authenticateViaPopup ee.data.createAssetHome ee.data.getTableDownloadId ee.data.computeValue ee.data.authenticateViaPrivateKey ee.data.getThumbId ee.data.createAsset ee.data.newTaskId ee.data.getVideoThumbId ee.data.createFolder ee.data.getTaskStatus ee.data.getFilmstripThumbId ee.data.copyAsset ee.data.makeThumbUrl ee.data.getMapId ee.data.authenticate ee.data.renameAsset ee.Date ee.Deserializer.fromCloudApiJSON ee.Deserializer.fromJSON ee.Deserializer.decodeCloudApi ee.Deserializer.decode ee.Dictionary ee.apply ee.TILE_SIZE ee.initialize ee.InitState ee.Algorithms ee.call ee.reset ee.Element.prototype.set ee.Feature.prototype.getMap ee.Feature.prototype.getInfo ee.Feature ee.FeatureCollection ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.select ee.Filter.prototype.not ee.Filter.eq ee.Filter.and ee.Filter.bounds ee.Filter.neq ee.Filter ee.Filter.gt ee.Filter.gte ee.Filter.metadata ee.Filter.inList ee.Filter.date ee.Filter.lte ee.Filter.lt ee.Filter.or ee.Function.prototype.call ee.Function.prototype.apply ee.Geometry.Point ee.Geometry.prototype.serialize ee.Geometry.LinearRing ee.Geometry ee.Geometry.MultiPoint ee.Geometry.MultiPolygon ee.Geometry.MultiLineString ee.Geometry.Rectangle ee.Geometry.prototype.toGeoJSON ee.Geometry.Polygon ee.Geometry.LineString ee.Geometry.BBox ee.Geometry.prototype.toGeoJSONString ee.Image.rgb ee.Image.prototype.getThumbId ee.Image.prototype.rename ee.Image.prototype.getMap ee.Image.prototype.expression ee.Image ee.Image.prototype.clip ee.Image.prototype.getThumbURL ee.Image.prototype.getInfo ee.Image.prototype.select ee.Image.cat ee.Image.prototype.getDownloadURL ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection ee.ImageCollection.prototype.getInfo ee.List ee.Number ee.Serializer.toReadableJSON ee.Serializer.toReadableCloudApiJSON ee.Serializer.toJSON ee.Serializer.encode ee.Serializer.toCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encodeCloudApi ee.String ee.Terrain".split(" "),
|
||||
orderedParamLists = [["name"], ["name", "var_args"], ["name", "namedArgs"], "collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors".split(" "), "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".split(" "), ["collection", "opt_description", "opt_assetId"], "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".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".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".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".split(" "),
|
||||
"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors".split(" "), ["start", "opt_end"], ["max", "opt_property", "opt_ascending"], ["filter"],
|
||||
["name", "operator", "value"], ["property", "opt_ascending"], ["algorithm", "opt_dropNulls"], ["geometry"], ["algorithm", "opt_first"], ["callback"], ["func", "var_args"], ["opt_callback"], ["legacy"], ["assetId", "aclUpdate", "opt_callback"], ["opt_callback"], ["project", "opt_callback"], ["rootId", "opt_callback"], ["opt_limit", "opt_callback"], ["opt_callback"], ["opt_success", "opt_error"], ["requestedId", "opt_callback"], ["opt_limit", "opt_callback"], ["privateKey", "opt_success", "opt_error",
|
||||
"opt_extraScopes"], ["operationName", "opt_callback"], ["value", "opt_path", "opt_force", "opt_properties", "opt_callback"], ["operationName", "opt_callback"], ["path", "opt_force", "opt_callback"], ["params", "opt_callback"], ["taskId", "opt_callback"], ["taskId", "action", "opt_callback"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["sourceId", "destinationId", "opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["clientId",
|
||||
"success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["taskId", "params", "opt_callback"], ["id", "x", "y", "z"], ["params", "opt_callback"], ["assetId", "opt_callback"], ["taskId", "request", "opt_callback"], ["id"], ["assetId", "opt_callback"], ["id", "opt_callback"], ["params", "opt_callback"], ["obj", "opt_callback"], ["id", "opt_callback"], ["id"], ["params", "opt_callback"], ["params", "opt_callback"], ["opt_count", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"],
|
||||
["params", "opt_callback"], ["parent", "params", "opt_callback"], ["params", "opt_callback"], ["taskId", "request", "opt_callback"], ["taskId", "opt_callback"], ["id"], ["parent", "params", "opt_callback"], ["assetId", "properties", "opt_callback"], ["date", "opt_tz"], ["json"], ["json"], ["json"], ["json"], ["opt_dict"], ["opt_baseurl", "opt_tileurl", "opt_successCallback", "opt_errorCallback", "opt_xsrfToken"], [], [], ["func", "var_args"], [], ["func", "namedArgs"], [], ["var_args"], ["opt_visParams",
|
||||
"opt_callback"], ["opt_callback"], ["geometry", "opt_properties"], ["args", "opt_column"], ["opt_visParams", "opt_callback"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["opt_callback"], ["var_args"], ["geometry", "opt_errorMargin"], ["name", "value"], ["opt_filter"], ["name", "value"], ["name", "value"], ["name", "operator", "value"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["start",
|
||||
"opt_end"], ["name", "value"], [], ["name", "value"], ["var_args"], ["name", "value"], ["namedArgs"], ["var_args"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["legacy"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj"], ["west", "south", "east", "north"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"],
|
||||
["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], [], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], [], ["opt_args"], ["var_args"], ["expression", "opt_map"], ["opt_callback"], ["params", "opt_callback"], ["var_args"], ["opt_visParams", "opt_callback"], ["var_args"], ["geometry"], ["params", "opt_callback"], ["r", "g", "b"], ["params", "opt_callback"], ["selectors", "opt_names"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], [], ["params", "opt_callback"],
|
||||
["args"], ["opt_callback"], ["list"], ["number"], ["obj"], ["obj"], ["obj"], ["obj", "opt_isCompound"], ["obj"], ["obj"], ["obj"], ["string"], []];
|
||||
["name", "operator", "value"], ["property", "opt_ascending"], ["algorithm", "opt_dropNulls"], ["geometry"], ["algorithm", "opt_first"], ["func", "var_args"], ["callback"], ["legacy"], ["opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["opt_callback"], ["taskId", "params", "opt_callback"], ["assetId", "opt_callback"], ["rootId", "opt_callback"], ["taskId", "request", "opt_callback"], ["opt_limit", "opt_callback"], ["id", "opt_callback"], ["assetId",
|
||||
"opt_callback"], ["opt_limit", "opt_callback"], ["operationName", "opt_callback"], ["id", "opt_callback"], ["operationName", "opt_callback"], ["params", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"], ["taskId", "opt_callback"], ["taskId", "request", "opt_callback"], ["assetId", "properties", "opt_callback"], ["taskId", "action", "opt_callback"], ["parent", "params", "opt_callback"], ["assetId", "aclUpdate", "opt_callback"], ["parent", "params", "opt_callback"], ["id", "x",
|
||||
"y", "z"], ["params", "opt_callback"], ["project", "opt_callback"], ["id"], ["opt_callback"], ["id"], ["opt_success", "opt_error"], ["requestedId", "opt_callback"], ["params", "opt_callback"], ["obj", "opt_callback"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes"], ["params", "opt_callback"], ["value", "opt_path", "opt_force", "opt_properties", "opt_callback"], ["opt_count", "opt_callback"], ["params", "opt_callback"], ["path", "opt_force", "opt_callback"], ["taskId", "opt_callback"],
|
||||
["params", "opt_callback"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["id"], ["params", "opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["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"],
|
||||
["opt_visParams", "opt_callback"], ["opt_callback"], ["geometry", "opt_properties"], ["args", "opt_column"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], [], ["name", "value"], ["var_args"], ["geometry", "opt_errorMargin"], ["name", "value"], ["opt_filter"], ["name", "value"], ["name", "value"], ["name", "operator", "value"], ["opt_leftField", "opt_rightValue",
|
||||
"opt_rightField", "opt_leftValue"], ["start", "opt_end"], ["name", "value"], ["name", "value"], ["var_args"], ["var_args"], ["namedArgs"], ["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", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], [], ["coords",
|
||||
"opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["west", "south", "east", "north"], [], ["r", "g", "b"], ["params", "opt_callback"], ["var_args"], ["opt_visParams", "opt_callback"], ["expression", "opt_map"], ["opt_args"], ["geometry"], ["params", "opt_callback"], ["opt_callback"], ["var_args"], ["var_args"], ["params", "opt_callback"], ["selectors", "opt_names"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], [],
|
||||
["params", "opt_callback"], ["args"], ["opt_callback"], ["list"], ["number"], ["obj"], ["obj"], ["obj"], ["obj", "opt_isCompound"], ["obj"], ["obj"], ["obj"], ["string"], []];
|
||||
[ee.ApiFunction.lookup, ee.ApiFunction._call, ee.ApiFunction._apply, module$contents$ee$batch_Export.table.toCloudStorage, module$contents$ee$batch_Export.image.toDrive, module$contents$ee$batch_Export.table.toAsset, module$contents$ee$batch_Export.videoMap.toCloudStorage, module$contents$ee$batch_Export.map.toCloudStorage, module$contents$ee$batch_Export.video.toDrive, module$contents$ee$batch_Export.image.toCloudStorage, module$contents$ee$batch_Export.image.toAsset, module$contents$ee$batch_Export.video.toCloudStorage,
|
||||
module$contents$ee$batch_Export.table.toDrive, ee.Collection.prototype.filterDate, ee.Collection.prototype.limit, ee.Collection.prototype.filter, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.sort, ee.Collection.prototype.map, ee.Collection.prototype.filterBounds, ee.Collection.prototype.iterate, ee.ComputedObject.prototype.evaluate, ee.ComputedObject.prototype.aside, ee.ComputedObject.prototype.getInfo, ee.ComputedObject.prototype.serialize, ee.data.setAssetAcl, ee.data.getTaskList,
|
||||
ee.data.listBuckets, ee.data.getAssetRootQuota, ee.data.getTaskListWithLimit, ee.data.getAssetRoots, ee.data.authenticateViaPopup, ee.data.createAssetHome, ee.data.listOperations, ee.data.authenticateViaPrivateKey, ee.data.cancelOperation, ee.data.createAsset, ee.data.getOperation, ee.data.createFolder, ee.data.getMapId, ee.data.cancelTask, ee.data.updateTask, ee.data.copyAsset, ee.data.renameAsset, ee.data.authenticateViaOauth, ee.data.authenticate, ee.data.startProcessing, ee.data.getTileUrl,
|
||||
ee.data.getDownloadId, ee.data.deleteAsset, ee.data.startTableIngestion, ee.data.makeDownloadUrl, ee.data.getAssetAcl, ee.data.getAsset, ee.data.getTableDownloadId, ee.data.computeValue, ee.data.getInfo, ee.data.makeTableDownloadUrl, ee.data.getThumbId, ee.data.getList, ee.data.newTaskId, ee.data.updateAsset, ee.data.getVideoThumbId, ee.data.listImages, ee.data.getFilmstripThumbId, ee.data.startIngestion, ee.data.getTaskStatus, ee.data.makeThumbUrl, ee.data.listAssets, ee.data.setAssetProperties,
|
||||
ee.Date, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.decodeCloudApi, ee.Deserializer.decode, ee.Deserializer.fromJSON, ee.Dictionary, ee.initialize, ee.InitState, ee.Algorithms, ee.call, ee.reset, ee.apply, ee.TILE_SIZE, ee.Element.prototype.set, ee.Feature.prototype.getMap, ee.Feature.prototype.getInfo, ee.Feature, ee.FeatureCollection, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection.prototype.select, ee.FeatureCollection.prototype.getInfo,
|
||||
ee.Filter.and, ee.Filter.bounds, ee.Filter.neq, ee.Filter, ee.Filter.gte, ee.Filter.gt, ee.Filter.metadata, ee.Filter.inList, ee.Filter.date, ee.Filter.lte, ee.Filter.prototype.not, ee.Filter.lt, ee.Filter.or, ee.Filter.eq, ee.Function.prototype.apply, ee.Function.prototype.call, ee.Geometry.LinearRing, ee.Geometry.MultiPolygon, ee.Geometry.prototype.serialize, ee.Geometry.Point, ee.Geometry.MultiLineString, ee.Geometry, ee.Geometry.MultiPoint, ee.Geometry.BBox, ee.Geometry.LineString, ee.Geometry.Polygon,
|
||||
ee.Geometry.prototype.toGeoJSON, ee.Geometry.Rectangle, ee.Geometry.prototype.toGeoJSONString, ee.Image, ee.Image.prototype.select, ee.Image.prototype.expression, ee.Image.prototype.getInfo, ee.Image.prototype.getThumbURL, ee.Image.prototype.rename, ee.Image.prototype.getMap, ee.Image.cat, ee.Image.prototype.clip, ee.Image.prototype.getDownloadURL, ee.Image.rgb, ee.Image.prototype.getThumbId, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.getVideoThumbURL,
|
||||
ee.ImageCollection.prototype.first, ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection, ee.ImageCollection.prototype.getInfo, ee.List, ee.Number, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.toJSON, ee.Serializer.toCloudApiJSON, ee.Serializer.encode, ee.Serializer.encodeCloudApiPretty, ee.Serializer.toReadableJSON, ee.Serializer.encodeCloudApi, ee.String, ee.Terrain].forEach(function(fn, i) {
|
||||
module$contents$ee$batch_Export.table.toDrive, ee.Collection.prototype.filterDate, ee.Collection.prototype.limit, ee.Collection.prototype.filter, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.sort, ee.Collection.prototype.map, ee.Collection.prototype.filterBounds, ee.Collection.prototype.iterate, ee.ComputedObject.prototype.aside, ee.ComputedObject.prototype.evaluate, ee.ComputedObject.prototype.serialize, ee.ComputedObject.prototype.getInfo, ee.data.authenticateViaOauth, ee.data.getTaskList,
|
||||
ee.data.startProcessing, ee.data.deleteAsset, ee.data.getAssetRootQuota, ee.data.startTableIngestion, ee.data.getTaskListWithLimit, ee.data.getAsset, ee.data.getAssetAcl, ee.data.listOperations, ee.data.cancelOperation, ee.data.getInfo, ee.data.getOperation, ee.data.getList, ee.data.updateAsset, ee.data.cancelTask, ee.data.startIngestion, ee.data.setAssetProperties, ee.data.updateTask, ee.data.listAssets, ee.data.setAssetAcl, ee.data.listImages, ee.data.getTileUrl, ee.data.getDownloadId, ee.data.listBuckets,
|
||||
ee.data.makeDownloadUrl, ee.data.getAssetRoots, ee.data.makeTableDownloadUrl, ee.data.authenticateViaPopup, ee.data.createAssetHome, ee.data.getTableDownloadId, ee.data.computeValue, ee.data.authenticateViaPrivateKey, ee.data.getThumbId, ee.data.createAsset, ee.data.newTaskId, ee.data.getVideoThumbId, ee.data.createFolder, ee.data.getTaskStatus, ee.data.getFilmstripThumbId, ee.data.copyAsset, ee.data.makeThumbUrl, ee.data.getMapId, ee.data.authenticate, ee.data.renameAsset, ee.Date, ee.Deserializer.fromCloudApiJSON,
|
||||
ee.Deserializer.fromJSON, ee.Deserializer.decodeCloudApi, ee.Deserializer.decode, ee.Dictionary, ee.apply, ee.TILE_SIZE, ee.initialize, ee.InitState, ee.Algorithms, ee.call, ee.reset, ee.Element.prototype.set, ee.Feature.prototype.getMap, ee.Feature.prototype.getInfo, ee.Feature, ee.FeatureCollection, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection.prototype.select, ee.Filter.prototype.not, ee.Filter.eq,
|
||||
ee.Filter.and, ee.Filter.bounds, ee.Filter.neq, ee.Filter, ee.Filter.gt, ee.Filter.gte, ee.Filter.metadata, ee.Filter.inList, ee.Filter.date, ee.Filter.lte, ee.Filter.lt, ee.Filter.or, ee.Function.prototype.call, ee.Function.prototype.apply, ee.Geometry.Point, ee.Geometry.prototype.serialize, ee.Geometry.LinearRing, ee.Geometry, ee.Geometry.MultiPoint, ee.Geometry.MultiPolygon, ee.Geometry.MultiLineString, ee.Geometry.Rectangle, ee.Geometry.prototype.toGeoJSON, ee.Geometry.Polygon, ee.Geometry.LineString,
|
||||
ee.Geometry.BBox, ee.Geometry.prototype.toGeoJSONString, ee.Image.rgb, ee.Image.prototype.getThumbId, ee.Image.prototype.rename, ee.Image.prototype.getMap, ee.Image.prototype.expression, ee.Image, ee.Image.prototype.clip, ee.Image.prototype.getThumbURL, ee.Image.prototype.getInfo, ee.Image.prototype.select, ee.Image.cat, ee.Image.prototype.getDownloadURL, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.getVideoThumbURL, ee.ImageCollection.prototype.first,
|
||||
ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection, ee.ImageCollection.prototype.getInfo, ee.List, ee.Number, ee.Serializer.toReadableJSON, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.toJSON, ee.Serializer.encode, ee.Serializer.toCloudApiJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.encodeCloudApi, ee.String, ee.Terrain].forEach(function(fn, i) {
|
||||
fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
|
||||
});
|
||||
goog.global.EXPORTED_FN_INFO = exportedFnInfo;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@google/earthengine",
|
||||
"version": "0.1.250",
|
||||
"version": "0.1.251",
|
||||
"description": "JavaScript client for Google Earth Engine API.",
|
||||
"author": "Google LLC",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@ -26,7 +26,7 @@ const {PromiseRequestService} = goog.require('eeapiclient.promise_request_servic
|
||||
const apiclient = {};
|
||||
|
||||
|
||||
const API_CLIENT_VERSION = '0.1.250';
|
||||
const API_CLIENT_VERSION = '0.1.251';
|
||||
|
||||
exports.VERSION = apiVersion.VERSION;
|
||||
exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
|
||||
|
||||
@ -7,6 +7,96 @@ goog.require('goog.object');
|
||||
goog.require('goog.string');
|
||||
goog.require('goog.structs.Set');
|
||||
|
||||
/**
|
||||
* Extracts arguments for the passed-in function (has to be defined with the
|
||||
* 'function' keyword) from originalArgs, which could either be an array of
|
||||
* many sequenced arguments OR contain a single argument dictionary. See
|
||||
* extractFromClassConstructor() and extractFromClassMethod() for other cases.
|
||||
*
|
||||
* This helper allows users to call JS functions with argument
|
||||
* dictionaries, for example:
|
||||
*
|
||||
* ee.data.getAssetAcl({assetId: 'users/foo/bar'});
|
||||
*
|
||||
* EXAMPLE USAGE:
|
||||
*
|
||||
* ee.exampleFn = function(param1, opt_param2) {
|
||||
* args = ee.arguments.extractFromFunction(ee.exampleFn, arguments);
|
||||
* doSomethingWith(args['param1'], args['param2']);
|
||||
* }
|
||||
*
|
||||
* Note: args only contains parameters that are provided.
|
||||
*
|
||||
* The following discussions also apply to extractFromClassConstructor() and
|
||||
* extractFromClassMethod().
|
||||
*
|
||||
* USAGE WARNING:
|
||||
*
|
||||
* This helper is safe to use only in functions that meet at least one
|
||||
* of the following conditions:
|
||||
*
|
||||
* A) The function requires two or more arguments.
|
||||
* B) The function takes only an ee.ComputedObject as its first argument.
|
||||
* C) The function does not accept a "normal" object (i.e. a JavaScript
|
||||
* Object that's not an Array or Function) as its first argument.
|
||||
* D) The function accepts a "normal" object as its first argument, and
|
||||
* i) this object can only contain a limited set of possible keys
|
||||
* AND ii) the intersection between possible keys and the function's
|
||||
* expected params names is empty.
|
||||
* A visParam object is an example.
|
||||
*
|
||||
* This helper may not work with complex default parameter values that include
|
||||
* parentheses or commas:
|
||||
*
|
||||
* function(param1, param2 = {name: 'Chewbacca', age: 200}) {...}
|
||||
* or function(param1, param2 = function() {...}) {...}
|
||||
*
|
||||
* USAGE WARNING EXPLANATION:
|
||||
*
|
||||
* If these constraints are unmet, this helper cannot always tell whether
|
||||
* the user intended to:
|
||||
*
|
||||
* 1) Pass a dictionary of keyed arguments
|
||||
* e.g. ee.Dictionary({dict: {myKey: 'myValue'}});
|
||||
* or 2) Just pass a single object as a normal argument in sequence
|
||||
* e.g. ee.Dictionary({myKey: 'myValue'});
|
||||
*
|
||||
* To try to differentiate the two, we test whether all of the keys in the
|
||||
* first argument match the expected parameter names. This is guaranteed to
|
||||
* work for case (D) above. In other cases, there MAY be mistakes,
|
||||
* for example if the user wanted "myKey" above to have the value "dict",
|
||||
* we might mistakenly think the user intended #1 when in fact they wanted #2.
|
||||
*
|
||||
* Another case is when a user passes in an empty object {} to represent that
|
||||
* no arguments are provided, we would mistakenly treat the empty object {} as
|
||||
* the first argument. So in such cases, just do not pass any thing in the
|
||||
* function call.
|
||||
*
|
||||
* COMPILATION WARNING:
|
||||
*
|
||||
* This helper relies on the function prototype's toString() method to
|
||||
* extract expected parameter names. When the client library is compiled
|
||||
* with variable name obfuscation enabled, parameter names may not match the
|
||||
* keys given in named argument dictionaries, and this function will not
|
||||
* work UNLESS a goog.global['EXPORTED_FN_INFO'] map is available. Within this
|
||||
* map, the value of goog.global['EXPORTED_FN_INFO'][fn.toString()] should be
|
||||
* an object containing two unobfuscated keys:
|
||||
*
|
||||
* - 'name': The original unobfuscated name of fn.
|
||||
* - 'paramNames': A list of unobfuscated parameter names expected by fn,
|
||||
* with optional parameters prefixed by "opt_".
|
||||
*
|
||||
* The map should contain an entry for each that uses this helper.
|
||||
* Typically that means public, exported, non-deprecated functions.
|
||||
*
|
||||
* @param {!Function} fn The function for which to extract arguments.
|
||||
* @param {!Arguments} originalArgs The original arguments to the function.
|
||||
* @return {!Object} A mapping from parameter names to defined argument values,
|
||||
* if any. The keys are unobfuscated.
|
||||
* @throws {!Error} If a required parameter is not specified, an unexpected
|
||||
* parameter is provided, too many arguments are provided in sequence, or
|
||||
* fails to extract parameter names.
|
||||
*/
|
||||
ee.arguments.extractFromFunction = function(fn, originalArgs) {
|
||||
return ee.arguments.extractImpl_(
|
||||
fn, originalArgs, ee.arguments.JS_PARAM_DECL_MATCHER_FUNCTION_);
|
||||
@ -45,7 +135,7 @@ ee.arguments.extractFromFunction = function(fn, originalArgs) {
|
||||
* shall coorespond to that function instead of the class constructor. For
|
||||
* example:
|
||||
*
|
||||
* class Animation {
|
||||
* class Animation {
|
||||
* // This is fine.
|
||||
* oneconstructor(param1, param2) {...}
|
||||
* // This is also fine.
|
||||
@ -250,7 +340,7 @@ ee.arguments.getParamNames_ = function(fn, parameterMatcher) {
|
||||
}
|
||||
} else {
|
||||
// For un-compiled code, infer parameter names directly from the function
|
||||
// body. Inspired by Angular's inferInjectionArgs():
|
||||
// body. Inspired by Angular's inferInjectionArgs().
|
||||
var fnStr = fn.toString().replace(ee.arguments.JS_COMMENT_MATCHER_, '');
|
||||
const fnMatchResult = fnStr.match(parameterMatcher);
|
||||
if (fnMatchResult === null) {
|
||||
|
||||
@ -1591,7 +1591,6 @@ ee.data.deleteAsset = function(assetId, opt_callback) {
|
||||
call.handle(call.assets().delete(ee.rpc_convert.assetIdToAssetName(assetId)));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns the access control list of the asset with the given ID.
|
||||
*
|
||||
@ -3287,7 +3286,7 @@ ee.data.FileBand = class {
|
||||
*
|
||||
* For requests sent directly through the API, paths should be Google Cloud
|
||||
* Storage object names (e.g. 'gs://bucketname/filename'). In manifests uploaded
|
||||
* through the Playground IDE, paths should be relative file names (e.g.
|
||||
* through the Code Editor IDE, paths should be relative file names (e.g.
|
||||
* 'file1.tif').
|
||||
* @record @struct
|
||||
*/
|
||||
|
||||
@ -495,7 +495,7 @@ ee.initializeUnboundMethods_ = function() {
|
||||
while (nameParts.length > 1) {
|
||||
var first = nameParts[0];
|
||||
if (!(first in target)) {
|
||||
// We must add a signature property so the playground docbox recognizes
|
||||
// We must add a signature property so the Code Editor docbox recognizes
|
||||
// these objects as parts of the API.
|
||||
target[first] = {'signature': {}};
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
"""The EE Python library."""
|
||||
|
||||
__version__ = '0.1.250'
|
||||
__version__ = '0.1.251'
|
||||
|
||||
# Using lowercase function naming to match the JavaScript names.
|
||||
# pylint: disable=g-bad-name
|
||||
@ -47,6 +47,9 @@ from .imagecollection import ImageCollection
|
||||
from .serializer import Serializer
|
||||
from .terrain import Terrain
|
||||
|
||||
# Tell pytype not to worry about dynamic attributes.
|
||||
_HAS_DYNAMIC_ATTRIBUTES = True
|
||||
|
||||
# A list of autogenerated class names added by _InitializeGenerateClasses.
|
||||
_generatedClasses = []
|
||||
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""Wrapper module for running eecli.main() from the command line."""
|
||||
|
||||
import os
|
||||
|
||||
@ -53,6 +53,9 @@ class ComputedObject(six.with_metaclass(
|
||||
mapping calls do not use the same variable name.
|
||||
"""
|
||||
|
||||
# Tell pytype not to worry about dynamic attributes.
|
||||
_HAS_DYNAMIC_ATTRIBUTES = True
|
||||
|
||||
def __init__(self, func, args, opt_varName=None):
|
||||
"""Creates a computed object.
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""Test for ee._cloud_api_utils."""
|
||||
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
#!/usr/bin/env python
|
||||
"""Test for ee._helpers.
|
||||
|
||||
When the function in question is defined in ee/_helpers.py but exported for
|
||||
public use by ee/__init__.py, the test is located here but uses the ee.-prefixed
|
||||
name since that is the name we want to ensure works.
|
||||
"""
|
||||
|
||||
import six
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
"""Tests for the ee.apifunction module."""
|
||||
"""Test for the ee.apifunction module."""
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
"""Tests for the ee.computedobject module."""
|
||||
"""Test for the ee.computedobject module."""
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""Test for the ee.data module."""
|
||||
|
||||
import httplib2
|
||||
import mock
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
"""Tests for the ee.deserializer module."""
|
||||
"""Test for the ee.deserializer module."""
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
"""Tests for the ee.function module."""
|
||||
"""Test for the ee.function module."""
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
"""Test for the ee.lber module."""
|
||||
"""Test for the ee.list module."""
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
"""Test class for oauth."""
|
||||
"""Test for the ee.oauth module."""
|
||||
|
||||
|
||||
import json
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
"""Tests for the ee.serializer module."""
|
||||
"""Test for the ee.serializer module."""
|
||||
|
||||
|
||||
|
||||
|
||||
@ -17,9 +17,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"metadata": {
|
||||
"id": "krsLgVBYZw_A",
|
||||
"colab_type": "code",
|
||||
"colab": {}
|
||||
"id": "krsLgVBYZw_A"
|
||||
},
|
||||
"source": [
|
||||
"#@title Copyright 2019 Google LLC. { display-mode: \"form\" }\n",
|
||||
@ -35,14 +33,13 @@
|
||||
"# See the License for the specific language governing permissions and\n",
|
||||
"# limitations under the License."
|
||||
],
|
||||
"execution_count": 0,
|
||||
"execution_count": null,
|
||||
"outputs": []
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"id": "aV1xZ1CPi3Nw",
|
||||
"colab_type": "text"
|
||||
"id": "aV1xZ1CPi3Nw"
|
||||
},
|
||||
"source": [
|
||||
"<table class=\"ee-notebook-buttons\" align=\"left\"><td>\n",
|
||||
@ -55,41 +52,51 @@
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"id": "LAZiVi13zTE7",
|
||||
"colab_type": "text"
|
||||
"id": "LAZiVi13zTE7"
|
||||
},
|
||||
"source": [
|
||||
"# Earth Engine Python API Colab Setup\n",
|
||||
"\n",
|
||||
"This notebook demonstrates how to setup the Earth Engine Python API in Colab and provides several examples of how to print and visualize Earth Engine processed data.\n",
|
||||
"\n",
|
||||
"## Import API and get credentials\n",
|
||||
"\n",
|
||||
"The Earth Engine API is installed by default in Google Colaboratory so requires only importing and authenticating. These steps must be completed for each new Colab session, if you restart your Colab kernel, or if your Colab virtual machine is recycled due to inactivity.\n",
|
||||
"\n",
|
||||
"### Import the API\n",
|
||||
"\n",
|
||||
"This notebook demonstrates how to setup the Earth Engine Python API in Colab and provides several examples of how to print and visualize Earth Engine processed data."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"id": "a69CuP5Q6OI7"
|
||||
},
|
||||
"source": [
|
||||
"## Import API and get credentials\r\n",
|
||||
"\r\n",
|
||||
"The Earth Engine API is installed by default in Google Colaboratory so requires only importing and authenticating. These steps must be completed for each new Colab session, if you restart your Colab kernel, or if your Colab virtual machine is recycled due to inactivity."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"id": "SNh-QBc36Mvk"
|
||||
},
|
||||
"source": [
|
||||
"### Import the API\r\n",
|
||||
"\r\n",
|
||||
"Run the following cell to import the API into your session."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"metadata": {
|
||||
"id": "65RChERMzQHZ",
|
||||
"colab_type": "code",
|
||||
"colab": {}
|
||||
"id": "65RChERMzQHZ"
|
||||
},
|
||||
"source": [
|
||||
"import ee"
|
||||
],
|
||||
"execution_count": 0,
|
||||
"execution_count": null,
|
||||
"outputs": []
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"id": "s-dN42MTzg-w",
|
||||
"colab_type": "text"
|
||||
"id": "s-dN42MTzg-w"
|
||||
},
|
||||
"source": [
|
||||
"### Authenticate and initialize\n",
|
||||
@ -100,9 +107,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"metadata": {
|
||||
"id": "NMp9Ei9b0XXL",
|
||||
"colab_type": "code",
|
||||
"colab": {}
|
||||
"id": "NMp9Ei9b0XXL"
|
||||
},
|
||||
"source": [
|
||||
"# Trigger the authentication flow.\n",
|
||||
@ -111,17 +116,16 @@
|
||||
"# Initialize the library.\n",
|
||||
"ee.Initialize()"
|
||||
],
|
||||
"execution_count": 0,
|
||||
"execution_count": null,
|
||||
"outputs": []
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"id": "8I_Fr0L5AFmu",
|
||||
"colab_type": "text"
|
||||
"id": "8I_Fr0L5AFmu"
|
||||
},
|
||||
"source": [
|
||||
"### Test the API\n",
|
||||
"## Test the API\n",
|
||||
"\n",
|
||||
"Test the API by printing the elevation of Mount Everest."
|
||||
]
|
||||
@ -129,9 +133,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"metadata": {
|
||||
"id": "v7pD6pDOAhOW",
|
||||
"colab_type": "code",
|
||||
"colab": {}
|
||||
"id": "v7pD6pDOAhOW"
|
||||
},
|
||||
"source": [
|
||||
"# Print the elevation of Mount Everest.\n",
|
||||
@ -140,14 +142,13 @@
|
||||
"elev = dem.sample(xy, 30).first().get('elevation').getInfo()\n",
|
||||
"print('Mount Everest elevation (m):', elev)"
|
||||
],
|
||||
"execution_count": 0,
|
||||
"execution_count": null,
|
||||
"outputs": []
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"id": "fDLAqiNWeD6t",
|
||||
"colab_type": "text"
|
||||
"id": "fDLAqiNWeD6t"
|
||||
},
|
||||
"source": [
|
||||
"## Map visualization\n",
|
||||
@ -159,8 +160,7 @@
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"id": "45BfeVygwmKm",
|
||||
"colab_type": "text"
|
||||
"id": "45BfeVygwmKm"
|
||||
},
|
||||
"source": [
|
||||
"### Static image\n",
|
||||
@ -174,12 +174,10 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"metadata": {
|
||||
"id": "Fp4rdpy0eGjx",
|
||||
"colab_type": "code",
|
||||
"colab": {}
|
||||
"id": "Fp4rdpy0eGjx"
|
||||
},
|
||||
"source": [
|
||||
"# Import the Image function from the IPython.display module. \n",
|
||||
"# Import the Image function from the IPython.display module.\n",
|
||||
"from IPython.display import Image\n",
|
||||
"\n",
|
||||
"# Display a thumbnail of global elevation.\n",
|
||||
@ -187,14 +185,13 @@
|
||||
" .getThumbURL({'min': 0, 'max': 4000, 'dimensions': 512,\n",
|
||||
" 'palette': ['006633', 'E5FFCC', '662A00', 'D8D8D8', 'F5F5F5']}))"
|
||||
],
|
||||
"execution_count": 0,
|
||||
"execution_count": null,
|
||||
"outputs": []
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"id": "Ljo5dbLkfmVm",
|
||||
"colab_type": "text"
|
||||
"id": "Ljo5dbLkfmVm"
|
||||
},
|
||||
"source": [
|
||||
"### Interactive map\n",
|
||||
@ -212,9 +209,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"metadata": {
|
||||
"id": "VIiyf6azf4mU",
|
||||
"colab_type": "code",
|
||||
"colab": {}
|
||||
"id": "VIiyf6azf4mU"
|
||||
},
|
||||
"source": [
|
||||
"# Import the Folium library.\n",
|
||||
@ -241,7 +236,7 @@
|
||||
" 'palette': ['006633', 'E5FFCC', '662A00', 'D8D8D8', 'F5F5F5']}\n",
|
||||
"\n",
|
||||
"# Create a folium map object.\n",
|
||||
"my_map = folium.Map(location=[20, 0], zoom_start=3, height=500)\n",
|
||||
"my_map = folium.Map(location=[20, 0], zoom_start=3)\n",
|
||||
"\n",
|
||||
"# Add the elevation model to the map object.\n",
|
||||
"my_map.add_ee_layer(dem.updateMask(dem.gt(0)), vis_params, 'DEM')\n",
|
||||
@ -252,14 +247,13 @@
|
||||
"# Display the map.\n",
|
||||
"display(my_map)"
|
||||
],
|
||||
"execution_count": 0,
|
||||
"execution_count": null,
|
||||
"outputs": []
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"id": "CYfinjFhg0HN",
|
||||
"colab_type": "text"
|
||||
"id": "CYfinjFhg0HN"
|
||||
},
|
||||
"source": [
|
||||
"## Chart visualization\n",
|
||||
@ -274,9 +268,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"metadata": {
|
||||
"id": "tRPULejJhBSl",
|
||||
"colab_type": "code",
|
||||
"colab": {}
|
||||
"id": "tRPULejJhBSl"
|
||||
},
|
||||
"source": [
|
||||
"# Import the matplotlib.pyplot module.\n",
|
||||
@ -301,7 +293,7 @@
|
||||
"plt.ylabel('NIR', fontsize=12)\n",
|
||||
"plt.show()"
|
||||
],
|
||||
"execution_count": 0,
|
||||
"execution_count": null,
|
||||
"outputs": []
|
||||
}
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user