<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Johannes,</p>
<p>this is more an issue on QGIS side, in its OGR provider where
there's likely a lack of mapping between the OGR geometry types
and QGIS geometry types for Curve and Surface (just guessing,
didn't check). The root cause is that Curve and Surface in OGC/ISO
specs are abstract types only, not directly instantiable. So it is
really hard to have datasets where they are reported as layer
geometry types, unless you try hard to do so, as you did. I'd
suggest you use CurvePolygon (resp. CompoundCurve) instead of
Surface (resp. Curve) in your .gfs file. That's what the OGR XSD
reader does when encountering a gml:SurfacePropertyType or
gml:CurvePropertyType. Those are instanciable types and QGIS
should behave properly</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 05/01/2023 à 14:00, Johannes
Echterhoff a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:GV1P193MB223234B611F4F6C210E02777FCFA9@GV1P193MB2232.EURP193.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">The GML driver shows
behavior that I do not understand: When I load a feature
with a gml:Polygon, which, in the gfs file, is defined with
GeomPropertyDefn/Type = Surface, then the geometry does not
appear to be understood. At least when I try to load the
data in QGIS 3.28.0, then the layer has an unknown geometry
type. If, on the other hand, I set GeomPropertyDefn/Type to
“Polygon”, “MultiPolygon”, or even “MultiSurface”, the
geometry is recognized. Same problem if the feature has a
gml:LineString as geometry, and I declare it as
GeomPropertyDefn/Type = Curve.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">What am I missing here?
:-)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there some
documentation available that sheds light on which gfs
geometry type values support which GML geometry types?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Johannes<o:p></o:p></span></p>
</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>