SEL-Columbia / formhub

Mobile Data Collection made easy.
http://formhub.org
BSD 2-Clause "Simplified" License
259 stars 163 forks source link

upgrade XLSForm #1332

Open MartijnR opened 10 years ago

MartijnR commented 10 years ago

major change: new datatypes "geotrace" and "geoshape"

GeoODK commented 9 years ago

This would be nice to have, I think ODK Aggregate handles these data types now. Would be great if Formhub did also. Happy to help contribute, just need to know where to dig in.

edrex commented 9 years ago

Formhub's map view knows how to display and aggregate (as a heatmap) geopoint fields. Support for displaying the new geo types on the map view seems like a good idea for completeness, but doesn't seem necessary initially.

edrex commented 9 years ago

Can anyone sketch out the parts of formhub that would need updates to support these new field types? Grepping for geo_point:

prabhasp commented 9 years ago

Eric, to support simply inputting and storing these fields, I believe an update to requirements.pip with a new version of pyxform may be sufficient. That will allow XLSforms with geoshape and geotrace fields to get into formhub, and the rest should be okay.

To support mapping, you'll need to put more work in. I would look at mapview.js or similar looking filenames. On Nov 6, 2014 11:54 PM, "Eric Drechsel" notifications@github.com wrote:

Can anyone sketch out the parts of formhub that would need updates to support these new field types? Grepping for geo_point:

  • main/static/js/backend.formhub-mongo-api.js. might be the only change needed to allow collection.
  • some JS files in static/recline/dist/ would need updates to handle those fields in the reporting views
  • others?

Reply to this email directly or view it on GitHub https://github.com/SEL-Columbia/formhub/issues/1332#issuecomment-62023804 .

edrex commented 9 years ago

Thanks @prabhasp, I just discovered pyxform and realized that it would need to be updated to handle the new field types. We're just evaluating work required now, will likely come back to this in a few weeks.