Google Earth Engine – How to Import Geometry/Feature Collection in GeoJSON Format into Google Earth Engine

geojsongoogle-earth-enginegoogle-fusion-tablesremote sensingtext;

I have a GeoJSON file. I have opened it in Sublime Text Editor

How can I import it in Google Earth Engine?

Best Answer

You should be able to import GeoJSON geometry objects directly.

Here is an example of a MultiPolygon:

feature_geometry =
{
'type': 'MultiPolygon',
'coordinates': [[[
    [-90, 24],
    [-90.001, 40],
    [-90.001, 39.001],
    [-90, 31.001],
    [-90, 27]
]]]
}

Also, as mentioned in the comments, you can directly convert geojson into a shapefile using qgis or ogr then import into GEE.