<div dir="ltr">Hi all<br><br>I have been running a script daily, which worked with GDAL 1.10<br><div><br>ogr2ogr -append -lco GEOM_NAME="geometry" -f "MSSQLSpatial" "MSSQL:server=YYYYYY;database=XXXXXX;trusted_connection=yes" lokalplaner_vedtaget.gml -a_srs "EPSG:25832" -lco SCHEMA=ZZZZ -nln lokalplaner_vedtaget --debug ON<br><br></div><div>But, now it seems that it does not. What can I do?:<br>"GML: Using Expat reader<br>HTTP: Fetch(<a href="http://geoservice.plansystem.dk:80/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=pdk%3Atheme_pdk_lokalplan_vedtaget_v">http://geoservice.plansystem.dk:80/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=pdk%3Atheme_pdk_lokalplan_vedtaget_v</a>)<br>GML: Using /vsimem/tmp_gml_xsd_000000000082F870.xsd<br>OGR: OGROpen(lokalplaner_vedtaget.gml/000000000082F870) succeeded as GML.<br>OGR_MSSQLSpatial: EstablishSession(Connection:"server=YYYYYYY;database=XXXXXX;trusted_connection=yes")<br>ODBC: SQLDriverConnect(DRIVER=SQL Server;server=YYYYYY;database=XXXXXX;trusted_connection=yes)<br>OGR: OGROpen(MSSQL:server=YYYYYYY;database=XXXXX;trusted_connection=yes/000000000035EE10) succeeded as MSSQLSpatial<br>.<br>ERROR 1: Layer lokalplaner_vedtaget already exists, CreateLayer failed. Use the layer creation option OVERWRITE=YES to replace it.<br>GML: ResetReading()<br>ERROR 1: Terminating translation prematurely after failed translation of layer theme_pdk_lokalplan_vedtaget_v (use -skipfailures to skip errors)<br><br>ODBC: SQLDisconnect()"<br><br></div><div>The gml file is downloaded from a WFS for debugging purposes, could that make a difference?<br></div><div><br></div><div>What is the difference between the -overwrite flag and the "OVERWRITE=YES" layer creation option? Is an lco "APPEND=YES" a possibility?<br><br></div><div>Thanks,<br>Niels :-) <br></div></div>