loadApplyModel
index
/home/mark/.qgis2/python/plugins/StreetAnalysis/loadApplyModel.py

Analysis to look at all possible areas traversed based on road segments and starting points within road segments.
 
Created on Nov 7, 2018
 
__author__: Mark Altaweel
__version__: 1.0

 
Modules
       
csv
graph
math
networkx
os
pysal

 
Functions
       
inNodes(node, nodes)
Method for checking to see if the nodes already part of the road network
node-- the node to check
nodes-- the container for the nodes to check from.
load(fileName)
Load the data and creating the links for the network from street segment file. The method returns a graph with all edges in the street network.
fileName -- the shapefile name to assess.
output(outputFolder, edgesS, G)
Method to do the output of the links travelled.
--outputFolder the output folder to put the results.csv file in
--edgesS the edges to produce the traveresed outputs from the overall street graph.
--G the network that is assessed
qAlpha(...)
qAlpha(int) -> int
qBlue(...)
qBlue(int) -> int
qDrawBorderPixmap(...)
qDrawBorderPixmap(QPainter, QRect, QMargins, QPixmap)
qDrawPlainRect(...)
qDrawPlainRect(QPainter, int, int, int, int, QColor, int lineWidth=1, QBrush fill=None)
qDrawPlainRect(QPainter, QRect, QColor, int lineWidth=1, QBrush fill=None)
qDrawShadeLine(...)
qDrawShadeLine(QPainter, int, int, int, int, QPalette, bool sunken=True, int lineWidth=1, int midLineWidth=0)
qDrawShadeLine(QPainter, QPoint, QPoint, QPalette, bool sunken=True, int lineWidth=1, int midLineWidth=0)
qDrawShadePanel(...)
qDrawShadePanel(QPainter, int, int, int, int, QPalette, bool sunken=False, int lineWidth=1, QBrush fill=None)
qDrawShadePanel(QPainter, QRect, QPalette, bool sunken=False, int lineWidth=1, QBrush fill=None)
qDrawShadeRect(...)
qDrawShadeRect(QPainter, int, int, int, int, QPalette, bool sunken=False, int lineWidth=1, int midLineWidth=0, QBrush fill=None)
qDrawShadeRect(QPainter, QRect, QPalette, bool sunken=False, int lineWidth=1, int midLineWidth=0, QBrush fill=None)
qDrawWinButton(...)
qDrawWinButton(QPainter, int, int, int, int, QPalette, bool sunken=False, QBrush fill=None)
qDrawWinButton(QPainter, QRect, QPalette, bool sunken=False, QBrush fill=None)
qDrawWinPanel(...)
qDrawWinPanel(QPainter, int, int, int, int, QPalette, bool sunken=False, QBrush fill=None)
qDrawWinPanel(QPainter, QRect, QPalette, bool sunken=False, QBrush fill=None)
qFuzzyCompare(...)
qFuzzyCompare(QMatrix, QMatrix) -> bool
qFuzzyCompare(QMatrix4x4, QMatrix4x4) -> bool
qFuzzyCompare(QQuaternion, QQuaternion) -> bool
qFuzzyCompare(QTransform, QTransform) -> bool
qFuzzyCompare(QVector2D, QVector2D) -> bool
qFuzzyCompare(QVector3D, QVector3D) -> bool
qFuzzyCompare(QVector4D, QVector4D) -> bool
qGray(...)
qGray(int, int, int) -> int
qGray(int) -> int
qGreen(...)
qGreen(int) -> int
qIsGray(...)
qIsGray(int) -> bool
qRed(...)
qRed(int) -> int
qRgb(...)
qRgb(int, int, int) -> int
qRgba(...)
qRgba(int, int, int, int) -> int
qSwap(...)
qSwap(QBitmap, QBitmap)
qSwap(QBrush, QBrush)
qSwap(QIcon, QIcon)
qSwap(QImage, QImage)
qSwap(QKeySequence, QKeySequence)
qSwap(QPen, QPen)
qSwap(QPicture, QPicture)
qSwap(QPixmap, QPixmap)
qt_x11_wait_for_window_manager(...)
qt_x11_wait_for_window_manager(QWidget)
run()
Method to call and run the analysis.
runLinks(G)
Applying the shortest path algorithm from each point of the road segments
G-- the road network/graph representation.

 
Data
        QWIDGETSIZE_MAX = 16777215
links = []
linkz = {}
nodes = {}
nodesS = []
oldNodes = {}
qApp = <PyQt4.QtGui.QApplication object>