ODK GPS access and local file read

Dear ODK community,

I am in the process of implementing an ODK-based solution for a large-
scale survey operation taking place in just a few weeks. In the
interest of saving as much time as possible to meet some stringent
deadlines, I would kindly ask you for help on the following two
topics.

When using ODK Collect, what must be written into the corresponding
XForm to ask the GPS to poll its location? We wish to restrict the
area in which the form may be active. For this reason, we wish to
implement logic that restricts form operation to a certain quadrant
specified by a local file. So, my two questions are:

  1. How can we request that ODK Collect read a local file on the
    Android filesystem by a call from the XForm, and
  2. What would the recommended method of computing GPS location and
    computing a bounding box using the ODK framework?

Thanks to any and all for your help,
-Adrian

hi adrian,

you can find an example of a gps question in
http://code.google.com/p/opendatakit/source/browse/Geo+Tagger.xml?repo=forms.
you just specify the type in the bind as "geopoint". note that gps
accuracy vary across device and environment. don't expect <5m accuracy
without spending a lot of time waiting...

  1. there is no simple way to do this without modifying the code.
    http://code.google.com/p/ampath-odk/source/list?repo=collect has an
    example of a version of collect that reads a file from the sd card.

  2. ideally you'd be able to use the constraints attribute that xform
    provides to specify the range. we haven't done that before, but i've
    filed a bug at http://code.google.com/p/opendatakit/issues/detail?id=78
    to take a look.

given that you are a deadline and depending on your application, you
might want to consider the following.

  1. have users collect the four corners of your box before they start
    entry. then they collect a fifth point at the location they are
    filling out the form.

  2. have users collect a single point where they are filling out the
    form. calculate the bounding box after collection and throw out bad
    data. you'll have to train well to minimize bad data.

if you have more questions about how to design the form, send an email
to opendatakit-implementers@googlegroups.com. if you have questions
about how to modify collect to read the local file, send an email to
openmrs-developers@googlegroups.com.

ยทยทยท On Wed, Jun 2, 2010 at 23:53, ByteMaster0 wrote: > Dear ODK community, > > I am in the process of implementing an ODK-based solution for a large- > scale survey operation taking place in just a few weeks. In the > interest of saving as much time as possible to meet some stringent > deadlines, I would kindly ask you for help on the following two > topics. > > When using ODK Collect, what must be written into the corresponding > XForm to ask the GPS to poll its location? We wish to restrict the > area in which the form may be active. For this reason, we wish to > implement logic that restricts form operation to a certain quadrant > specified by a local file. So, my two questions are: > > 1. How can we request that ODK Collect read a local file on the > Android filesystem by a call from the XForm, and > 2. What would the recommended method of computing GPS location and > computing a bounding box using the ODK framework? > > Thanks to any and all for your help, > -Adrian > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >