Skip to main content
Ctrl+K

AequilibraE

    • Main menu
    • The AequilibraE Project
    • Project Components
    • Network manipulation
    • Distribution Procedures
    • Path Computation
    • Traffic Assignment
    • Public Transport
    • Transit Assignment
    • Route choice
    • Other Applications
  • Python
  • QGIS
  • GitHub
    • Main menu
    • The AequilibraE Project
    • Project Components
    • Network manipulation
    • Distribution Procedures
    • Path Computation
    • Traffic Assignment
    • Public Transport
    • Transit Assignment
    • Route choice
    • Other Applications
  • Python
  • QGIS
  • GitHub

Section Navigation

  • aequilibrae.project.Project
  • aequilibrae.project.About
  • aequilibrae.project.FieldEditor
  • aequilibrae.project.Log
  • aequilibrae.project.Matrices
  • aequilibrae.project.Network
  • aequilibrae.project.Zoning
  • aequilibrae.project.Zone
  • aequilibrae.project.network.Modes
  • aequilibrae.project.network.LinkTypes
  • aequilibrae.project.network.Links
  • aequilibrae.project.network.Nodes
  • aequilibrae.project.network.Periods
  • aequilibrae.project.network.Mode
  • aequilibrae.project.network.LinkType
  • aequilibrae.project.network.Link
  • aequilibrae.project.network.Node
  • aequilibrae.project.network.Period
  • aequilibrae.distribution.Ipf
  • aequilibrae.distribution.GravityCalibration
  • aequilibrae.distribution.GravityApplication
  • aequilibrae.distribution.SyntheticGravityModel
  • aequilibrae.matrix.AequilibraeMatrix
  • aequilibrae.paths.NetworkSkimming
  • aequilibrae.paths.Graph
  • aequilibrae.paths.TransitGraph
  • aequilibrae.paths.TrafficClass
  • aequilibrae.paths.TransitClass
  • aequilibrae.paths.VDF
  • aequilibrae.paths.TrafficAssignment
  • aequilibrae.paths.TransitAssignment
  • aequilibrae.paths.AssignmentResults
  • aequilibrae.paths.TransitAssignmentResults
  • aequilibrae.paths.SkimResults
  • aequilibrae.paths.PathResults
  • aequilibrae.paths.HyperpathGenerating
  • aequilibrae.paths.OptimalStrategies
  • aequilibrae.paths.RouteChoice
  • aequilibrae.paths.SubAreaAnalysis
  • aequilibrae.transit.Transit
  • aequilibrae.transit.TransitGraphBuilder
  • aequilibrae.transit.lib_gtfs.GTFSRouteSystemBuilder
  • aequilibrae.utils.create_delaunay_network.DelaunayAnalysis
  • aequilibrae.utils.create_example
  • aequilibrae.Parameters
  • aequilibrae.project.network.Links

aequilibrae.project.network.Links#

class aequilibrae.project.network.Links(net)[source]#

Access to the API resources to manipulate the links table in the network

>>> project = create_example(project_path)

>>> all_links = project.network.links

# We can just get one link in specific
>>> link = all_links.get(1)

# We can save changes for all links we have edited so far
>>> all_links.save()
__init__(net)[source]#

Methods

__init__(net)

copy_link(link_id)

Creates a copy of a link with a new id

delete(link_id)

Removes the link with link_id from the project

extent()

Queries the extent of the layer included in the model

get(link_id)

Get a link from the network by its link_id

new()

Creates a new link

refresh()

Refreshes all the links in memory

refresh_fields()

After adding a field one needs to refresh all the fields recognized by the software

save()

Attributes

data

Returns all links data as a Pandas DataFrame

fields

Returns a FieldEditor class instance to edit the zones table fields and their metadata

sql

Query sql for retrieving links

copy_link(link_id: int) → Link[source]#

Creates a copy of a link with a new id

It raises an error if link_id does not exist

Arguments:

link_id (int): Id of the link to copy

Returns:

link (Link): Link object for requested link_id

delete(link_id: int) → None[source]#

Removes the link with link_id from the project

Arguments:

link_id (int): Id of a link to delete

extent() → Polygon#

Queries the extent of the layer included in the model

Returns:

model extent (Polygon): Shapely polygon with the bounding box of the layer.

get(link_id: int) → Link[source]#

Get a link from the network by its link_id

It raises an error if link_id does not exist

Arguments:

link_id (int): Id of a link to retrieve

Returns:

link (Link): Link object for requested link_id

new() → Link[source]#

Creates a new link

Returns:

link (Link): A new link object populated only with link_id (not saved in the model yet)

refresh()[source]#

Refreshes all the links in memory

refresh_fields() → None[source]#

After adding a field one needs to refresh all the fields recognized by the software

save()[source]#
property data: GeoDataFrame#

Returns all links data as a Pandas DataFrame

Returns:

table (GeoDataFrame): GeoPandas GeoDataFrame with all the nodes

property fields: FieldEditor#

Returns a FieldEditor class instance to edit the zones table fields and their metadata

sql = ''#

Query sql for retrieving links

On this page
  • Links
    • Links.__init__()
    • Links.copy_link()
    • Links.delete()
    • Links.extent()
    • Links.get()
    • Links.new()
    • Links.refresh()
    • Links.refresh_fields()
    • Links.save()
    • Links.data
    • Links.fields
    • Links.sql

This Page

  • Show Source

© Copyright 2025-01-15, AequilibraE developers.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.