Page 1 of 1

measuring slope of land

Posted: October 26th, 2015, 10:05 am
by sjonabro
Hi,

Do you know if there is any way of incorporating an app that measures the slope (degree) of a farm? This app does it, for example, and I would like to incorporate it to CSPRo:
https://play.google.com/store/apps/deta ... eter&hl=en

Thanks!
sjona

Re: measuring slope of land

Posted: October 28th, 2015, 3:29 pm
by josh
If the app is installed on the device you can launch it from logic using the execsystem command. This will start the app from within CSEntry but there is no way to automatically retreive the results and put them into CSEntry. That would have to be done manually.

The logic would be something like:

Code: Select all

if execsystem("app:info.physicssolutions.multiclinometer") <>1 then
  errmsg("Failed to launch multi clinometer, is it installed on your system?");
endif;
The string that is passed into execsystem (info.physicssolutions.multiclinometer) comes from the URL of the app in the Google Play store.