spaghetti.Network.split_arcs

Network.split_arcs(self, distance)[source]
Split all of the arcs in the network at either a

fixed distance or a fixed number of arcs.

Parameters
distancefloat

The distance at which arcs are split.

Returns
split_networkspaghetti.Network

newly instantiated spaghetti.Network object.

Examples

>>> import spaghetti as spgh
>>> ntw = spgh.Network(examples.get_path('streets.shp'))
>>> n200 = ntw.split_arcs(200.0)
>>> len(n200.arcs)
688