Hi

I have couple of questions on creating polygon sampling plots in Collect Earth survey.

  1. I saw the CE sample file on plantation_brazil that worked with polygons. However, I couldn’t upload a polygon file in Collect survey. Is there a specific format to be used? It would be great if you can guide to add polygon sampling plots. The polygons are in shape file format.

  2. Is it possible to add systematic sampling points within the polygon plot?

Regards Kanchana

asked 18 Nov '19, 09:45

kanchana's gravatar image

kanchana
2636
accept rate: 0%

Dear OF, is it also possible to sample polygons at cluster level in Collect/Collect mobile as described below (for Collect Earth): 1) adding a text/geometry attribute, with data coming from CSV, and 2) shape file location information (now fusion tables are discontinued)? Joseph

(19 Mar '20, 14:41) joseph joseph's gravatar image

Hi Kanchana!

How to use arbitrary polygons instead of the Collect Earth standard shapes for plots ( square, hexagon, NFI cluster, etc... )

The answer to this is a bit long.

YOU CAN DO IT! Yes, it is not super simple but lets start:

  • Imagine you have a super simple survey with only one attribute. This is an example : CEP for Super Simple survey.
  • Normally, the plot locations in Collect Earth are determined by the location attribute ( a required attribute of type coordinate that in the CSV of the plots is edited using the YCoordinate and XCoordinate columns )
  • If you want to use polygons instead you need to add a new text attribute (let us call it geometry), make sure that in the Collect Earth options you set is as "Coming from CSV"

alt text

alt text

So if in the first version of the survey you have a grid file that looks like this :

id,"YCoordinate","XCoordinate"
id_1,-4.998422,151.358785
id_2,-5.597393,150.467849
id_3,-5.764004,148.440329
id_4,-4.67945,149.436835
id_5,-4.945604,151.35277

In the second version of the survey the CSV that is used should look like this:

id,Ycoordinate,Xcoordinate,geometry
POLYGON_1,0,0,<Polygon><outerBoundaryIs><LinearRing><coordinates> .... </coordinates></LinearRing></outerBoundaryIs></Polygon>
POLYGON_2,0,0,<Polygon><outerBoundaryIs><LinearRing><coordinates> .... </coordinates></LinearRing></outerBoundaryIs></Polygon>
POLYGON_3,0,0,<Polygon><outerBoundaryIs><LinearRing><coordinates> .... </coordinates></LinearRing></outerBoundaryIs></Polygon>
POLYGON_4,0,0,<Polygon><outerBoundaryIs><LinearRing><coordinates> .... </coordinates></LinearRing></outerBoundaryIs></Polygon>

SO, the easiest process to get the KML polygons from a shapefile follow these steps :

  1. Open the Shapefile in QGis.
  2. Export the layer as a KML file
  3. Go to Google Drive and create a new Fusion tables. Upload the KML file that you generated from QGis.
  4. Once the import process is finished download the Fusion table and choose the CSV format. When you do this you get a CSV file where there is a column with the shape as a KML polygon.
  5. Take that column and use it to generate the actual format expected by Collect Earth

Google Fusion tables are being deprecated soon. Right now we are working on hte possibility to import a shapefile directly into Collect Earth. Using the DBF file (attribute table) as the input for the ID and so on and the shape as the geometry. More on this on the coming weeks.

IF YOU WANT TO HAVE SAMPLING DOTS! The easiest solution is to include the sampling dots inside the shapes of the polygon (then they would become a multipolygon) and then use the previously written methodology to use in the CSV.

permanent link

answered 21 Nov '19, 11:46

Open%20Foris's gravatar image

Open Foris ♦♦
1.0k5714
accept rate: 10%

edited 21 Nov '19, 11:50

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:

×494
×284

question asked: 18 Nov '19, 09:45

question was seen: 2,513 times

last updated: 19 Mar '20, 14:41