atlefren/sosi.js — pull request #3 by relet (2013-10-16 12:04:58+00:00)
Title: Support for attributes after ..REF lines; LINJE geometry; 

for a geometry like

.FLATE 184:
..OBJTYPE OrtofotoAreal
..FTEMA 9460
...BILDE-NR 7606_4
..GML-FOTO-DATO1 20110127
..REF :138 :30 :-157 :-95
..GML-FOTO-DATO2 20111101
..INFO 7606_4_10m_z35.zip
..FOTO-DATO 20111101
..INFO 7606_4_10m_z35.zip
..NØ
7675000 624996

all lines after the first ..REF were parsed as references, resulting in NaN refs and lost data. The patch detects if one of the following lines again starts with dot notation.

I also added LINJE as a synonym for KURVE in older SOSI files.
And I fixed the legacy Proj4js import of definitions.

-- sorry for bundling the pull requests, the changes happened fast. :)