We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asGml3() creates invalid GML for CurvePolygon in terms of XML schema validation:
asGml3()
exterior expects child elements of type AbstractRing (e.g. Ring or LinearRing) not CompositeCurve.
exterior
AbstractRing
Ring
LinearRing
CompositeCurve
In QGIS Python console:
wkt_geom = 'CURVEPOLYGON (COMPOUNDCURVE ((0 -1,0 1),CIRCULARSTRING (0 1,1 0,0 -1)))' geometry = QgsGeometry.fromWkt(wkt_geom) doc = QDomDocument() gml_geometry = geometry.constGet().asGml3(doc, 0) doc.appendChild(gml_geometry) print(doc.toString(2))
results in:
see above
A similar issue existed in GDAL OSGeo/gdal#7294 and was fixed by @rouault in OSGeo/gdal#7296.
The text was updated successfully, but these errors were encountered:
QgsCurvePolygon::asGml3(): make output compliant when ring is not a L…
9747878
…inearRing that is when it is a ring made of a CircularString or a ring made of a CompoundCurve Fixes qgis#57355
2f2ceed
…inearRing that is when it is a ring made of a CircularString or a ring made of a CompoundCurve Fixes #57355
99858dc
0d089dd
rouault
Successfully merging a pull request may close this issue.
What is the bug or the crash?
asGml3()
creates invalid GML for CurvePolygon in terms of XML schema validation:exterior
expects child elements of typeAbstractRing
(e.g.Ring
orLinearRing
) notCompositeCurve
.In QGIS Python console:
results in:
Steps to reproduce the issue
see above
Versions
Supported QGIS version
New profile
Additional context
A similar issue existed in GDAL OSGeo/gdal#7294 and was fixed by @rouault in OSGeo/gdal#7296.
The text was updated successfully, but these errors were encountered: