Hello,

I want to use the survey for checking the accuracy of the Global Forest Change data for a province in Spain.

How can I generate a set of plots (the csv file) that I can use the survey with??

I would like to start with one province (Gerona) and then maybe assess other provinces.

There is a good shapefile with the provinces (Provincias) of Spain provided by the Spanish ministry of agriculture here : link

Thank you for the help!!

asked 04 Dec '15, 15:00

collector's gravatar image

collector
2671627
accept rate: 0%

edited 04 Dec '15, 15:05


Generating the files that contain the plot locations can done though Quantum GIS or through the Google Earth Engine Playground. In this answer I will focus on how to generate the files through the Google Earth Engine Playground as it is very easy to add the Global Forest Change data to the plot information in this way:

Steps

  1. Since you have sent the link to the shapefile what we need to do is to convert the shapefile to a fusion table so that is can be used by the Playground.
  2. Once we have the fusion table with the provinces as a fusion table we can generate the CSV files with the plot locations through GEE Playground
  3. Make sure that the plot location file (CSV) file that you are using contains the columns that the Collect Earth project file expects! Some extra attributes might have been added to the survey that are supposed to be contained within the CSV.

Requisites

To follow this way of producing the plot locations you will need to be a Google Earth Engine Trusted tester. If you don't have access yet please go to this website (link) and fill the form. It usually takes one or two days to get access.

How to upload a shapefile to a Fusion table

So to do this you will need to upload the shapefile to your Google Drive using the service provided by ShpEscape.com ( choose the option that says shp2FusionTables ). Upload your file and wait until the process is finished. Once it finishes you will get results page with a link to the fusion table that has been generated inside you Google Drive ( in my case I have uploaded the provincias.shp file that you mention and I got this result : link

How to generate the plot files

Now that we have the shapefile for the provinces of Spain as a Fusion table we can use it to generate the plots within those boundaries.

Now there are two options, to generate a random or a systematic grid of plots.

To generate a systematic grid use this link: GEE App for Systematic and Random sample generation over countries/provinces/districts or shapefiles of your own.

How to incorporate extra data ( "From CSV" attributes)

Collect Earth projects can contain many attributes that are marked as "From CSV". This means that the values of these attributes are not coming from the assessment of the user, instead these values are extracted from other sources.

Usually most Collect Earth surveys incorporate attributes of elevation, slope and aspect which are derived from the Digital Elevation Model provided by the USGS SRTM dataset and that are obtained using the Google Earth Engine scripts previously mentioned.

One can incorporate many other attributes to a survey that are obtained from other data sources, such as precipitation, population, administrative unit data (region, province and so on), soil and climate data and many other. This is really convenient as the data will be available for analysis together with the data that is actually assessed through visual interpretation, really augmenting the analysis capabilities though Saiku.

You must define the attributes that you want to add to the survey in this way (by marking them as coming "From CSV" in the Survey Designer :

alt text

For instance in the survey that we are preparing to assess the accuracy of the Global Forest Change data ( the one collector is speaking about : here it is ) we adding in this way the attributes called ELEVATION, SLOPE, ASPECT, ADM1_NAME, COUNTRY, GFC_TREE_COVER, GFC_FOREST_GAIN, GFC_FOREST_LOSS, GFC_FOREST_LOSS_YEAR and GFC_DATA_MASK ). So IT IS IMPORTANT that the file that you generate with the plot locations has exactly those column in THE SAME ORDER!

How do I know what the order of the expected coulmns in the CSV are??

Easy, find CEP file that you are using (the one that you just downloaded or if you are creating your own survey the CEP file that you have exported from the Survey Designer ). Instead of opening it by double-clicking the file right click on it and choose to open it with WinZIP/WinRAR/7Zip, whatever compression software you have.

Inside the CEP file(which is actually a zip file) you can find a file called test_plots.csv , this is a CSV containing dummy plot locations generated automatically by Collect. This file contains the exact order that Collect Earth expects for the loaded CEP file.

In the case of the GFC accuracy assessment this is the format :

ID,YCOORD,XCOORD,ELEVATION,SLOPE,ASPECT,ADM1_NAME,COUNTRY,GFC_TREE_COVER,GFC_FOREST_GAIN,GFC_FOREST_LOSS,GFC_FOREST_LOSS_YEAR,GFC_DATA_MASK
70,-30.1,-57,63,0.48915,71.56505,Artigas,Uruguay,10,0,1,7,1
119,-30.2,-57.6,41,0.21876,225,Artigas,Uruguay,20,1,1,9,1
124,-30.2,-57.1,69,2.30612,219.55966,Artigas,Uruguay,25,1,0,0,1
125,-30.2,-57,73,0.76561,45,Artigas,Uruguay,33,0,1,8,1
126,-30.2,-56.9,122,0.83295,111.80141,Artigas,Uruguay,55,0,0,0,1
127,-30.2,-56.8,108,1.86201,4.76364,Artigas,Uruguay,66,0,0,0,1
174,-30.3,-57.6,60,0.79624,299.05463,Artigas,Uruguay,0,0,0,0,0
175,-30.3,-57.5,49,1.33491,349.992,Artigas,Uruguay,0,0,0,0,2

So, of course the last step in to go to Collect Earth and open the properties menu (Tools->Properties). Once you do that choose the sample data (the CSV that you just generated) by browsing to the file and loading it!

If everything went well you will see the plots in Google Earth....

Hope that this answer was of some help, I know it has taken a while to answer sorry about that!

permanent link

answered 11 Dec '15, 12:07

collectearth's gravatar image

collectearth ♦
1.0k16
accept rate: 17%

edited 30 Mar '19, 23:00

Hello,

We are in the process of building an interactive application for accuracy assessment sampling design. The output will be a stratified random sample of the map classes in the Collect Earth plot file format. Before using this application you will need to download the Global Forest Change data and clip it to your study region. We will post the application on this page very soon.

permanent link

answered 11 Dec '15, 10:02

yelena's gravatar image

yelena
21559
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×284

question asked: 04 Dec '15, 15:00

question was seen: 76,979 times

last updated: 30 Mar '19, 23:00