pam.operations.snap
Methods for snapping elements to the network or facilities.
run_facility_link_snapping(path_population_in, path_population_out, path_network_geometry, link_id_field='id')
#
Reads a population, snaps activity facilities to a network geometry, and saves the results.
PARAMETER | DESCRIPTION |
---|---|
path_population_in
|
Path to a PAM population.
TYPE:
|
path_population_out
|
The path to save the output population.
TYPE:
|
path_network_geometry
|
Path to the network geometry file.
TYPE:
|
link_id_field
|
The link ID field to use in the network shapefile. Defaults to "id".
TYPE:
|
Source code in src/pam/operations/snap.py
snap_facilities_to_network(population, network, link_id_field='id')
#
Snaps activity facilities to a network geometry (in-place).
PARAMETER | DESCRIPTION |
---|---|
population
|
A PAM population.
TYPE:
|
network
|
A network geometry shapefile.
TYPE:
|
link_id_field
|
The link ID field to use in the network shapefile. Defaults to "id".
TYPE:
|