Hi everyone, Until yesterday 11.05.2020 I used an old version of Open Foris Collect Earth. This version allowed me to work as I wanted i.e. GEE code editor worked very well and I had also managed to change the code for my study and so on. Since yesterday, GEE code editor does not want to open anymore, and I get the following message in the internet window I get when clicking on a plot in Google Earth, and indicating my google account to acced to GEE code editor: "Couldn't sign you in This browser or app may not be secure. Learn more Try using a different browser. If you’re already using a supported browser, you can refresh your screen and try again to sign in." I tried everything I could, but did not find any solution. I can however connect to my google account without collect earth. I downloaded the last version of Open Foris to check if this was cause of the issue, but it still does not work. I work on Windows. I know that the option 2 in "integrated service" in the survey properties allows to navigate to GEE without having to connect to google acount which is already great! However, to be able to change the code in GEE code editor opens up unique prospects, and also the simple fact to be able to get the ID of the image displayed (the precise ID) is very useful, I used this for example to send the image to my QGIS 3.8. Have you any news about this issue to share here ? is it possible to get the ID of the image from the non connected version of GEE ? Thank you for your support, Justine asked 12 May '20, 09:09 Justine converted to question 12 May '20, 10:10 Open Foris ♦♦ |
Dear Justine, Thank you for your question. Could you please share your current script to check if we could incorporate the functionality? Otherwise you may use your own script into Collect Earth as a GEE App. Basically the process is as follows:
Sounds easy, do not get excited yet : Create a GEE App to be used by Collect EarthYou need to have a script that "receives" the plot polygon and uses it to generate the windows with the Sentinel and Landsat imagery and graphs. The best would be for you to review the current code. The code for the script used by default is one ( it uses the new ui.url.get method ) is here : https://code.earthengine.google.com/?scriptPath=users%2Fsanchezpauspro%2FApps%3ACollectEarthPlotAncillary The GEE App results on this once the script is published (see how the polygon is passed as a parameter): https://collectearth.users.earthengine.app/view/plot#geoJson={%22type%22:%22MultiLineString%22,%22coordinates%22:[[[100.0,%200.0],[101.0,%201.0]],[[102.0,2.0],[103.0,3.0]]]} Here is how to publish apps if you haven’t done it before: https://developers.google.com/earth-engine/apps The main script refers to this other script that actually does most of the work (using the require construct ): https://code.earthengine.google.com/?scriptPath=users%2Fcollectearth%2Fce_scripts%3Aframes_landsat_v4 The scripts are contained in this public repository: https://code.earthengine.google.com/?accept_repo=users/collectearth/ce_scripts Integrate this new GEE App into your Collect Earth surveyOnce you have published your script as a GEE App, say the result is https://myuser.users.earthengine.app/view/myapp Then you need to link it to your survey. As this is a "newish" feature we have not incorporated the parameter yet in the GUI so you need to edit the earth.properties file inside the Collect Earth folder: C:\Users\YOUR USERNAME\AppData\Roaming\CollectEarth ( remember AppData is a hidden folder so you need to activate the visualization of hidden folders in Windows SEE HOW TO VIEW HIDDEN FOLDERS) Where it says : gee_app_url=https\://collectearth.users.earthengine.app/view/plot change it to your URL and save the file: gee_app_url=https\://myuser.users.earthengine.app/view/myapp So now after you start Collect Earth again this new GEE App will be used. We will add an easier way to configure this in the coming weeks. Hope that the answer was not too difficult to follow. Let us know if you have more doubt. Remember to always share your scripts so that is it is easier to support you. answered 12 May '20, 11:47 collectearth ♦ |
Dear Collect Earth support team, Thank you very much for your response, it is great to see how the support team is fast!
Now, the main "problem" I get is to retrieve the ID of the image displayed in GEE APP, as it is possible in the GEE code editor with "inspector" (e.g.: LANDSAT/LE07/C01/T1_SR/LE07_xxxxxx_xxxxxxxx). It is very important for me to have this ID, but I can't find out how to get it from GEE APP. Thank you again for your reactivity. I wish you a nice day, Justine answered 12 May '20, 16:25 Justine |