@@ -0,0 +1,1337 @@
+from nose.tools import *%0Aimport unittest%0A%0Afrom helpers import create_osm_file, osmobj, HandlerTestBase%0Aimport osmium as o%0A%0Awkbfab = o.geom.WKBFactory()%0A%0Aclass TestWkbCreateNode(HandlerTestBase, unittest.TestCase):%0A    data = %5Bosmobj('N', id=1)%5D%0A%0A    class Handler(o.SimpleHandler):%0A        def node(self, n):%0A            wkb = wkbfab.create_point(n)%0A%0Aclass TestWkbCreateWay(HandlerTestBase, unittest.TestCase):%0A    data = %5Bosmobj('N', id=1, lat=0, lon=0),%0A            osmobj('N', id=2, lat=0, lon=1),%0A            osmobj('N', id=3, lat=1, lon=0),%0A            osmobj('W', id=1, nodes = %5B1,2,3%5D)%5D%0A    apply_locations = True%0A%0A    class Handler(o.SimpleHandler):%0A        def way(self, w):%0A            wkb = wkbfab.create_linestring(w)%0A            wkb = wkbfab.create_linestring(w, direction=o.geom.direction.BACKWARD)%0A            wkb = wkbfab.create_linestring(w, use_nodes=o.geom.use_nodes.ALL)%0A%0Aclass TestWkbCreatePoly(HandlerTestBase, unittest.TestCase):%0A    data = %5Bosmobj('N', id=1, lat=0, lon=0),%0A            osmobj('N', id=2, lat=0, lon=1),%0A            osmobj('N', id=3, lat=1, lon=0),%0A            osmobj('W', id=23,%0A                   nodes = %5B1,2,3,1%5D, tags = %7B %22area%22 : %22yes%22 %7D),%0A           %5D%0A    apply_locations = True%0A%0A    class Handler(o.SimpleHandler):%0A        def area(self, a):%0A            wkb = wkbfab.create_multipolygon(a)%0A

add tests for WKBFactory