Problems generating the kml file:

  • Asked
  • Active
  • Viewed 11487 times
0

I am having problem uploading the CSV grid I have generated in Google Earth.

My attempt to load it shows the following error Problems generating the kml file: freemarker.core.invalidReferenceException:The following has evaluated to null or missing ==>placemark.extrainfo[0][in template "kml_template.fmt"]

0

Accepted answer

This error is possibly related to the structure of the CSV file not being exactly as expected by Collect Earth.

If you are designing the survey yourself, then you will have the option in Collect Survey Designer to produce a CSV template file for the survey. This template will show you the EXACT FORMAT that the survey expects for the CSV file with the plot locations (sadly the output from the Google Earth Engine script to produce grids doesn't comply with the expected format as it adds extra columns and possibly data that is not necessary, also, you will need to add a id column manually though Excel). alt text

So that you need to make the output of the GEE script with the grid look exactly like the template (in the case of the example in the animation the columns are :

id  YCoordinate XCoordinate elevation   slope   aspect  district    province    country

You will need to open the output from the GEE script,and make sure that the column headers and their order match completely the one in the template that was produced in Collect. Remember that in Excel you can move columns by selecting them and then drag-and-dropping them with the Shift button held

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Tip: type a few words from the error message, or put a tag in [brackets] to look only there.

Menu

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.