variables to capture gps coordinates

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
blumski
Posts: 37
Joined: May 7th, 2018, 7:02 am

variables to capture gps coordinates

Post by blumski »

What must be the length and data type for variables to capture gps coordinates.
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: variables to capture gps coordinates

Post 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.
blumski
Posts: 37
Joined: May 7th, 2018, 7:02 am

Re: variables to capture gps coordinates

Post by blumski »

Thank you Martin
blumski
Posts: 37
Joined: May 7th, 2018, 7:02 am

Re: variables to capture gps coordinates

Post 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
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: variables to capture gps coordinates

Post 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)?
blumski
Posts: 37
Joined: May 7th, 2018, 7:02 am

Re: variables to capture gps coordinates

Post 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.
Post Reply