rphlo / karttapullautin

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

Division with zero - no output from last release #13

Closed stefankinell closed 1 year ago

stefankinell commented 1 year ago

I did a clean compilation downloading all code again. And when I run it I get errors in multiple places:

stefankinell@Stefans-Macbook-Gokartor rusty-pullauta-master % perl pullauta 22H059_753_73_2550.laz                 
Karttapullautin v. 20190203 (c) Jarkko Ryyppo 2012-19  All rights reserved.
This exe is free for non commercial use or if used for for navsport 
mapping (orienteering, rogaining, adventure racing mapping).
There is no warranty. Use it at your own risk!
Preparing input file
.......... done.
Knoll detection part 1

Knoll detection part 2
..Illegal modulus zero at pullauta line 6142.

Contour generation part 1
.................... done.
Contour generation part 2

Contour generation part 3
.................... done.
Contour generation part 4
GD Warning: one parameter to a memory allocation multiplication is negative or zero, failing operation gracefully
gdImageCreate error at /Library/Perl/5.30/darwin-thread-multi-2level/GD/Image.pm line 122.

Vegetation generation
......Illegal division by zero at pullauta line 3707, <SISAAN> line 3.

Cliff generation 

Detecting buildings
..GD Warning: one parameter to a memory allocation multiplication is negative or zero, failing operation gracefully
gdImageCreate error at /Library/Perl/5.30/darwin-thread-multi-2level/GD/Image.pm line 122.

Rendering png map with depressions
...temp/vegetation.png not found: No such file or directory at /Library/Perl/5.30/darwin-thread-multi-2level/GD/Image.pm line 100.

Rendering png map without depressions
...temp/vegetation.png not found: No such file or directory at /Library/Perl/5.30/darwin-thread-multi-2level/GD/Image.pm line 100.

All done!
stefankinell@Stefans-Macbook-Gokartor rusty-pullauta-master % perl pullauta 22H059_753_73_2550.laz
rphlo commented 1 year ago

This seems all be Perl script errors. Did small change to fix probable root cause which is Illegal modulus zero at pullauta line 6142.