Skip to content

Error calling WFSClient$new #108

Answered by eblondel
bwcompton asked this question in OGC WFS
May 30, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hello @bwcompton the url should only be the base URL for the service, ie: https://umassdsl.webgis1.com/geoserver/wfs or eventually https://umassdsl.webgis1.com/geoserver/ows?service=WFS (using the global OWS - OGC Web Service -endpoint)

Check this, it works:

library(ows4R)
request <- 'https://umassdsl.webgis1.com/geoserver/wfs'
info <- WFSClient$new(request, serviceVersion = '2.0.0', logger = 'DEBUG')

#list feature types
fts = info$capabilities$getFeatureTypes(pretty = T)

#get features example
sf_test = info$getFeatures("ne:disputed_areas")

BTW, note that although it would be recommended to use WFS version 2.0.0, GML types MultiSurface (handled through WFS 2.0) are then not well support…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bwcompton
Comment options

@eblondel
Comment options

Answer selected by eblondel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Converted from issue

This discussion was converted from issue #107 on May 30, 2023 18:05.