Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Reading a las file.

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Reading a las file.


Chronological Thread 
  • From: Maxime Gimeno <>
  • To:
  • Subject: Re: [cgal-discuss] Reading a las file.
  • Date: Thu, 24 Sep 2020 17:14:57 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:eJqSkRM0buVtR429LNcl6mtUPXoX/o7sNwtQ0KIMzox0Kfn4pcbcNUDSrc9gkEXOFd2Cra4d1KyP4+uwACQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTagY75+Ngi6oAbeusQVnIdpN7o8xAbOrnZUYepd2HlmJUiUnxby58ew+IBs/iFNsP8/9MBOTLv3cb0gQbNXEDopPWY15Nb2tRbYVguA+mEcUmQNnRVWBQXO8Qz3UY3wsiv+sep9xTWaMMjrRr06RTiu86FmQwLuhSwaNTA27XvXh9R/g6JVoh2vpxJxzY3Jbo+LKPVzZbnScc8ASGdbQspdSy5MD4WhZIUPFeoBOuNYopH6qVQUohq+BAysC/3ywTFJh3/22LM10+ImEQrb2wEgGsgBsXvVrNXwKqgeS++1zKjNzTrdafNW3izw6IfNch87oPGMWah8ftbWyUkqDg7IiEibpoP5MT2PzOsNr3Sb4PR6VeKpk2MppR19riSxy8swiofEm4AYxFDa+St2wIs5ON21RVB0b9CrDpdduCOXO5ZqT84gTG9kpTg3x7kYtJOncyUHypcqyhjCYPKJdIiI5wjsVOeXITpgmH1ld6iwhxKo/Uin0O38WdG40FFXripZltnMsXcN1x/J5sebTft9+1+t2TeJ1wDJ6+FLO1o4laTBK5Mn37U+lYITvFzdEiPqnEj6lqybe0U+9uS16unqYK/qqoKeOoNojAz1L74gldalAesiNwgDR2ib9vq41L3k5UD5Ra9FjvwykqXA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FKRigL6WKaZa1Cc2cOK2nSNzc5ch0uOX7UsJEZEWkgnFl7HkYYBbCHK1AXVTdgHOoyki0XB7Mfo/yfs+xxWOtkQANzeMd6pib2kD6MwmAQaSPWluESdjbhLGo8eZzBW92qgbuSpbhdddl+Nf/SLQpY7aeDvhAoKqr5vS/nAOZtcvp+h9MJfoP9Cd+p/XgjWKFMPE6lSRSy6zDf9T3NhRJW8EGP9Pg30lNMUdpYdb7ww8WtoqfucQUKd897r2YDNqUXZCkCZACN7YjDBS3L/t0euCnU6EecQvPRde4MxLi9JGDyJ/byoV9aXyXt6Hx2XVEDFWLVgHtRAU8FxbydQuI727sNCZHMESkWUM+LxvXiLXH8xx6UnBe2OWpAnYd/ytz/PkhyxYzfXdwvU6BBRyLmJCnsRmygh0E718LYRAvbOH6RPGb07hsXjzxefzfApsz9bJfWH1HJaQtXbgSjZOvjoPVIpXwTfeE44Tmkx3cuEwtVBUKcenfEj5oDcrzoAsE7ijXt2w3AUZqiMNSC6uVtZAEOp7q0n/WTt/Ypntpo+2FY9VRzp18Y2crloRv0RoPii+gc5ZItFM5zNKUzlKrDOalNS3QcxHn8RxCslfcZ9Ep37hFfYca9CqqHost+m3ky6Ly3UHqF6/gQ6LNeq9RuNd8XcZH1xwdWubo0grSeAr9zWLqwyfghVP5+5eQ4O3owBpuj8kR8JBAz9I0TauKFEhFCAb4dUfE7zcdolne9d3ZRKrPEZgR/sv3kjM+kAt2HmgPHQ0uQxd9CTQGQIzUHtNjw==

Can you try with PUBLIC instead?

Le jeu. 24 sept. 2020 à 17:11, Himanshu Sharma <> a écrit :
No particular reason. I used  cgal_create_CMakeLists to generate CMakeLists.txt and that was the default.

From: <> on behalf of Maxime Gimeno <>
Sent: Thursday, September 24, 2020 11:06 AM
To: <>
Subject: Re: [cgal-discuss] Reading a las file.
 
Why do you link privately with CGAL ? Why not target_link_library(dsm PUBLIC CGAL) ? 

Le jeu. 24 sept. 2020 à 17:00, Himanshu Sharma <> a écrit :
Yes, I did that.

I also tried with CGAL 5.1 just now. I am attaching the CMakeLists.txt for 5.1. For this, it is unable to find CGAL_LASLIB_support. Can you help with this as well


include could not find load file:


    CGAL_LASLIB_support



From: <> on behalf of Maxime Gimeno <>
Sent: Thursday, September 24, 2020 10:50 AM
To: <>
Subject: Re: [cgal-discuss] Reading a las file.
 
Did you include <CGAL/IO/read_las_points.h> ?

Le jeu. 24 sept. 2020 à 16:44, Himanshu Sharma <> a écrit :
Sorry, I am using 5.0 i meant.

From: Himanshu Sharma <>
Sent: Thursday, September 24, 2020 10:44 AM
To: <>
Subject: Re: [cgal-discuss] Reading a las file.
 
I am using 5.1
It is NOTICE : the LAS reader found.

Regards,
Himanshu

From: <> on behalf of Maxime Gimeno <>
Sent: Thursday, September 24, 2020 10:21 AM
To: <>
Subject: Re: [cgal-discuss] Reading a las file.
 
Actually it depends on your version of CGAL. <5.1, your code is probably right, if LASLIB_FOUND is TRUE. What is your CMAKE output during configuration ?
NOTICE : the LAS reader found.
or
NOTICE : the LAS reader test requires LASlib and will not be compiled.
?

Le jeu. 24 sept. 2020 à 16:11, Himanshu Sharma <> a écrit :
I see. I have attached the CMakeLists.txt along.

I tried to follow CMakeLists.txt of read_las_example from Point_set_processing_3, but didnt get it right it seems.

Regards
Himanshu

From: <> on behalf of Maxime Gimeno <>
Sent: Thursday, September 24, 2020 2:13 AM
To: <>
Subject: Re: [cgal-discuss] Reading a las file.
 
Hello,

It looks like you did not link with LAS. Can you provide your CMakeLists.txt ? You must have forgotten to link with the target CGAL::LASLIB_support. Have a look here : https://doc.cgal.org/latest/Manual/thirdparty.html#thirdpartyLASlib

Le jeu. 24 sept. 2020 à 05:27, Himanshu Sharma <> a écrit :

Hello,


I am trying to read a .las file into Point_set_3. Below is the code snippent. However this throws following error:

error: no matching function for call to 'make_las_point_reader.

I am not sure what goes wrong here. I understand that the argument to the make_las_point_reader is not of the right type.

 


std::ifstream ifile (argv[1], std::ios_base::binary);

  CGAL::Point_set_3<Point_3> points;


  if (!CGAL::read_las_points

      (ifile,

       points.index_back_inserter(),

       CGAL::make_las_point_reader(points.point_map())))

    {

      std::cerr << "Error: cannot read file " << argv[1] << std::endl;

      return EXIT_FAILURE;

    }


Regards
Himanshu

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss




Archive powered by MHonArc 2.6.19+.

Top of Page