Why I am getting the error “Server returned HTTP code: 404” using Google App Engine and Google Earth Engine

好久不见. 提交于 2019-12-24 17:29:21

问题


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.


回答1:


You did not authenticate your application, hence the error.

Add:

ee.Initialize()

and you're good to go.



来源:https://stackoverflow.com/questions/34939268/why-i-am-getting-the-error-server-returned-http-code-404-using-google-app-eng

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!