Page 1 of 1

variables to capture gps coordinates

Posted: May 21st, 2018, 5:30 am
by blumski
What must be the length and data type for variables to capture gps coordinates.

Re: variables to capture gps coordinates

Posted: May 21st, 2018, 8:34 am
by Gregory Martin
Latitude and longitude are numeric values. Personally, when using a decimal character in my dictionary, I make the fields length 14 and set the number of decimals to 9. That way you can safely store the maximum and minimum longitudes, which go from -180 to 180.

Re: variables to capture gps coordinates

Posted: May 25th, 2018, 10:35 am
by blumski
Thank you Martin

Re: variables to capture gps coordinates

Posted: June 2nd, 2018, 7:38 pm
by blumski
my variables (latitude and longitude) are numeric of length 14 with 9 decimals. But after exporting data to spss, the two variables are blank. What can be again the problem Please help

Re: variables to capture gps coordinates

Posted: June 2nd, 2018, 7:51 pm
by josh
Are the variables blank when you open the CSPro data file in DataViewer? If not, are they blank in the .dat file generated by CSExport? Do you see any warnings or errors in the listing file generated by export (CSExpRun.lst)?

Re: variables to capture gps coordinates

Posted: June 6th, 2018, 6:53 pm
by blumski
I discovered the problem. When exporting, i should check the "use comma for decimal mark" option in "additional options" group. Everything is okay now.