[pdal] PDAL Need Help

Nicolas Mantelier nicolas.mantelier at spaceyes.fr
Thu Jun 13 05:33:54 PDT 2013


Hi,

I try to read las file with PDAL lib, 
I do a really simple project that I find in :
http://www.lidarnews.com/content/view/8880/65/
but it crash on exec

#include <pdal/drivers/las/Reader.hpp>
#include <pdal/PointBuffer.hpp>
#include <pdal/Stage.hpp>
#include <pdal/StageIterator.hpp>
#include <pdal/SpatialReference.hpp>
#include <pdal/Schema.hpp>

int main(int argc,char *argv[])
{
  pdal::drivers::las::Reader reader("interesting.las");
  reader.initialize();
  const pdal::Schema& schema = reader.getSchema();
  pdal::PointBuffer data(schema, 100);
  pdal::StageSequentialIterator* iterator =
reader.createSequentialIterator(data);
  iterator->read(data);
}

It crash on reader.initialize();
A buffer overflow has occurred in test.exe that damaged the internal state
of the program.
Exception Microsoft C++ : pdal::option_not_found


Someone did know where is my mistake?

Regards




More information about the pdal mailing list