GEE – How to Import Data from Text File in Google Earth Engine

google-earth-engineimport

I have 100 comma separated longitude and latitude values in a text file. I want to mark all these 100 points on GEE maps and see where they lie. This is the script I am using for marking the point:

var point1 = ee.Geometry.Point([x, y]);
Map.addLayer(point1, {color: 'cyan'}, 'geodesic polygon');

where x and y are longitude and latitude values respectively. I followed this link with a similar query but here the answer suggests to get the json text using print(geometry) but my problem is that I have generated these 100 points through a Matlab code (instead of generating them directly on GEE) according to some analysis so I don't possibly have a JSON data for them. Thus I need wanted to know how can I import these points from a local text file and work with them on GEE?

Best Answer

I solved it after suggestions in the comment. I exported it as a shapefile using QGIS and then imported it as a table.