getodk / aggregate

ODK Aggregate is a Java server that stores, analyzes, and presents survey data collected using ODK Collect. Contribute and make the world a better place! ✨🗄✨
https://docs.opendatakit.org/aggregate-intro/
Other
74 stars 227 forks source link

Geotrace and Geoshape points are lost because of the maximum number of characters is 255 #473

Closed mylesmcd closed 5 years ago

mylesmcd commented 5 years ago

Hi all, My issue relates closely to #471. We are trying to collect trace data but are hitting the 255 character limit. I attach to this issue an xml that uses the suggested odk:length syntax. In our case I have set the length to 50000.

Here is the xml of a test project: test_polytrace3.txt

When I check this table in Postgis the odk:length instruction works for the field with size 99 but not for the 50000 length field, which is fixed at 255. See attached screenshot of the table definition SQL.

bad_field_sizes_2

Until this is fixed we have to use a very labourious workaround... Best, Myles

mathieubossaert commented 5 years ago

Hi,

I don-t know the workaround you use but you can increase the length of the field to prevent such a problem. https://docs.opendatakit.org/aggregate-field-length/

ggalmazor commented 5 years ago

Thanks for answering, @mathieubossaert. That's the way to work around this problem.