scan-bugs-org / scan

The Symbiota2 project is an open source software project, with central goal of developing on-line tools that aid in the generation, exploration and management of biodiversity data (collection specimens, observations, images, checklist, keys, etc.). See also: http://bdj.pensoft.net/articles.php?id=1114 and http://symbiota.org/
GNU General Public License v2.0
1 stars 1 forks source link

Verbatim elevations of the form XXX–XXX' are not parsed correctly #78

Open zygoballus opened 1 year ago

zygoballus commented 1 year ago

If your record includes a verbatim elevation of 8700–9400', this gets parsed as minimumElevationInMeters: 2865, which is incorrect. It should be parsed to minimumElevationInMeters: 2652, maximumElevationInMeters: 2865. All other verbatim elevation conversions that I tried worked correctly.

zygoballus commented 3 months ago

It looks like this bug is caused by the use of an en dash instead of a hyphen. The en dash is the grammatically correct punctuation to use (to indicate a range), but in this case the conversion function doesn't recognize it.