fresh 0.3.1
- Add
fromandextra_whereparams to waterbody specs infrs_network()for filtering waterbodies to those connected to habitat streams (#49) - Network traversal table configurable via
.frs_opt("tbl_network")(#44)
fresh 0.3.0
Server-side habitat model pipeline — replaces ~34 bcfishpass SQL scripts with 4 composable functions. See the function reference for details.
- Add
frs_extract()for staging read-only data to writable working schema (#36) - Add
frs_break()family (find,validate,apply, wrapper) for network geometry splitting viaST_LocateBetweenandfwa_slopealongintervalgradient sampling (#38) - Add
frs_classify()for labeling features by attribute ranges, break accessibility (viafwa_upstream), and manual overrides — pipeable for multi-label classification (#39) - Add
frs_aggregate()for network-directed feature summarization from points (#40) - Add
frs_col_generate()to convert gradient/measures/length to PostgreSQL generated columns — auto-recompute after geometry changes (#45) - Add
.frs_opt()for configurable column names viaoptions()— foundation for spyda compatibility (#44) - All write functions return
conninvisibly for consistent|>chaining
fresh 0.2.0
CRAN release: 2020-05-29
-
Breaking: All DB-using functions now take
connas the first required parameter instead of...connection args. Create a connection once withconn <- frs_db_conn()and pass it to all calls. Enables piping:conn |> frs_break() |> frs_classify()(#35)
fresh 0.1.0
CRAN release: 2019-10-21
- Multi-blue-line-key support for
frs_watershed_at_measure()andfrs_network()viaupstream_blkparam (#20) - Add
frs_watershed_at_measure()for watershed polygon delineation with subbasin subtraction - Add
frs_network()unified multi-table traversal function replacing per-type fetch functions - Add
frs_default_cols()with sensible column defaults for streams, lakes, crossings, fish obs, and falls - Add
upstream_measureparam for network subtraction between two points on the same stream - Add
frs_waterbody_network()for upstream/downstream lake and wetland queries via waterbody key bridge - Add
wscode_col,localcode_col, andextra_whereparams for custom table schemas - Add
frs_check_upstream()validation for cross-BLK network connectivity - Add
blue_line_keyandstream_order_minparams tofrs_point_snap()for targeted snapping via KNN (#16, #17, #7, #18) - Add stream filtering guards: exclude placeholder streams (999 wscode) and unmapped tributaries (NULL localcode) from network queries;
include_allto bypass. Subsurface flow (edge_type 1410/1425) kept in network results (real connectivity) but excluded from KNN snap candidates (#15) - Add
frs_clip()for clipping sf results to an AOI polygon, withclipparam onfrs_network()for inline use (#12) - Add
frs_watershed_split()for programmatic sub-basin delineation from break points — snap, delineate, subtract with stableblk/drmidentifiers (#31) - Security hardening: quote string values in SQL, validate table/column identifiers, clear error on missing PG env vars, gitignore credential files (#19)
- Input type validation on all numeric params
- Add subbasin query vignette with tmap v4 composition
- Fix ref CTE to always query stream network, not target table
Initial release. Stream network-aware spatial operations via direct SQL against fwapg and bcfishpass. See the function reference for details.
