TransWikia.com

Printing Object properties in UI

Geographic Information Systems Asked by Gopal Krishna on May 25, 2021

I am trying to print the distinct values from the "crop" column of a shape file. I am able to print "crop wise count of unique points" in the console.

Crop wise unique points print results in console

This may be naive but I m wandering how to print it in the UI, same as it is printing in console.

I am trying .evaluate() but I am not getting results.

Link to my code

One Answer

This will answer just what you've asked:

you can use the (client-side) JSON.stringify() function: JSON.stringify(val) in your case.

https://code.earthengine.google.com/c2b0bc0d521ae7940f0f8966e9f4e884

You can ask in another question how to make the output a multiline string

Correct answer by Rodrigo E. Principe on May 25, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP