Skip to content

Releases: FluvialGeomorph/fluvgeo

v2025.07.08

08 Jul 21:43
18cb634

Choose a tag to compare

fluvgeo 2025.07.08

Bug fix

  • Fixed a bug in the floodplain_volume and hydroflatten_dem functions when the input raster extents did not match.

2025.06.18.3

23 Jun 17:24
8d4e663

Choose a tag to compare

fluvgeo 2025.06.18.3

Minor Changes

  • Updated terminology from "detrended elevation" to "relative elevation".

v2025.06.12.1

12 Jun 18:04
d2f4375

Choose a tag to compare

fluvgeo 2025.06.12

Minor Changes

  • For the get_leaflet function, exposed zoom as a parameter.

v2025.05.03

03 May 22:29
4455bbd

Choose a tag to compare

fluvgeo 2025.05.03

Major changes

  • Adopted the nhdplusTools r package to gain access to USGS Network Linked Data Index (NLDI) services.
  • Added the pt_watershed_area function to retrieve delineated watersheds from NHDPlus via the NLDI.
  • Incorporated the pt_watershed_area function into the processing steps for cross sections to identify NHD reaches (reachcode, comid) and calculate upstream drainage basin areas.

Minor changes

  • Added hillshading to the get_terrain_leaflet function.
  • Added channel_ and floodplain_polys to the get_results_leaflet function.

v2024.04.19

19 Apr 19:54
bbbcf39

Choose a tag to compare

fluvgeo 2025.04.19

Major changes

  • Added several functions to support use in Shiny web apps:

    • Renamed the dem2rem function to detrend to support the return of both an rem and trend surface. Trend surfaces can be used to model water surfaces.
    • water_surface_area - Derive a polygon representing the water surface area at a specified rem elevation. Eliminates disconnected off-channel areas and simplifies the geometry. Used to create channel_poly and floodplain_poly sf objects.
    • xs_pts_classify - Classifies cross_section_points as falling in the channel and floodplain.
    • hydroflatten_dem - Uses a trend surface to add a water surface to a dem.
    • floodplain_volume - Calculates the volume between two surfaces, such as a DEM and water surface.
  • Updated the detrend function to not extend the interpolated trend surface beyond the extent of the input flowline_points. This was required to prevent extrapolation of the surface at each end of the reach beyond the available input data. In many cases, this extrapolation was distorting the trend surface at each end of the reach.

Minor changes

  • Updated get_dem to enable multiple threads for download.

v2025.04.17

17 Apr 22:07
f57ce9b

Choose a tag to compare

fluvgeo 2025.04.17

Bug fix

  • Remediation of apparent terra::SpatRaster object corruption. Was getting error: "expansion is not yet allowed" when nothing seemed to be wrong with the extent, crs, or resolution of the object.

v2025.04.14

14 Apr 17:52
f44e790

Choose a tag to compare

fluvgeo 2025.04.14

Bug fix

  • Fixed documentation mistake which prevented building package from source on linux.

v2025.04.12

13 Apr 02:07
c03fb8b

Choose a tag to compare

fluvgeo 2025.04.12

Major changes

  • Start using the new data package FluvialGeomorph/fluvgeodata for testing newly added functions.

  • Added new functions to support fluvgeo use in shiny apps:

    • flowline - Create a valid flowline object from raw linework.
    • flowline_points - Create a valid flowline_points object from a flowline object.
    • cross_section - Create a valid cross_section object from raw linework.
    • cross_section_points - Create a valid cross_section_points object from a cross_section object.
    • dem2rem - Convert a DEM to an REM.
    • get_dem - Get a DEM from the latest ESRI terrain image server.
    • get_leaflet - Get a basic leaflet object.
    • get_results_leaflet - Get a leaflet objet with fluvgeo objects.
    • get_terrain_leaflet - Get a leaflet object with a DEM.
    • arcgis_auth - Authorize to an AGOL service.
    • check_crs_3857 - Check if sf or terra objects are CRS 3857.
    • sf_fix_crs - Fix sf objects that might have mis-specified CRS's 3857 and 4326.
    • sf_get_z - Get z value from an elevation model for an sf object.

Minor changes

  • Swiched to using tmap v4 from CRAN.

v0.1.54

08 Apr 22:48
75387e8

Choose a tag to compare

fluvgeo v0.1.54 (2025-04-08)

Major changes

  • Updated reports to use a series of new functions to improve data quality and labeling.

  • Added a series of functions to streamline the editing and drawing of cross sections in the sf format.

    • start_left - Determines if a cross section starts to the left of the flowline.
    • sf_line_end_point - Returns the x,y corrdinates of the start or end of a line.
    • sf_point_attributes - Write the x and y coordinate values into columns.
    • xs_upstream - Determine the upstream cross section and write its vlues into new columns. * xs_bearing - Calculate the bearing of a cross section.

Minor changes

  • None.

v0.1.53

04 Feb 16:23
82df23c

Choose a tag to compare

fluvgeo v0.1.53 (2025-02-04)

Major changes

  • Converted all functions to tmap version 4 (well, v3.99).

  • Discovered that the arcgisbinding::arc.open function now no longer works reliably (see issue #91).

  • Removed all remaining dependencies on the ESRI arcgisbinding R package as many of its primary IO functions are no longer reliably working. Removed remaining functions that relied on arc.open or arc.write:

    • arc_raster2SpatRaster replaced by gdb_raster2SpatRast
    • arc2sf replaced by fc2fs
    • get_arc_wkt
    • sf2arc_table
    • sf2arc
  • Discovered that the GDAL v3.7+ OpenFileGDB driver can now read rasters.

  • The terra package for rasters is currently bundled with > GDAL 3.7

> terra::gdal()
[1] "3.9.3"
>terra::gdal(drivers = TRUE) |> filter(name == 'OpenFileGDB')
         name raster vector        can  vsi    long.name
1 OpenFileGDB   TRUE   TRUE read/write TRUE ESRI FileGDB
  • Added a test function to verify that the GDAL OpenFileGDB driver can replace arcgisbindings.

Minor changes

  • Fixed some broken test data.