---
title: "Setting up a survey for CE: Extract values from csv grid file"
url: "https://openforis.support/questions/1785/setting-up-a-survey-for-ce-extract-values-from-csv-grid-file"
tags: ["collect", "collectearth"]
status: "accepted"
score: 0
answer_count: 2
asked: "2018-05-09T12:02:17"
last_activity: "2019-03-30T22:55:36"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Setting up a survey for CE: Extract values from csv grid file

Asked by wexxo on 2018-05-09

Hi,

while creating a survey for OF CE, I followed the instructions of the CE Manual and created a grid file (CSV). Now, I would like to have the additional data (elevation, slope, aspects, and other) in my data base. At based, when the balloon pops-up in Google Earth, the variables "elevation", "slope", etc. should be already extracted from my grid (csv) file.

How can I achieve this? Is it possible to configure the survey already in OF Collect, so the data fields are filled with the extracted values beforehand?

Thank you very much!


## Accepted answer (score 0, by Open Foris on 2018-05-09)

Link: https://openforis.support/questions/1785/setting-up-a-survey-for-ce-extract-values-from-csv-grid-file/1786

Hello,

please see answer of this post in order to create the grid using a newer method (though Google Earth Engine) which adds all that data automatically: [GEE Script to generate a grid][1] 

Otherwise, also though Google Earth Engine you can add elevation,slope and aspect data to the plots (if you already have a CSV) through this link: (Remember that you need to upload first the CSV as a Fusion Table, then you get the ID of the fusion table and substitute it in line 17) : [Add DEM info to plots already generated][2]

Let me know if that works for you!


  [1]: https://code.earthengine.google.com/4014613ee9755bbf4226e26e29d87bcd
  [2]: https://code.earthengine.google.com/4032a4aae65dec7a4d835d7b4484c47c


## Answer (score 0, by collectearth on 2019-03-30)

Link: https://openforis.support/questions/1785/setting-up-a-survey-for-ce-extract-values-from-csv-grid-file/2229

This is an updated version of the grid generation script that does not require you to log in GEE

Google Earth Egnine App to generate grids :

[https://collectearth.users.earthengine.app/view/collect-earth-grid-generator][1]


  [1]: https://collectearth.users.earthengine.app/view/collect-earth-grid-generator
