Importing Vector Data

To import raster data to Earth Engine, use the Asset Manager in the Code Editor. To import vector data, use Google Fusion Tables. This page describes importing vector data from Fusion Tables. See the Asset Manager doc for details on importing rasters using the Code Editor.

Importing vector data with Fusion Tables

To upload vector data to a Fusion Table:

  1. Log into to your Earth Engine account then create a Fusion Table. (Learn more about Fusion Tables at this link).
  2. In the ‘Import new table dialog’, click Choose File and navigate to vector data stored in a file on your computer. For simple geometries (e.g. points), a two-column location in tabular data can be used. (Note: two-column locations are not supported in the Earth Engine Explorer interface). For complex geometries, KML is usually preferrable.
  3. Click Next and inspect the table preview.
  4. If the data are correctly imported, click Next again, fill in the relevant metadata fields, then click Finish. The imported Fusion Table will be created in your Google Drive account and you will be taken to the Fusion Table page.
  5. Go to the File menu and select About this table.
  6. In the ‘About this table’ dialog, find the Id and copy it into the Earth Engine FeatureCollection constructor.

Alternatively, the website shpescape.com can create a Fusion Table directly from a shapefile.

Loading a Fusion Table to your script

To create a FeatureCollection from a Fusion Table in your script:

// Load a Fusion Table from the ID using the FeatureCollection constructor.
var fc = ee.FeatureCollection('ft:11SfWB6oBS1iWGiQxEOqF_wUgBJL7Bux-pWU-mqd5');
      

Note that everything after the ‘ft:’ is the ID from the ‘About this table’ dialog. (Alternatively, find the ID in the URL of the table).

For others to be able to use a Fusion Table you created (e.g. when you email your script link to collaborators), click the Share button in the Fusion Tables interface, then set the access level such that it is shared with whoever you want to have access. See the Fusion Tables page for more information.

Send feedback about...

Google Earth Engine API