WFS feature type element geometry type handling fails with adhoc gml namespace prefix #125
Closed
Description
I wonder whether the error at the last line of the code below indicates a problem of the server, or a buglet in ows4r... or some understanding error on my side.
service_url <- "https://prod-geoserver.emodnet-physics.eu/geoserver/ows"
wfs <- ows4R::WFSClient$new(
service_url,
serviceVersion = "2.0.0",
headers = c("User-Agent" = "EMODnetWFS R package 2.0.1.9001 https://github.com/EMODnet/EMODnetWFS"),
logger = NULL
)
#> Loading ISO 19139 XML schemas...
#> Loading ISO 19115 codelists...
capabilities <- wfs$getCapabilities()
capabilities$getFeatureTypes()[[14]]$getName()
#> [1] "EMODnet:EP_PLATFORMS_MO_ATLAS"
capabilities$getFeatureTypes()[[14]]$getGeometryType()
#> NULL
capabilities$getFeatureTypes()[[14]]$getDescription(pretty = TRUE)
#> Error in data.frame(name = element$getName(), type = element$getType(), : arguments imply differing number of rows: 1, 0
Created on 2024-02-28 with reprex v2.1.0