Google Earth Engine API

repository·master·Indexed 25 days ago

https://github.com/google/earthengine-api

Python and JavaScript client libraries for performing large-scale geospatial analysis using Google's cloud-based planetary-scale dataset catalog. The repository includes the @google/earthengine JavaScript package and various demos for App Engine deployment, server-side authentication, WMTS proxying, and integration with Google Maps and BigQuery.

Tokens
11.8K
Snippets
29
Records
104
Agent score
86%

What's inside google-earthengine-api

  1. Access Earth Engine client classes and methods

    master
    Note that some Earth Engine classes and algorithms (such as ee.Join and ee.Reducer) are loaded dynamically. This means they are not included in the NPM package and will not be visible in the local source code. To see a complete list of all available client classes and methods, you must consult the official Earth Engine API Reference.
  2. Set up the Earth Engine Server-Side Authentication Node.js Demo

    master

    This demo demonstrates how to build a Google App Engine web application that communicates with Google Earth Engine using server-side authentication.

    To set up the demo locally:

    1. Clone the Earth Engine API repository:
      git clone https://github.com/google/earthengine-api.git
    2. Navigate to the demo directory:
      cd ./earthengine-api/demos/server-auth-nodejs
    3. Follow the official deployment guide to deploy the App Engine app.

    Important Authentication Note: When configuring credentials for deployment, you must use a Service Account, not an OAuth2 Client ID.

    git clone https://github.com/google/earthengine-api.git
    cd ./earthengine-api/demos/server-auth-nodejs
  3. Set up the Polygon Drawing Demo

    master

    This demo illustrates how to use polygons drawn on a Google Map with the Earth Engine JavaScript client library.

    To deploy this application, follow the official Google Earth Engine Developer documentation for deploying an EE-based App Engine app.

    Important Authentication Requirement: When configuring credentials for this demo, you must use an OAuth2 Client ID. Do not use a Service Account.

  4. Request Earth Engine tiles via WMTS Proxy

    master

    The Earth Engine WMTS Proxy implements the Web Map Tile Standard (WMTS). You can request Earth Engine tiles by calling the /GetTile endpoint with specific parameters.

    Parameters:

    • layer: The name of the Earth Engine asset (e.g., TIGER/2016/States). Layers are sourced from the gs://earthengine-catalog bucket. If the asset is an ImageCollection, the proxy returns only the first image.
    • tileMatrix: The zoom level.
    • tileRow: The Y coordinate of the tile.
    • tileCol: The X coordinate of the tile.

    If the server is running at some-wmts-server.appspot.com, a request for a tile at position (x=1, y=3, zoom=3) from the TIGER/2016/States asset would look like the following:

  5. Set up Client-Side Authentication for Earth Engine

    master

    To implement client-side authentication using the Earth Engine JavaScript client library, you must deploy an Earth Engine-based App Engine app.

    Important Requirement: For the credentials section, you must use an OAuth2 Client ID. Do not use a Service Account for this client-side authentication flow.