Importing Table Data

Uploading table assets

You can use the Asset Manager or command line interface (CLI) to upload datasets in the Shapefile format. (See Importing Raster Data for details on importing rasters using the Code Editor or CLI.) Your uploaded assets are initially private, but can be shared as described in the Sharing Assets Section.

To upload a Shapefile from the Code Editor, click the button, then select Table upload. Earth Engine presents an upload dialog which should look similar to Figure 1. Click the SELECT button and navigate to a Shapefile or Zip archive containing a Shapefile on your local file system. When selecting a .shp file, be sure to select the related .dbf, .shx and .prj files. Earth Engine will default to WGS84 (longitude, latitude) coordinates if a .prj file is not provided. If you are uploading a Zip archive, make sure it contains only one Shapefile (set of .shp, .dbf, .shx, .prj, etc.) and no duplicate filenames. Make sure filenames do not include additional periods or dots. (Filenames will include a single period before the extension.)

Give the table an appropriate asset ID (which doesn't already exist) in your user folder. Click OK to start the upload.

assets
Figure 1. The asset manager table upload dialog. Note that the .shp, .dbf, and .shx files are required. The other sidecar files are optional. If the .prj file is not provided, WGS84 is assumed.

Once you have started the upload, an 'Asset ingestion' task appears on the Tasks tab at the right side of the Code Editor. Hovering over the task in the task manager shows a ? icon which you can use to check the upload status. To cancel an upload, click on the spinning icon next to the task. Once the ingestion is complete, the asset will appear in your user folder with a table_chart icon.

Loading a table asset to your script

To create a FeatureCollection in your script from a table asset, import it as described on the Managing Assets page.

Send feedback about...

Google Earth Engine API