How to retrieve plot coordinates from NAFORMA data

  • Asked
  • Active
  • Viewed 4661 times
1

Hi Open Foris Support Team;

How can I extract plot coordinates from NAFORMA data using R studio.

example if type

View(Plot)

R studio will let me see all Plot attributes e.g plot_id_, plot_region, vegetation_type.. but it doesn't display coordinates for Plot.

How can be able to retrieve coordinates (location_x and location_y)

1

Accepted answer

Hi Peter,

at the moment calc doesn't handle the locations data types. You can access this information through Collect. We'll be working on this feature. please stay tuned!

Thank you,

Mino

1

Accepted answer

Hi Peter,
If you want to access the coordinates from Calc, what you can do now is to define some numeric calculated attributes in Collect that will extract the information about latitude and longitude from the coordinate attributes. For example, if you have a location coordinate attribute, then create 2 numeric attributes:
- location_latitude - in the Calculated Value box, please add an expression like this: location/@y or geo:latlong(location)/@y if the location attribute stores coordinates using a SRS different from EPSG:4326 - location_latitude - in the Calculated Value box, please add an expression like this: location/@x or geo:latlong(location)/@x
Then in Calc and in R studio you will be able to access this variables like 2 regular numeric variables.
Thanks,
Open Foris Team

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.

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.