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.
CSV and KML file
-
- Posts: 573
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
-
- Posts: 1803
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: CSV and KML file
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.
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.
-
- Posts: 573
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: CSV and KML file
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.
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.