Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/l/i/linz2osm-HEAD/linz2osm/convert/tests/osm.py   linz2osm(Download)
        w = osm.OSMCreateWriter()
        ids = [
            w.build_geom(geos.Point(123, 456), []),
            w.build_geom(geos.Point(123, 456), []),
        ]
        self.assertEqual(len(w.tree.findall('.//node')), 2)
 
        w = osm.OSMCreateWriter()
        ids = w.build_geom(geos.MultiPoint(geos.Point(123, 456), geos.Point(123,456)), {})
 
        w = osm.OSMCreateWriter()
        ids = w.build_geom(geos.MultiPoint(geos.Point(123, 456), geos.Point(12,34)), {})
        ids = w.build_geom(geos.Point(123, 456), {})
        self.assertEqual(len(w.tree.findall('.//node')), 3)