CSV and KML file

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

CSV and KML file

Post by khurshid.arshad »

Dear Team

There is a way to get information in CAPI from KML and CSV files on Andriod. We are using Mapit for data collection. Mapit saves all the data in CSV and KML file.
Thanks.
A.
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: CSV and KML file

Post by Gregory Martin »

You may be able to do this, but CSPro doesn't provide any automated way of doing it.

You would have to read the files using fileread statements and then parse the data yourself. It shouldn't be so hard to do that for CSV files, but KML files will be trickier.

Another challenge is that you may not have access to the CSV/KML files, depending on where Mapit saves the data. Android has a lot of permissions limitations that restrict one app from seeing data stored by another app. Try using setfile/fileread and see if you can read the data. If you know where the files are stored but don't know the filename, you can use the dirlist function to get a list of the files in that directory.
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: CSV and KML file

Post by khurshid.arshad »

Dear Gregory Martin

Thank you for reply. Yes to work with CSV file is easy but I am trying to find out a way to access kml information.
Regards.
a.
Post Reply