jkibele / pyriv

Python library for analysis of minimum aquatic distance across rivers and coasts. It's like Google Maps for anadromous fish.
MIT License
1 stars 1 forks source link

Overall redesign scheme #19

Open jkibele opened 6 years ago

jkibele commented 6 years ago

I think I need the following modules:

  1. GraphBuilder: Builds RiverGraphs and joins them to coastal graphs. Needs a river shapefile (or potentially a RiverGraph) and a Land (or optionally, a CoastalGraph) object as input.
  2. RiverGraph: Represents a directed network of rivers, built and pruned by GraphBuilder so that all dead ends are river mouths (other dead ends pruned). Has methods that find distance to river mouth for points (or sets of points).
  3. Land: Definitely takes a polygon. Maybe takes a polyline and converts to polygon? Can create a CoastalGraph.
  4. CoastalGraph: Methods for adding points and calculating edges (with buffer) and for finding distance between points.