aequilibrae.project.network.Node#
- class aequilibrae.project.network.Node(dataset, project)[source]#
A Node object represents a single record in the nodes table
>>> from aequilibrae import Project >>> from shapely.geometry import Point >>> proj = Project.from_path("/tmp/test_project") >>> all_nodes = proj.network.nodes # We can just get one link in specific >>> node1 = all_nodes.get(7) # We can find out which fields exist for the links >>> which_fields_do_we_have = node1.data_fields() # It success if the node_id already does not exist >>> node1.renumber(998877) >>> node1.geometry = Point(1,2) # We can just save the node >>> node1.save()
Methods
__init__
(dataset, project)connect_db
()connect_mode
(area, mode_id[, link_types, ...])Adds centroid connectors for the desired mode to the network file
data_fields
()lists all data fields for the node, as available in the database
renumber
(new_id)Renumbers the node in the network
save
()Saves node to database