Add an ows:Metadata with processing:geometryTypes for QgsProcessingParameterGeometry
rldhont opened this issue · 1 comments
rldhont commented
A QgsProcessingParameterGeometry
has already an ows:Metadata
with processing:type
<ows:Metadata xlink:title="processing:type" xlink:href="geometry" xlink:type="simple"/>
``
It will be useful to add an other `ows:Metadata` but with `processing:geometryTypes`. For example:
```xml
<ows:Metadata xlink:title="processing:type" xlink:href="geometry" xlink:type="simple"/>
<ows:Metadata xlink:title="processing:geometryTypes" xlink:href="point" xlink:type="simple"/>
...
<ows:Metadata xlink:title="processing:type" xlink:href="geometry" xlink:type="simple"/>
<ows:Metadata xlink:title="processing:geometryTypes" xlink:href="line" xlink:type="simple"/>
...
<ows:Metadata xlink:title="processing:type" xlink:href="geometry" xlink:type="simple"/>
<ows:Metadata xlink:title="processing:geometryTypes" xlink:href="polygone" xlink:type="simple"/>
dmarteau commented
Implemented in dd9267d
<ows:Metadata xlink:title="processing:type" xlink:href="geometry" xlink:type="simple"/>
<ows:Metadata xlink:title="processing:geometryType" xlink:href="Line" xlink:type="simple"/>
Case of multiple types allowed:
<ows:Metadata xlink:title="processing:type" xlink:href="geometry" xlink:type="simple"/>
<ows:Metadata xlink:title="processing:geometryType" xlink:href="Line" xlink:type="simple"/>
<ows:Metadata xlink:title="processing:geometryType" xlink:href="Polygon" xlink:type="simple"/>
The href
is the name returned by the QgsWkbTypes::geometryDisplayString method