Tutorials/Post - Remote Sensing, GIS, Earth System, Geo-AI/ML

Uploading a shapefile to Google Earth Engine

  1. In Code Editor, shapefiles can be uploaded to the assets. In the code editor, on the left side panel, go to Assets.
  2. Click NEW and Table upload.shape-file-upload
  3. In the popup screen. Make sure you have the correct path for the asset. Click SELECT. Point to the directory that has your shapefile. Earth Engine takes these extensions to be valid shapefile.
    a)  .dbf
    b) .shx
    c) .cpg
    d) .fix
    e) .qix
    f) .sbn
    g) .prj
    h) .shp
    i) .shp.xml
    the .sbx and .qpj file is not considered valid.vbj5ljg
  4. Click OK and let it finish upload the shapefile. You can check the status of the file upload on the Tasks tab on the right-side panel on the GEE playground.
  5. Once it finishes uploading, on the code editor, locate your assets. It will be the same name that was given while uploading.mxz7qyn
  6. Click on the import icon. Now on the editor, you will see it as named default.  You can rename it as you want. Use .geometry() function to get the geometry of the uploaded table.
    var vietnam = ee.FeatureCollection('users/biplov/vietnam');
    vietnam = vietnam.geometry();
    Map.addLayer(vietnam, {color: 'red'}, 'vietnam');



Intricacies of implementing an ITU-T X.1303 Cross-Agency Situational-Awareness Platform in Maldives, Myanmar, and the Philippines


Filter a Feature Collection by attribute in Google Earth Engine


  1. Betty

    Great one.

  2. Caio Valente

    Hi everyone!

    I have a doubt.

    When I upload a shapefile containing a date column to GEE it changes to a Long type column and it returns some weird big numbers.

    Does anyone know how can I solve this problem?

  3. Omid


Leave a Reply

Powered by WordPress & Theme by Anders Norén