Hi there,

Currently we have a process that loads data from an external WFS into Postgres 
from a nightly scheduled batch file on a Windows box.  Usually works fine and 
it reports on any errors that it encounters.  But recently we've been getting 
an HTTP 504 error and no features are written but the resultant ERRORLEVEL is 
still 0.

We've contacted the provider to hopefully resolve the error, but we were 
wondering why ogr2ogr isn't raising the ERRORLEVEL?

Currently using: GDAL 2.2.2

The WFS URL is:
"WFS:http://environment.data.gov.uk/ds/wfs?SERVICE=WFS&INTERFACE=ENVIRONMENTWFS--0896250c-3aaa-43e2-b783-a133522cb5e3&VERSION=1.0.0";

The layer name is:
ne_wfs_crow_act_2000_access_layer_england

Here's the 
metadata<http://environment.data.gov.uk/ds/catalogue/#/0896250c-3aaa-43e2-b783-a133522cb5e3>

A layer that works from the same service as an example is below:
"WFS:http://environment.data.gov.uk/ds/wfs?SERVICE=WFS&INTERFACE=ENVIRONMENTWFS--e819098e-e248-4a8f-b684-5a21ca521b9b&VERSION=1.0.0";
ne_wfs_national_parks_england

Command we're running is like:
ogr2ogr -append -f PostgreSQL %POSTGRES_CONNECTION% 
"WFS:http://environment.data.gov.uk/ds/wfs?SERVICE=WFS&INTERFACE=ENVIRONMENTWFS--0896250c-3aaa-43e2-b783-a133522cb5e3&VERSION=1.0.0";
 ne_wfs_crow_act_2000_access_layer_england -nln %POSTGRES_DESTINATION_TABLE% 
-preserve_fid --config OGR_TRUNCATE YES

Running the command manually gives the below error messages:
ERROR 1: HTTP error code : 504
ERROR 1: Error returned by server : HTTP error code : 504 (0)

(And with --debug ON you can find out "GDALVectorTranslate: 0 features written 
in layer"

But the %ERRORLEVEL% = 0

Could anyone advise if this a bug, or if not how we can detect such errors?

Many thanks,

Rob



DISCLAIMER: The information contained in this communication/message from 
rob.langf...@salford.gov.uk sent on Tue Oct 10 10:55:54 2017 is confidential. 
It is intended solely for the addressee(s) gdal-dev@lists.osgeo.org

Access to this message by anyone else is unauthorised. If you are not the 
intended recipient, any disclosure, copying, or distribution of the message, or 
any action or omission taken by you in reliance on it, is prohibited and may be 
unlawful.
As a public body, Salford City Council may be required to disclose this email 
[or any response to it] under the Freedom of Information Act 2000, unless the 
information in it is covered by one of the exemptions in the Act.
Please immediately contact the sender, rob.langf...@salford.gov.uk if you have 
received this message in error.

For the full disclaimer please access http://www.salford.gov.uk/e-mail.  Thank 
you.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to