<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style><style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body dir="ltr" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
Hi</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
> How can I determine the amount of memory a pcpatch uses (and possible pcpoint)? Basically the ST_MemSize for pointcloud data.</div>
<br>
<div><em>The consistently-named PC_MemSize function should do what you expect but does not seem to be documented. Would you mind filing a PR to document it ?</em></div>
<div><em></em><br>
<em>> How can I view pcpatch binary data? The PC_AsBinary works well for pcpoints but it would be nice to have similar for pcpatch.</em></div>
<div><em><br>
</em></div>
<div><em>There is currently no </em><em>PC_AsBinary(p pcpatch) function but you can see the patch bounding box with
</em><em>PC_BoundingDiagonalAsBinary(p pcpatch) and </em><em>PC_EnvelopeAsBinary(p pcpatch).</em><br>
<em><em>It would however not be too difficult to write a </em></em><em><em><em>PC_MultiPointAsBinary(p pcpatch) SQL function</em> either by:</em></em></div>
<div><em><em><span class="pl-c1">- exploding the patches, converting with </span>
</em></em><em><em><span class="pl-c1"><em>PC_AsBinary(p pcpoint) and aggregating a multipoint geometry</em></span></em></em></div>
<div><em><em><span class="pl-c1"><em>- or coding C functions </em></span></em></em><em><em><span class="pl-c1"><span class="pl-en">pcpatch_multipoint_as_bytea
</span>and pc_patch_to_geometry_wkb_multipoint (taking example on the *enveloppe* functions)</span></em></em><em></em>
<div><em>What is your use case ? Do you want to export a patch as a postgis multipoint ?</em></div>
</div>
<div><em><em><span class="pl-c1"><br>
</span></em></em></div>
<div><em><em><span class="pl-c1">Best</span></em></em></div>
<div><em><em><span class="pl-c1">Mathieu<br>
</span></em></em></div>
<div>
<table class="highlight tab-size js-file-line-container" data-tab-size="4">
<tbody>
<tr>
<td id="LC159" class="blob-code blob-code-inner js-file-line"><br>
<br>
</td>
</tr>
<tr>
</tr>
</tbody>
</table>
<span class="pl-c1"></span></div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF513379" style="direction: ltr;"><font size="2" face="Tahoma" color="#000000"><b>De :</b> pgpointcloud [pgpointcloud-bounces@lists.osgeo.org] de la part de Lars [laasunde@hotmail.com]<br>
<b>Envoyé :</b> mardi 18 septembre 2018 11:55<br>
<b>À :</b> pgpointcloud@lists.osgeo.org<br>
<b>Objet :</b> [pgpointcloud] Patch memsize and asbinary<br>
</font><br>
</div>
<div></div>
<div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
Hello,</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
How can I determine the amount of memory a pcpatch uses (and possible pcpoint)? Basically the ST_MemSize for pointcloud data.</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
How can I view pcpatch binary data? The PC_AsBinary works well for pcpoints but it would be nice to have similar for pcpatch.</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
kind regards, Lars</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br>
</div>
</div>
</div>
</div>
</body>
</html>