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)

asked 26 Apr '17, 17:10

pngimbwa's gravatar image

pngimbwa
21158
accept rate: 0%


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

permanent link

answered 28 Apr '17, 16:09

Mino%20Togna's gravatar image

Mino Togna ♦♦
52116
accept rate: 12%

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

permanent link

answered 01 May '17, 11:41

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
4.6k19
accept rate: 20%

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:

×83

question asked: 26 Apr '17, 17:10

question was seen: 3,029 times

last updated: 01 May '17, 11:41