mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-09 00:35:20 -05:00
The SAGA version of this algorithm is of limited use in QGIS, because the volume calculated is embedded only in the SAGA terminal output. This prevents it being saved to a file, or reused within a model as an input to a later model step. It's also very user-unfriendly, because users must know to manually scan the algorithm log to find the SAGA output. Given that the maths here is trivial, this commit ports the algorithm across to be a native QGIS c++ algorithm. The algorithm duplicates the SAGA alg 1:1, but outputs the volume (and area) to either a HTML report, or a vector table. Additionally, the outputs are exported as numeric outputs from the algorithm, allowing them to be re-used within models. (It's also considerably faster, because it avoids the forced conversion to SAGA raster format) Fixes #8607 (properly, even though that report is closed)
17 lines
906 B
XML
17 lines
906 B
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ogr:FeatureCollection
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://ogr.maptools.org/ surface_vol_add.xsd"
|
|
xmlns:ogr="http://ogr.maptools.org/"
|
|
xmlns:gml="http://www.opengis.net/gml">
|
|
<gml:boundedBy><gml:null>missing</gml:null></gml:boundedBy>
|
|
|
|
<gml:featureMember>
|
|
<ogr:surface_vol_add fid="surface_vol_add.0">
|
|
<ogr:volume>0.06802753</ogr:volume>
|
|
<ogr:deg2>0.00130550</ogr:deg2>
|
|
<ogr:pixel_count>130550</ogr:pixel_count>
|
|
</ogr:surface_vol_add>
|
|
</gml:featureMember>
|
|
</ogr:FeatureCollection>
|