3

When I paste the following on EE online code editor then if offers me the option to convert to an import record.

var l8sr = ee.ImageCollection("LANDSAT/LC08/C01/T1_SR");
var roi = /* color: #d63000 */ee.Geometry.Point([-123.1231231231234, 38.1231231231234]);

One disadvantage I found on converting it to import record is that quick copy (Crtl+C) of code do not get those imports.

Instead, I can Ctrl+C them if I leave them as normal code.

And I do not actually know the advantage of having them as imported records. May I ask what's the advantage?

  • You can easily drag around or slightly adapt geometries which are import record. It is always easier to share your code using the 'get link' button, which will use the import records. – Kuik Apr 17 at 7:50
  • I think the functionality of sharing the code works both ways, doesn't matter it using import records or not. Am I wrong? – KcFnMi Apr 17 at 10:33
  • You may copy the imports by clicking the list icon next to the imports section at the top of the imports ("Show generated code"). – Nicholas Clinton May 24 at 18:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.