tudelft3d/pprepair

Specifying SHP-file output doesn't work as advertised

emacgillavry opened this issue · 1 comments

According to https://github.com/tudelft3d/pprepair/blob/master/README.md#L31, one should specify cmake -DDRIVER="ESRI Shapefile" . , but on

# add_definitions(-DDRIVER="ESRI Shapefile")
, this is option is commented out. Hence, the command pprepair only outputs GeoJSON instead of SHP-file.

I looked a bit into this. I think it does not work to pass the -DDRIVER definition on the command line to cmake. What works for me is modifying the CMakeLists.txt file and uncommenting the desired the driver, while commenting the other.

I would do a out of source build, so then the steps are (when inside the root of the project, and after editing the CMakeLists.txt file):

$ mkdir build $ cd build $ cmake .. $ make