MCPcopy Create free account
hub / github.com/LAStools/LAStools / create_point_writer

Function create_point_writer

LASlib/src/demzip_dll.cpp:2759–2786  ·  view source on GitHub ↗

----------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

2757
2758/*----------------------------------------------------------------------------*/
2759demzip_I32 create_point_writer
2760(
2761 demzip_dll_struct *demzip_dll
2762 , const LASzip *laszip
2763)
2764{
2765 // create the point writer
2766 demzip_dll->writer = new LASwritePoint();
2767 if (demzip_dll->writer == 0)
2768 {
2769 sprintf(demzip_dll->error, "could not alloc LASwritePoint");
2770 return 1;
2771 }
2772
2773 if (!demzip_dll->writer->setup(laszip->num_items, laszip->items, laszip))
2774 {
2775 sprintf(demzip_dll->error, "setup of LASwritePoint failed");
2776 return 1;
2777 }
2778
2779 if (!demzip_dll->writer->init(demzip_dll->streamout))
2780 {
2781 sprintf(demzip_dll->error, "init of LASwritePoint failed");
2782 return 1;
2783 }
2784
2785 return 0;
2786}
2787
2788/*---------------------------------------------------------------------------*/
2789static I32

Calls 2

setupMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected