<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Andrea,</p>
<p>it would be best if the driver could access the schema, but this
is not a fatal error. It will try to guess it from the XML content
it.</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 09/02/2025 à 20:58, andy via
gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAHEdGZN=KA_ngek2vqtKweb590h7QFg3TY-BMRk7qDDT86KCAQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi,<br>
I'm running the following loop to import GML files:<br>
<br>
for file in *_ple.gml; do<br>
ogr2ogr --debug on -append -update -f gpkg
CadastralParcel.gpkg "${file}" CadastralParcel;<br>
done<br>
<br>
This is one of these files: <a
href="https://github.com/user-attachments/files/18725994/A094_AYAS_ple.gml.gz"
moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/user-attachments/files/18725994/A094_AYAS_ple.gml.gz</a><br>
<br>
GDAL gives me this error:<br>
<br>
GML: Using Expat reader<br>
GML: Global SRS = urn:ogc:def:crs:EPSG::6706<br>
HTTP: Fetch(<a
href="https://wfs.cartografia.agenziaentrate.gov.it/inspire/wfs/wfsUP.php?SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&TYPENAME=CP:CadastralParcel&OUTPUTFORMAT=application%2Fgml%2Bxml%3B%20version%3D3.2"
moz-do-not-send="true">https://wfs.cartografia.agenziaentrate.gov.it/inspire/wfs/wfsUP.php?SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&TYPENAME=CP:CadastralParcel&OUTPUTFORMAT=application%2Fgml%2Bxml%3B%20version%3D3.2</a>)<br>
HTTP: libcurl/7.88.1 OpenSSL/3.0.11 zlib/1.2.13 brotli/1.0.9
zstd/1.5.4 libidn2/2.3.3 libpsl/0.21.2 (+libidn2/2.3.3)
libssh2/1.10.0 nghttp2/1.52.0 librtmp/2.3 OpenLDAP/2.5.13<br>
ERROR 1: HTTP error code : 403<br>
ERROR 1: Line 8: </BODY> doesn't have matching
<BODY>.<br>
GML: Generating A094_AYAS_ple.gfs file, ignoring
/vsimem/.#!HIDDEN!#./1/tmp_ogr_gml.xsd<br>
<br>
From what I understand, this happens because one of the URLs
in the GML schema is not reachable:<br>
<br>
xsi:schemaLocation="<a
href="http://mapserver.gis.umn.edu/mapserver"
moz-do-not-send="true" class="moz-txt-link-freetext">http://mapserver.gis.umn.edu/mapserver</a>
<a
href="https://wfs.cartografia.agenziaentrate.gov.it/inspire/wfs/wfsUP.php?SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&TYPENAME=CP:CadastralParcel&OUTPUTFORMAT=application%2Fgml%2Bxml%3B%20version%3D3.2"
moz-do-not-send="true">https://wfs.cartografia.agenziaentrate.gov.it/inspire/wfs/wfsUP.php?SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&TYPENAME=CP:CadastralParcel&OUTPUTFORMAT=application%2Fgml%2Bxml%3B%20version%3D3.2</a>
<a href="http://www.opengis.net/wfs/2.0"
moz-do-not-send="true" class="moz-txt-link-freetext">http://www.opengis.net/wfs/2.0</a>
<a href="http://schemas.opengis.net/wfs/2.0/wfs.xsd"
moz-do-not-send="true" class="moz-txt-link-freetext">http://schemas.opengis.net/wfs/2.0/wfs.xsd</a>
<a href="http://www.opengis.net/gml/3.2"
moz-do-not-send="true" class="moz-txt-link-freetext">http://www.opengis.net/gml/3.2</a>
<a href="http://schemas.opengis.net/gml/3.2.1/gml.xsd"
moz-do-not-send="true" class="moz-txt-link-freetext">http://schemas.opengis.net/gml/3.2.1/gml.xsd</a>"<br>
<br>
My question is:<br>
- Is this "only" a formal issue, meaning that the files are
probably correctly imported despite the error?<br>
- Or is it a blocking issue, and I should contact the data
provider to fix the schema reference?<br>
<br>
Thanks in advance for your help,<br>
<br>
Andrea</div>
<div><br>
</div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr"><span
style="font-size:small">___________________</span><br>
</div>
<div dir="ltr"><span
style="font-size:small"><br>
</span></div>
<div dir="ltr">Andrea Borruso<br>
website: <a
href="https://medium.com/tantotanto"
target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">https://medium.com/tantotanto</a><br>
38° 7' 48" N, 13° 21' 9" E, EPSG:4326<br>
<span style="font-size:small">___________________</span><br>
<br>
"cercare e saper riconoscere chi e
cosa,<br>
in mezzo all’inferno, non è inferno, <br>
e farlo durare, e dargli spazio"<br>
<br>
Italo Calvino<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>