8 import fields2cover
as f2c
9 from os.path
import exists
12 assert pytest.approx(a) == pytest.approx(b)
16 line = f2c.LinearRing();
17 line.addPoint(-10, 0);
18 line.addPoint(-10, 20);
19 line.addPoint(10, 20);
21 line.addPoint(-10, 0);
26 line1 = f2c.LineString();
27 line1.addPoint( 0.0, 1.0);
28 line1.addPoint( 1.0, 1.0);
29 line1.addPoint( 1.0, 4.0);
30 swath1 = f2c.Swath(line1);
32 path1.appendSwath(swath1, 2.0);