def test_coords_input(self):
geoms = []
with fiona.open(self.shp) as source:
for r in source:
s = shape(r['geometry'])
geoms.append(s)
s2g.ShapeGraph(geoms[0:30], to_graph=True, resolution=0.01,
properties=['osm_id'])
文章目录