Menu

#2 failures in parsing of e00 files

open
nobody
None
5
2004-06-14
2004-06-14
Thomas Mack
No

Hi,

there are two misbehaviours in helpers/e00.php:

- double precision data is not recognized by that
file. The problem: in the regular expressions in the
'if' statements, it is explicitely tested for 7
digits after the point, but double precision has 14
digits there.

The solution is to just add a test for the same
expression with {7} replaced by {14}. This can be
or'd together in the if statements.

- the brace in line 75 has to be in line 72 BEFORE
the assignments to pl["x"] and pl["y"] take place,
otherwise there will never be drawn anything, as
pl["x"] etc. will remain -1 forever.

See appended e00 file for testing.

Thomas Mack

Discussion


Log in to post a comment.