Cadasta / cadasta-provider-ona

[DEPRECATED] Ingest data from ONA into Cadsata'a CKAN protoype
0 stars 0 forks source link

Add support for additional geo data types #3

Open bjohare opened 8 years ago

bjohare commented 8 years ago

Currently when collecting data from GeoODK to ONA to Cadasta only point data is accepted. It is hard-coded that way currently. Polygons and polylines should also be accepted.

bjohare commented 8 years ago

@danielduhh don't suppose you know where I can get an example of the raw json data coming from ONA that includes Polygon and Polyline geom types?

danielduhh commented 8 years ago

@bjohare I haven't seen a Polygon or Polyline type in ONA. It looks like geoshapes and geotraces are supported by xlsform (http://xlsform.org/#question-types). You could author a survey and some test responses in ODK Collect with these data types to see how they're handled in the api/v1/data/{{form_id}}

wonderchook commented 8 years ago

@bjohare I'm wondering if the data isn't coming out of ONA incorrectly perhaps? I can walk you through how to add that type of data. You have to use GeoODK instead of ODK to create it.

bjohare commented 8 years ago

@wonderchook thanks, a walkthrough would be good.. @danielduhh thanks for the suggestions.

danielduhh commented 8 years ago

@bjohare anytime!

bjohare commented 8 years ago

@wonderchook don't worry.. think I have it! Will let you know if I need a few pointers..