AnsweredAssumed Answered

error loading WFS url

Question asked by hermangroeneveld on Jun 16, 2019
Latest reply on Jun 19, 2019 by EPolle_TensingInternational

Hello,

I'm still struggling with WFS by using ArcPy. Beneath I have a link to some GIS data. When I click the link, the links shows me the coorect result in the browser, but if I use this link in Arcpy it stumbles on the fs.load(url) and raises an error saying:

RuntimeError: RecordSetObject: Cannot open table for Load

I can't find what's wrong. is it the url? Is it the outputformat? The request? Or is it something else?

 

Here is the link:

http://geodata.nationaalgeoregister.nl/bag/wfs?service=wfs&version=2.0.0&request=GetFeature&typeName=bag:verblijfsobject&count=5&outputFormat=json

 

Here is the code in Python I use: 

import arcpy

url = 'http://geodata.nationaalgeoregister.nl/bag/wfs?service=wfs&version=2.0.0&request=GetFeature&typeName=bag:verblijfsobject&count=5&outputFormat=json'
fs = arcpy.FeatureSet()
fs.load(url)
fs.save(r'D:\GIS data\FGDB_datatest.gdb\test_001')

Please, any help is welcome!

Outcomes