Skip to content

This code retrieves a FeatureCollection of catchment areas from Google Earth Engine, extracts the names of these features, converts them into a new FeatureCollection, and exports this collection to a CSV file stored in Google Drive.

Notifications You must be signed in to change notification settings

kibetbrian74/Accessing-Data-Attributes-Using-JavaScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

This JavaScript algorithm is designed to run in the Google Earth Engine (GEE) environment, it effectively extracts specific properties from geographic features and saves them in a CSV file for further use or analysis. It performs the following tasks:

  1. Load Feature Collection: It loads a feature collection from a specified asset ('projects/ee-bkibetcheuiyot/assets/lvb_catchment_areas'), which presumably contains geographic data related to catchment areas.
  2. Aggregate Feature Names: It extracts and aggregates the 'NAME' property from the features within the collection into an array called featureNames.
  3. Print Feature Names: It prints the aggregated feature names to the console (the print statement is currently commented out).
  4. Create a New Feature Collection: It converts the array of feature names into a new feature collection, where each name is transformed into a feature with a property 'Name'.
  5. Export to CSV: It exports the new feature collection to a CSV file, saving it to Google Drive with the description 'Lake_Victorian_Basins_to_excel'.

About

This code retrieves a FeatureCollection of catchment areas from Google Earth Engine, extracts the names of these features, converts them into a new FeatureCollection, and exports this collection to a CSV file stored in Google Drive.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published