[pdal] pgpointcloud : is pdal compressing pcpatch before sending them to database?
Howard Butler
howard at hobu.co
Thu Apr 28 05:50:35 PDT 2016
> On Apr 28, 2016, at 6:52 AM, RĂ©mi Cura <remi.cura at gmail.com> wrote:
>
> According to
> https://github.com/PDAL/PDAL/blob/master/plugins/pgpointcloud/io/PgWriter.cpp#L483
> and
> https://github.com/PDAL/PDAL/blob/master/plugins/pgpointcloud/io/PgReader.cpp#L138
>
> It seems that the compression/decompression is always done by the database,
> correct?
Remi,
I think the comments on line Writer#483 are a little inconsistent. Writer looks like it always inserts uncompressed, hex-encoded data to PostgreSQL and lets the extension do what it wants with it for compression. On the PgReader side, it looks like it always asks for PC_Uncompress which presumably has no impact when the patch is actually uncompressed.
Maybe Paul can chime in with more detail on the intent of how this is supposed to work.
Howard
More information about the pdal
mailing list