为什么我收到错误“服务器返回 HTTP 代码:404"?使用 Google App Engine 和 Google Earth Engine
问题描述:
我正在尝试运行一个简单的程序,我可以将其用作 Google Earth Engine API 的工作示例,但是每次运行时都会出现上述错误.代码如下:
I am trying to run a simple program that I can use as a working example for the Google Earth Engine API, however I get the above error whenever I run it. Here is the code:
import ee
import ee.mapclient
image1 = ee.Image(1);
print(image1);
如您所见,这是一个非常简单的程序,我只是想让它运行起来,这样我就可以执行更高级的任务,但我什至无法让这个简单的程序运行起来.
As you can see it is a very simple program I just want to get it to run so I can do more advanced tasks but I can't even get this simple one to work.
答
您没有对您的应用程序进行身份验证,因此出现错误.
You did not authenticate your application, hence the error.
添加:
ee.Initialize()
你可以走了.