diff --git a/pkgdown.yml b/pkgdown.yml index d83f847..15738ff 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -5,7 +5,7 @@ articles: articles/ecql_filtering: ecql_filtering.html emodnet.wfs: emodnet.wfs.html articles/request-params: request-params.html -last_built: 2024-11-07T13:33Z +last_built: 2024-11-12T11:53Z urls: reference: https://emodnet.github.io/emodnet.wfs/reference article: https://emodnet.github.io/emodnet.wfs/articles diff --git a/reference/emodnet_get_layers.html b/reference/emodnet_get_layers.html index b10dd07..7c8e525 100644 --- a/reference/emodnet_get_layers.html +++ b/reference/emodnet_get_layers.html @@ -145,12 +145,54 @@
if (FALSE) { # interactive()
-# Layers as character vector
+ # Layers as character vector
emodnet_get_layers(
service = "biology",
layers = c("mediseh_zostera_m_pnt", "mediseh_posidonia_nodata")
)
+#> Loading ISO 19139 XML schemas...
+#> Loading ISO 19115 codelists...
+#> ✔ WFS client created successfully
+#> ℹ Service: "https://geo.vliz.be/geoserver/Emodnetbio/wfs"
+#> ℹ Version: "2.0.0"
+#> $mediseh_zostera_m_pnt
+#> Simple feature collection with 54 features and 3 fields
+#> Geometry type: POINT
+#> Dimension: XY
+#> Bounding box: xmin: -4.167154 ymin: 33.07783 xmax: 15.35766 ymax: 45.72451
+#> Geodetic CRS: WGS 84
+#> First 10 features:
+#> gml_id id country the_geom
+#> 1 mediseh_zostera_m_pnt.1 0 Spagna POINT (-2.61314 36.71681)
+#> 2 mediseh_zostera_m_pnt.2 0 Spagna POINT (-3.846598 36.75127)
+#> 3 mediseh_zostera_m_pnt.3 0 Spagna POINT (-3.957785 36.72266)
+#> 4 mediseh_zostera_m_pnt.4 0 Spagna POINT (-4.039712 36.74217)
+#> 5 mediseh_zostera_m_pnt.5 0 Spagna POINT (-4.100182 36.72331)
+#> 6 mediseh_zostera_m_pnt.6 0 Spagna POINT (-4.167154 36.71226)
+#> 7 mediseh_zostera_m_pnt.7 0 Spagna POINT (-1.268366 37.55796)
+#> 8 mediseh_zostera_m_pnt.8 0 Francia POINT (4.84864 43.37637)
+#> 9 mediseh_zostera_m_pnt.9 0 Italia POINT (13.71831 45.70017)
+#> 10 mediseh_zostera_m_pnt.10 0 Italia POINT (13.16378 45.72451)
+#>
+#> $mediseh_posidonia_nodata
+#> Simple feature collection with 465 features and 3 fields
+#> Geometry type: MULTICURVE
+#> Dimension: XY
+#> Bounding box: xmin: -2.1798 ymin: 30.26623 xmax: 34.60767 ymax: 45.47668
+#> Geodetic CRS: WGS 84
+#> First 10 features:
+#> gml_id id km the_geom
+#> 1 mediseh_posidonia_nodata.1 0 291.503233 MULTICURVE (LINESTRING (27....
+#> 2 mediseh_posidonia_nodata.2 0 75.379502 MULTICURVE (LINESTRING (23....
+#> 3 mediseh_posidonia_nodata.3 0 38.627764 MULTICURVE (LINESTRING (22....
+#> 4 mediseh_posidonia_nodata.4 0 110.344802 MULTICURVE (LINESTRING (19....
+#> 5 mediseh_posidonia_nodata.13 0 66.997461 MULTICURVE (LINESTRING (9.1...
+#> 6 mediseh_posidonia_nodata.14 0 18.090640 MULTICURVE (LINESTRING (9.7...
+#> 7 mediseh_posidonia_nodata.15 0 16.618978 MULTICURVE (LINESTRING (9.8...
+#> 8 mediseh_posidonia_nodata.16 0 1.913773 MULTICURVE (LINESTRING (10....
+#> 9 mediseh_posidonia_nodata.83 0 2.173447 MULTICURVE (LINESTRING (15....
+#> 10 mediseh_posidonia_nodata.84 0 2.817453 MULTICURVE (LINESTRING (15....
+#>
# Usage of cql_filter
@@ -159,12 +201,36 @@ Examples layers = "mediseh_zostera_m_pnt",
cql_filter = "country = 'Francia'"
)
+#> ✔ WFS client created successfully
+#> ℹ Service: "https://geo.vliz.be/geoserver/Emodnetbio/wfs"
+#> ℹ Version: "2.0.0"
+#> $mediseh_zostera_m_pnt
+#> Simple feature collection with 1 feature and 3 fields
+#> Geometry type: POINT
+#> Dimension: XY
+#> Bounding box: xmin: 4.84864 ymin: 43.37637 xmax: 4.84864 ymax: 43.37637
+#> Geodetic CRS: WGS 84
+#> gml_id id country the_geom
+#> 1 mediseh_zostera_m_pnt.8 0 Francia POINT (4.84864 43.37637)
+#>
# Usage of vendor parameter
emodnet_get_layers(
service = "biology",
layers = "mediseh_zostera_m_pnt",
count = 1
)
+#> ✔ WFS client created successfully
+#> ℹ Service: "https://geo.vliz.be/geoserver/Emodnetbio/wfs"
+#> ℹ Version: "2.0.0"
+#> $mediseh_zostera_m_pnt
+#> Simple feature collection with 1 feature and 3 fields
+#> Geometry type: POINT
+#> Dimension: XY
+#> Bounding box: xmin: -2.61314 ymin: 36.71681 xmax: -2.61314 ymax: 36.71681
+#> Geodetic CRS: WGS 84
+#> gml_id id country the_geom
+#> 1 mediseh_zostera_m_pnt.1 0 Spagna POINT (-2.61314 36.71681)
+#>
# Usage of csv output
data <- emodnet_get_layers(
@@ -172,8 +238,99 @@ Examples layers = "abiotic_observations",
outputFormat = "CSV"
)
+#> ✔ WFS client created successfully
+#> ℹ Service: "https://geo.vliz.be/geoserver/Dataportal/wfs"
+#> ℹ Version: "2.0.0"
+#> Rows: 1000000 Columns: 37
+#> ── Column specification ────────────────────────────────────────────────────────
+#> Delimiter: ","
+#> chr (17): FID, value, datatype, season, parametername, parameterunit, datap...
+#> dbl (11): id, latitude, longitude, depth, standardparameterid, dataprovider...
+#> lgl (8): aphiaid, lod, loq, class, classunit, classcode, dateprecision, sc...
+#> dttm (1): datetime
+#>
+#> ℹ Use `spec()` to retrieve the full column specification for this data.
+#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
str(data[["abiotic_observations"]])
-}
+#> spc_tbl_ [1,000,000 × 37] (S3: spec_tbl_df/tbl_df/tbl/data.frame)
+#> $ FID : chr [1:1000000] "abiotic_observations.fid-33b119e7_193203857cf_-d5f" "abiotic_observations.fid-33b119e7_193203857cf_-d5e" "abiotic_observations.fid-33b119e7_193203857cf_-d5d" "abiotic_observations.fid-33b119e7_193203857cf_-d5c" ...
+#> $ id : num [1:1000000] 1.03e+09 1.03e+09 1.03e+09 1.03e+09 1.03e+09 ...
+#> $ aphiaid : logi [1:1000000] NA NA NA NA NA NA ...
+#> $ latitude : num [1:1000000] 51.3 51.3 51.3 51.3 51.3 ...
+#> $ longitude : num [1:1000000] 4.3 4.3 4.3 4.3 4.3 ...
+#> $ depth : num [1:1000000] -6.78 -6.78 -6.78 -6.78 -6.78 ...
+#> $ datetime : POSIXct[1:1000000], format: "2008-06-25 21:33:00" "2008-06-25 21:33:00" ...
+#> $ value : chr [1:1000000] "-" "-" "-" "-" ...
+#> $ lod : logi [1:1000000] NA NA NA NA NA NA ...
+#> $ loq : logi [1:1000000] NA NA NA NA NA NA ...
+#> $ standardparameterid: num [1:1000000] 1045 1045 1045 1045 1045 ...
+#> $ dataproviderid : num [1:1000000] 6 6 6 6 6 6 6 6 6 6 ...
+#> $ imisdatasetid : num [1:1000000] 5242 5242 5242 5242 5242 ...
+#> $ dataficheid : num [1:1000000] 64 64 64 64 64 64 64 64 64 64 ...
+#> $ seriesid : num [1:1000000] 2032 2032 2032 2032 2032 ...
+#> $ datatype : chr [1:1000000] "NC" "NC" "NC" "NC" ...
+#> $ class : logi [1:1000000] NA NA NA NA NA NA ...
+#> $ classunit : logi [1:1000000] NA NA NA NA NA NA ...
+#> $ classcode : logi [1:1000000] NA NA NA NA NA NA ...
+#> $ season : chr [1:1000000] "summer" "summer" "summer" "summer" ...
+#> $ parametername : chr [1:1000000] "Temperatuur in graden celcius in water" "Temperatuur in graden celcius in water" "Temperatuur in graden celcius in water" "Temperatuur in graden celcius in water" ...
+#> $ parameterunit : chr [1:1000000] "graden celcius" "graden celcius" "graden celcius" "graden celcius" ...
+#> $ dataprovider : chr [1:1000000] "MOW MT - Maritieme Toegang" "MOW MT - Maritieme Toegang" "MOW MT - Maritieme Toegang" "MOW MT - Maritieme Toegang" ...
+#> $ datasettitle : chr [1:1000000] "Continuous measurements in Deurganckdok" "Continuous measurements in Deurganckdok" "Continuous measurements in Deurganckdok" "Continuous measurements in Deurganckdok" ...
+#> $ datafichetitle : chr [1:1000000] "P-FC-V-003 - Temperatuur - Continu" "P-FC-V-003 - Temperatuur - Continu" "P-FC-V-003 - Temperatuur - Continu" "P-FC-V-003 - Temperatuur - Continu" ...
+#> $ stationname : chr [1:1000000] "Boei 97 - Bottom" "Boei 97 - Bottom" "Boei 97 - Bottom" "Boei 97 - Bottom" ...
+#> $ gid : num [1:1000000] 7 7 7 7 7 7 7 7 7 7 ...
+#> $ seasonid : num [1:1000000] 3 3 3 3 3 3 3 3 3 3 ...
+#> $ unit : chr [1:1000000] "graden celcius" "graden celcius" "graden celcius" "graden celcius" ...
+#> $ category : chr [1:1000000] "temperatuur" "temperatuur" "temperatuur" "temperatuur" ...
+#> $ the_geom : chr [1:1000000] "POINT (51.2925 4.30243)" "POINT (51.2925 4.30243)" "POINT (51.2925 4.30243)" "POINT (51.2925 4.30243)" ...
+#> $ valuesign : chr [1:1000000] "=" "=" "=" "=" ...
+#> $ dateprecision : logi [1:1000000] NA NA NA NA NA NA ...
+#> $ standard_name : chr [1:1000000] "BODC" "BODC" "BODC" "BODC" ...
+#> $ externalid : chr [1:1000000] "TEMPPP01" "TEMPPR01" "TEMPPP01" "TEMPPR01" ...
+#> $ external_name : chr [1:1000000] "Temperature of the water body by YSI in-situ oxygen and temperature probe" "Temperature of the water body" "Temperature of the water body by YSI in-situ oxygen and temperature probe" "Temperature of the water body" ...
+#> $ scientificname : logi [1:1000000] NA NA NA NA NA NA ...
+#> - attr(*, "spec")=
+#> .. cols(
+#> .. FID = col_character(),
+#> .. id = col_double(),
+#> .. aphiaid = col_logical(),
+#> .. latitude = col_double(),
+#> .. longitude = col_double(),
+#> .. depth = col_double(),
+#> .. datetime = col_datetime(format = ""),
+#> .. value = col_character(),
+#> .. lod = col_logical(),
+#> .. loq = col_logical(),
+#> .. standardparameterid = col_double(),
+#> .. dataproviderid = col_double(),
+#> .. imisdatasetid = col_double(),
+#> .. dataficheid = col_double(),
+#> .. seriesid = col_double(),
+#> .. datatype = col_character(),
+#> .. class = col_logical(),
+#> .. classunit = col_logical(),
+#> .. classcode = col_logical(),
+#> .. season = col_character(),
+#> .. parametername = col_character(),
+#> .. parameterunit = col_character(),
+#> .. dataprovider = col_character(),
+#> .. datasettitle = col_character(),
+#> .. datafichetitle = col_character(),
+#> .. stationname = col_character(),
+#> .. gid = col_double(),
+#> .. seasonid = col_double(),
+#> .. unit = col_character(),
+#> .. category = col_character(),
+#> .. the_geom = col_character(),
+#> .. valuesign = col_character(),
+#> .. dateprecision = col_logical(),
+#> .. standard_name = col_character(),
+#> .. externalid = col_character(),
+#> .. external_name = col_character(),
+#> .. scientificname = col_logical()
+#> .. )
+#> - attr(*, "problems")=<externalptr>