<div dir="ltr"><div class="gmail_default" style="font-family:arial,sans-serif">Julien,</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif">The least disruptive approach to this would be for you to store your DEM in a "memory dataset" and reference that.  I've done this in the past when I had it in a numpy array by using the numpy driver.  The "MEM" dataset can be used to reference approximately arbitrary in-memory arrays.   </div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif">Best regards,</div><div class="gmail_default" style="font-family:arial,sans-serif">Frank</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 28, 2020 at 8:21 AM Julien Osman <<a href="mailto:julien.osman@csgroup.eu">julien.osman@csgroup.eu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear GDAL community,<br>
<br>
I use the RPC transformer available in GDAL (GDALCreateRPCTransformer<br>
and GDALRPCTransform).<br>
<br>
To provide a DEM to the transformer, one needs to set the option<br>
"RPC_DEM" with the path to the DEM file. In my workflow, this is not<br>
very convenient because the DEM is already loaded in memory as a<br>
GDALDataset. This means that I need to write it to the disk and let<br>
GDALCreateRPCTransformer load it again. In my opinion, it would make<br>
sens to open a little the API so one can provide the DEM directly as a<br>
GDALDataset.<br>
<br>
If this is OK for you, I can implement this functionality and propose a<br>
Pull Request. The solution I see would be to add a function<br>
GDALRPCAddDEM, similar to GDALRPCOpenDEM without the part opening the<br>
GDALDataset. What do you think?<br>
<br>
Best regards.<br>
Julien Osman.<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><font face="monospace">---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>light and sound - activate the windows | +1 650-701-7823<br>and watch the world go round - Rush    | Geospatial Software Developer</font></div></div></div></div></div>