performant-software / Neatline

A lightweight framework for building interactive maps and publishing them on the web.
www.neatline.org
Other
105 stars 34 forks source link

POINT(NaN, NaN) artifacts in WKT cause zoom errors #63

Closed davidmcclure closed 12 years ago

davidmcclure commented 12 years ago

For an unknown reason, now and then "POINT(NaN, NaN)" WKT vectors get pushed into the saved geocoverage strings on NeatlineDataRecords. On some systems, the presence of these geometry-less vectors breaks the zoom bounds calculation.

Fix needs to either (a) stop the empty vectors from getting committed in the first place or (b) block the strings at save. Preferably the former.

davidmcclure commented 12 years ago

Fixed, provisionally at least, by https://github.com/scholarslab/Neatline/blob/dev/views/shared/javascripts/neatline_map.js#L781.