Compatibility alias matching RCamelsPE::read_geospatial().
Usage
read_geospatial(type = c("gauges", "catchments"), path = get_camels_pe_path())Examples
catchments <- read_geospatial(type = "catchments")
head(catchments)
#> Simple feature collection with 6 features and 10 fields
#> Geometry type: MULTIPOLYGON
#> Dimension: XY
#> Bounding box: xmin: -80.48125 ymin: -17.21625 xmax: -68.56208 ymax: -3.97625
#> Geodetic CRS: WGS 84
#> gauge_id name name_cat area
#> 1 PE_212500 Agua Azul Cuenca Chillón 1962.2939
#> 2 PE_47E0D438 Alamor Cuenca Chira 1187.5657
#> 3 PE_30455012121 Amaru Mayu Intercuenca Medio Bajo Madre de Dios 90693.0568
#> 4 PE_117059 Ancoaque Cuenca Mauri 358.4666
#> 5 PE_212700 Antapucro Cuenca Lurín 950.3986
#> 6 PE_47A00F5E Antioquia Cuenca Lurín 804.6763
#> perimeter is_nested downstream_gauge_id upstream_gauge_id nested_group_id
#> 1 283.75668 TRUE NONE PE_111151 PE_212500
#> 2 230.04153 TRUE PE_47E09732 NONE PE_47E0B1DE
#> 3 1958.79641 TRUE NONE PE_1113355 PE_30455012121
#> 4 98.68844 TRUE PE_117060 NONE PE_117060
#> 5 163.70873 TRUE NONE PE_47A00F5E PE_212700
#> 6 148.86928 TRUE PE_212700 NONE PE_212700
#> nested_group_size geom
#> 1 4 MULTIPOLYGON (((-76.97292 -...
#> 2 6 MULTIPOLYGON (((-80.38875 -...
#> 3 2 MULTIPOLYGON (((-69.23042 -...
#> 4 2 MULTIPOLYGON (((-69.92042 -...
#> 5 2 MULTIPOLYGON (((-76.60042 -...
#> 6 2 MULTIPOLYGON (((-76.54542 -...