Stage Plots¶
The /stage_plots API endpoint allows users to stage data for batch processing in Google Earth Engine.
This step checks the integrity of the uploaded file, and if the file is valid, it is staged in cloud storage.
This means a collection_id is generated for the uploaded collection, and an initial record is created.
Currently, the following data formats are supported:
-
GeoJSON
-
CSV
-
Shapefile
-
GeoParquet
Staging data via Dashboard¶
Staging data via the dashboard can be done through the Suppliers pane.
The file will be checked for geometric validity, and indicate if some features are erroneous. In the above case, four features have empty geometries.
The easiest way to clean up a file is to use an open-source GIS software like QGIS, open the attribute table of the file,
enable the layer editing (pencil icon in top menu bar) and delete the empty geometries.

Moreover, the data can be checked for topological inconsistencies using the Topology Checker plugin, and/or using the fix geometries functionality of QGIS on the file containing the erroneous features.
If no issues are detected with the file, the dashboard offers the possible to directly run the /upload_plots operation on the staged data.
The staged and uploaded data can then be consulted in the dashboard through the Suppliers pane.
Staging data using the API¶
Parameters and Headers¶
An example of a payload for the /stage_plots endpoint is the following:
- Can be application/geo+json, text/csv, application/shapefile, application/geoparquet
With the headers being:
The Authorization header must be replaced by your user token. Check this page for more information on how to authenticate.
Python¶
In python, you can submit a request in the following way:
| stage_plots.py | |
|---|---|
Javascript¶
Curl¶
Response¶
The response looks like this:


