spaghetti 1.3.1
  • Installation
  • API
  • References
  • Site

      Contents:

      • Installation
        • Installing with conda via spaghetti-feedstock (highly recommended)
        • Installing with Python Package Index
        • Development Version
      • API
        • spaghetti.Network
        • spaghetti.PointPattern
        • spaghetti.SimulatedPointPattern
        • spaghetti
      • References
  • Page
      • spaghetti.Network._snap_to_link

spaghetti.Network._snap_to_link¶

Network._snap_to_link(self, pointpattern)[source]¶

Used internally to snap point observations to network arcs.

Parameters
pointpatternspaghetti.network.PointPattern

point pattern object

Returns
obs_to_arcdict

Dictionary with arcs as keys and lists of points as values.

arc_to_obsdict

Dictionary with point ids as keys and arc tuples as values.

dist_to_vertexdict

Dictionary with point ids as keys and values as dicts with keys for vertex ids and values as distances from point to vertex.

dist_snappeddict

Dictionary with point ids as keys and distance from point to the network arc which it is snapped.

Back to top

Source

© Copyright 2018, pysal developers.
Created using Sphinx 2.2.0.