Tuesday, 7 April 2015

google earth engine - How to import handdrawn polygon using json file in earthengine


Is there any way to import a data, say handdrawn polygons (saved as coordinates) as json or text files? I have hard time reading a file into the code editor, even ones created locally, as the code editor doesn't allow use of packages such as FileReader and XMLHttpRequest (that are generally used in javascript programming). So is there any way to save to file, and read data from text/json files in earthengine code editor? other than importing them using asset manager which restricts us to import only raster and shape data.


edit: I am new to the earthengine or in fact any gis programming. But I am not sure why the question is unclear, it is simple. In every programming language/library there is a way to save/read data locally or to drive (in this case) using standard text, csv, json etc., formats. So is there a way here or are we restricted just to use asset manager to import the two types of data? (if you are aware even the python interface supports that (as it runs locally), which I came to know recently). Because it is very obvious need when I program unless my whole code going to be written in the code editor, which is unlikely, especially if I want to do any serious computing involving other 3rd party packages, plus it feels the programming is very restricted when using code editor.





No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...