<div dir="ltr"><div><div><div><div><div><div>I am developing a custom PDAL writer for my GSoC project. (<a href="https://trac.osgeo.org/grass/wiki/GSoC/2017/IntegrationOfPDALintoGRASSGIS">Link</a>)  Source Code is on <a href="https://github.com/PaulSchrum/v_in_pdal">github</a>.  The module compiles, but it is an intermediate state since I am in the process of developing it.<br><br></div>I have the custom writer, PdalVectorMapWriter,  inheriting from writer and it compiles okay.  Currently all functions just print out their own name and return.<br><br></div>In main.cpp I create the pipeline json string and create a PipelineExecutor with it.  I then call pipeline-> validate.  This throws an exception stating <br><br><span style="font-family:monospace,monospace">terminate called after throwing an instance of 'pdal::pdal_error'<br>  what():  Couldn't create writer stage of type 'writers.PdalVectorMapWriter'.</span><br><br></div>So I am thinking that I need somehow to inform Pdal about an instance of the class.  But as I go over the Pdal documentation, I do not see how to do that.  Can someone help me understand what I need to do?<br><br></div>- Paul<br><br></div>Here is a key code snippet:<br><span style="font-family:monospace,monospace">81    std::string pipeline_json =<br>82            pipelineJson::basicVectorMapReaderWriter(inFile,outFile);<br>83<br>84    cout << pipeline_json << endl;  //diagnostic only<br>85    cout << endl;<br>86    G_important_message(_("Running the pipeline ..."));<br>87    auto pipeline = new pdal::PipelineExecutor(pipeline_json);<br>88    <br>87    cout << "is valid?  " << pipeline->validate() << endl;<br></span><br></div><div>Line 87 throws the exception.<br></div><br><br>Here is the json string being passed to the PipelineExecutor constructor:<br><div><font size="2"><span style="font-family:monospace,monospace"><br>{ "pipeline":[<br><font size="1">   "/home/user/Desktop/ALL/SourceModules/cpp/grass7_trunk/vector/v.in.pdal/testFiles/100-points.las",<br></font>{<br>   "type":"writers.PdalVectorMapWriter",<br>   "filename":"100-points"<br>}<br> ]<br>}</span></font><br><br><div><div><br><br></div></div></div></div>