<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Chris,<br>
</p>
<span style="white-space: pre-wrap">
</span>
<blockquote type="cite"
cite="mid:CALRbqOSE+iSvUqJAasaWHCLLKLikHp_Ts4PU9R0aC+nTvaO0BA@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">I don't see a way in the C API to obtain the pipeline algorithm step
registry or access the step algorithms to obtain their argument
properties and values. Would GetStepAlg() and related methods
potentially be exposed in the C API at some point, along with a
"GetStepRegistry"?</pre>
</blockquote>
That could be an option. Another already existing one is to use
GDALAlgorithmGetUsageAsJSON() on the pipeline algorithm. You'll get
the step algorithms and their arguments under the
"pipeline_algorithms" key. Please file a ticket if you prefer the C
API.<br>
<blockquote type="cite"
cite="mid:CALRbqOSE+iSvUqJAasaWHCLLKLikHp_Ts4PU9R0aC+nTvaO0BA@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">
When run as described above, the main pipeline (actual) algorithm
object has an output arg of type DATASET, but it is not explicitly set
and has null value even though the file output is successfully
generated. I assume the dataset object is available in the output arg
of the "write" step algorithm, but I haven't followed that code
closely enough to understand some details. If that is correct though,
could the final output dataset be propagated up to the main pipeline
algorithm "output" arg?</pre>
</blockquote>
I suspect a mis-use of the API, because that definitely works as
shown by the following Python snippet (which uses the C API)<br>
<br>
>>> from osgeo import gdal<br>
>>> alg = gdal.Run('raster pipeline', pipeline='read
autotest/gcore/data/byte.tif ! write /vsimem/out.tif')<br>
>>> print(alg.Output().GetDescription())<br>
/vsimem/out.tif<br>
<br>
<p>Maybe you run GDALAlgorithmFinalize() ? If so then the output
dataset gets closed and the output dataset arg is nullified.</p>
<p>Even<br>
</p>
<span style="white-space: pre-wrap">
</span>
<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>