<div dir="ltr"><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi List,</div><div><br></div><div>I'm having trouble converting the result of a WFS request to a shapefile.</div><div>I'm using two servers, one is working the other not.</div><div><br></div><div>My command for the working server:</div><div><font face="monospace">ogr2ogr -f "ESRI Shapefile" -s_srs "EPSG:4326" -t_srs "EPSG:28992" "Perceel-bbox.shp" "WFS:<a href="https://geodata.nationaalgeoregister.nl/kadastralekaart/wfs/v4_0?service=WFS&request=GetFeature&version=2.0.0&typename=kadastralekaartv4:perceel&srsname=EPSG:4326&outputFormat=application/json&bbox=163049,467594,163256,468020,EPSG:28992">https://geodata.nationaalgeoregister.nl/kadastralekaart/wfs/v4_0?service=WFS&request=GetFeature&version=2.0.0&typename=kadastralekaartv4:perceel&srsname=EPSG:4326&outputFormat=application/json&bbox=163049,467594,163256,468020,EPSG:28992</a>"</font><br></div><div><br></div><div>And the not working server:</div><div><font face="monospace">ogr2ogr -f "ESRI Shapefile" --debug ON  -s_srs "EPSG:4326" -t_srs "EPSG:28992" "Perceel-aan.shp" "WFS:<a href="https://geodata.nationaalgeoregister.nl/aan/wfs?service=WFS&request=GetFeature&version=2.0.0&typename=aan&srsname=EPSG:4326&outputFormat=application/json&bbox=163049,467594,163256,468020,EPSG:28992">https://geodata.nationaalgeoregister.nl/aan/wfs?service=WFS&request=GetFeature&version=2.0.0&typename=aan&srsname=EPSG:4326&outputFormat=application/json&bbox=163049,467594,163256,468020,EPSG:28992</a>"</font><br></div><div><br></div><div>I don't get an error, the file is just not created.</div><div>The debug messages:</div><div><font face="monospace">WFS: <a href="https://geodata.nationaalgeoregister.nl/aan/wfs?SERVICE=WFS&REQUEST=GetCapabilities&version=2.0.0&srsname=EPSG:4326&bbox=163049,467594,163256,468020,EPSG:28992">https://geodata.nationaalgeoregister.nl/aan/wfs?SERVICE=WFS&REQUEST=GetCapabilities&version=2.0.0&srsname=EPSG:4326&bbox=163049,467594,163256,468020,EPSG:28992</a><br>HTTP: Fetch(<a href="https://geodata.nationaalgeoregister.nl/aan/wfs?SERVICE=WFS&REQUEST=GetCapabilities&version=2.0.0&srsname=EPSG:4326&bbox=163049,467594,163256,468020,EPSG:28992">https://geodata.nationaalgeoregister.nl/aan/wfs?SERVICE=WFS&REQUEST=GetCapabilities&version=2.0.0&srsname=EPSG:4326&bbox=163049,467594,163256,468020,EPSG:28992</a>)<br>HTTP: libcurl/7.74.0-DEV OpenSSL/1.1.1i zlib/1.2.11<br>WFS: Paging support with page size 15000<br>WFS: No transaction support<br>GDAL: GDALOpen(WFS:<a href="https://geodata.nationaalgeoregister.nl/aan/wfs?service=WFS&request=GetFeature&version=2.0.0&typename=aan&srsname=EPSG:4326&outputFormat=application/json&bbox=163049,467594,163256,468020,EPSG:28992">https://geodata.nationaalgeoregister.nl/aan/wfs?service=WFS&request=GetFeature&version=2.0.0&typename=aan&srsname=EPSG:4326&outputFormat=application/json&bbox=163049,467594,163256,468020,EPSG:28992</a>, this=0000018A6EA691F0) succeeds as WFS.<br>GDAL: GDALDriver::Create(ESRI Shapefile,Perceel-aan.shp,0,0,0,Unknown,0000000000000000)<br>GDAL: GDALClose(WFS:<a href="https://geodata.nationaalgeoregister.nl/aan/wfs?service=WFS&request=GetFeature&version=2.0.0&typename=aan&srsname=EPSG:4326&outputFormat=application/json&bbox=163049,467594,163256,468020,EPSG:28992">https://geodata.nationaalgeoregister.nl/aan/wfs?service=WFS&request=GetFeature&version=2.0.0&typename=aan&srsname=EPSG:4326&outputFormat=application/json&bbox=163049,467594,163256,468020,EPSG:28992</a>, this=0000018A6EA691F0)<br>GDAL: GDALClose(Perceel-aan.shp, this=0000018A70565430)<br>GDAL: In GDALDestroy - unloading GDAL shared library.</font><br></div><div><br></div><div>When I open the URL in the browser, I do get back JSON data. When I copy this and paste it in QGis I get the expected polygons.</div><div><br></div><div>I'm not sure how I need to change my command to get this working for the second server as well.</div><div>Please advice.</div><div><br></div><div>With regards,</div><div><br></div><div>Paul Meems</div><div><br></div></div></div></div></div></div></div>