[pgpointcloud] Get points using pqxx
David Serret Mayer
david.serret at eigendynamics.com
Wed Aug 22 01:22:45 PDT 2018
Hey, I am using pqxx for C++.
However when I try to get the points of a patch(I am currently using the
same tables as the examples on the Readme) I get always a string. Is there
a smarter way to get it done without parsing?
This is my code:
>
> #include <iostream>
> #include <pqxx/pqxx>
>
>
> int main(int, char *argv[])
> {
> pqxx::connection c;
> pqxx::work txn(c);
>
> pqxx::result r = txn.exec("select (pc_get(pc_explode(pa))) from patches
> ;");
>
> std::cout << r.size() << std::endl;
>
> for(const auto &q : r){
> for( const auto &m : q){
> std::cout << m << std::endl;
> }
> }
> }
>
I have tried using the binary functions, but I can't really decode the
data. Is there an example of that somewhere?.
Thank you very much,
--
*David Serret *- R&D Engineer at Eigen Dynamics SL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pgpointcloud/attachments/20180822/995eeba3/attachment.html>
More information about the pgpointcloud
mailing list