<div dir="ltr"><div>Hi!</div><div>I have implemented a GeoJSON format reader in the vtkGeoJSONReader class.<br></div><div>The reader works correctly by manual testing. Currently I am trying to write tests for the reader.</div>
<div>However, while running the tests using ctest, it gives me the following error.</div><div><br></div><div>On running </div><div>[ ctest -R vtkIOGeoJSON-HeaderTest -V ]</div><div>it gives me multiple includes error:</div>
<div><br></div><div>//////////////Terminal Output//////////////////////////////////////////////</div><div><br></div><div><span class="" style="white-space:pre">        </span>test 480</div><div><span class="" style="white-space:pre">   </span>    Start 480: vtkIOGeoJSON-HeaderTest</div>
<div><br></div><div><span class="" style="white-space:pre">   </span>480: Test command: /usr/bin/python "/media/newVolume/College_Files/Git_Repo/GeoScienceVTK/VTK/Testing/Core/HeaderTesting.py" "/media/newVolume/College_Files/Git_Repo/GeoScienceVTK/VTK/IO/GeoJSON" "VTKIOGEOJSON_EXPORT"</div>
<div><span class="" style="white-space:pre">    </span>480: Test timeout computed to be: 1500</div><div><span class="" style="white-space:pre">     </span>480: Use export macro: VTKIOGEOJSON_EXPORT</div><div><span class="" style="white-space:pre"> </span>480: </div>
<div><span class="" style="white-space:pre">    </span>480: File: /media/newVolume/College_Files/Git_Repo/GeoScienceVTK/VTK/IO/GeoJSON/vtkGeoJSONFeature.h has 2 includes: </div><div><span class="" style="white-space:pre">      </span>480:    24: #include "vtkDataObject.h"</div>
<div><span class="" style="white-space:pre">    </span>480:    25: #include "vtk_jsoncpp.h"</div><div><span class="" style="white-space:pre">   </span>480: </div><div><span class="" style="white-space:pre">     </span>480: File: /media/newVolume/College_Files/Git_Repo/GeoScienceVTK/VTK/IO/GeoJSON/vtkGeoJSONReader.h has 2 includes: </div>
<div><span class="" style="white-space:pre">    </span>480:    24: #include "vtkPolyDataAlgorithm.h"</div><div><span class="" style="white-space:pre">  </span>480:    25: #include "vtk_jsoncpp.h"</div><div>
<span class="" style="white-space:pre">       </span>480: </div><div><span class="" style="white-space:pre">     </span>480: There were errors:</div><div><span class="" style="white-space:pre">    </span>480: * Multiple includes</div>
<div><span class="" style="white-space:pre">    </span>1/1 Test #480: vtkIOGeoJSON-HeaderTest ..........***Failed    0.17 sec</div><div><br></div><div><span class="" style="white-space:pre">  </span>0% tests passed, 1 tests failed out of 1</div>
<div><br></div><div><span class="" style="white-space:pre">   </span>Total Test time (real) =   0.46 sec</div><div><br></div><div><span class="" style="white-space:pre">      </span>The following tests FAILED:</div><div><span class="" style="white-space:pre">                </span>480 - vtkIOGeoJSON-HeaderTest (Failed)</div>
<div><span class="" style="white-space:pre">    </span>Errors while running CTest</div><div><br></div><div>////////////////////////////////////////////////////////////////////////////////</div><div><br></div><div>I have verified the reader by testing it on various json files, and the reader gives correct output. (Tested and added here: <a href="https://github.com/jatin3893/vtkDataSetReaders">https://github.com/jatin3893/vtkDataSetReaders</a>).</div>
<div><br></div><div>Can someone please help me to remove the error in the HeaderTest?</div><div>I have attached my entire VTKSource/IO/GeoJSON folder along with this message for reference.</div><div>Please specify if I need to provide any more information.</div>
<div><br></div><div>Thanks!</div><div>Jatin</div></div>