karttapullautin / karttapullautin

A fast and accurate map generator from classified LiDAR data.
GNU General Public License v3.0
38 stars 9 forks source link

dxf contour & formlines in Linux & WSL2 (from source) #69

Closed hughamacmullaniv closed 8 months ago

hughamacmullaniv commented 8 months ago

Hi Team!

I'm seeing Windows binaries work fine creating the contours.dxf & formlines.dxf files, but not in Linux (I've tried Ubuntu & Rocky 8), or in WSL2 after building rusty-pullauta with cargo. I get all but those 2. Same Lidar file:

Windows Binary

$ for F in out/*.dxf; do echo $F $(ogrinfo $F -so -al | grep Count); done
out/AnnieMac_EPSG_26918.laz_c2g.dxf Feature Count: 2
out/AnnieMac_EPSG_26918.laz_c3g.dxf Feature Count: 70
out/AnnieMac_EPSG_26918.laz_contours03.dxf Feature Count: 8493
out/AnnieMac_EPSG_26918.laz_contours.dxf Feature Count: 201
out/AnnieMac_EPSG_26918.laz_detected.dxf Feature Count: 63
out/AnnieMac_EPSG_26918.laz_dotknolls.dxf Feature Count: 188
out/AnnieMac_EPSG_26918.laz_formlines.dxf Feature Count: 255

WSL2 Cargo Build

$ for F in out/*.dxf; do echo $F $(ogrinfo $F -so -al | grep Count); done
out/AnnieMac_EPSG_26918.laz_c2g.dxf Feature Count: 2
out/AnnieMac_EPSG_26918.laz_c3g.dxf Feature Count: 70
out/AnnieMac_EPSG_26918.laz_contours03.dxf Feature Count: 8498
out/AnnieMac_EPSG_26918.laz_contours.dxf Feature Count: 0
out/AnnieMac_EPSG_26918.laz_detected.dxf Feature Count: 63
out/AnnieMac_EPSG_26918.laz_dotknolls.dxf Feature Count: 189
out/AnnieMac_EPSG_26918.laz_formlines.dxf Feature Count: 0

Any thoughts?

rphlo commented 8 months ago

It might be a regression in latest commits that are not included in the release. I'd try to reset the code at commit fc48569b51e49b5d7731eea9cfa0ac52522f3180 and see if I would still have the issue...

rphlo commented 8 months ago

Found the issue and fixed in master's latest commit

hughamacmullaniv commented 8 months ago

Bingo! Thanks a lot for the speedy fix, @rphlo!