Open MartijnR opened 10 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.
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.
Can anyone sketch out the parts of formhub that would need updates to support these new field types? Grepping for geo_point
:
static/recline/dist/
would need updates to handle those fields in the reporting views (although geo_point is a builtin field type in recline, so it might not be a good model for how to add a custom field type to recline, and anyway this is a submodule)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 .
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.
major change: new datatypes "geotrace" and "geoshape"