---
title: "How to retrieve plot coordinates from NAFORMA data"
url: "https://openforis.support/questions/1227/how-to-retrieve-plot-coordinates-from-naforma-data"
tags: ["calc"]
status: "answered"
score: 1
answer_count: 2
asked: "2017-04-26T17:10:57"
last_activity: "2017-05-01T11:41:42"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# How to retrieve plot coordinates from NAFORMA data

Asked by pngimbwa on 2017-04-26

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)


## Answer (score 1, by Mino Togna on 2017-04-28)

Link: https://openforis.support/questions/1227/how-to-retrieve-plot-coordinates-from-naforma-data/1232

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


## Answer (score 1, by Stefano (OF) on 2017-05-01)

Link: https://openforis.support/questions/1227/how-to-retrieve-plot-coordinates-from-naforma-data/1233

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
