<div dir="ltr"><br>On Mon, May 1, 2017 at 11:43 AM, Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>> wrote:<br>>><br>>> I have separated the binning code in r.in.lidar [3] so that it can be<br>>> used in <a href="http://r.in.xyz">r.in.xyz</a><br>><br>><br>> Is it different from the binning code in <a href="http://r.in.xyz">r.in.xyz</a> ?<br><br><br>Not really. r.in.lidar was based on <a href="http://r.in.xyz">r.in.xyz</a>, now they are different but of course the idea is to make them again as similar as possible.<br> <br>><br>><br>><br>>> and the missing module which would do<br>>> the binning of a vector map into a raster map. There is actually a large<br>>> overlap with code for grid-based decimation of a point cloud (2D with<br>>> gridded or averaged X and Y). I already committed the code to r.in.lidar<br>>> [4], but we had a discussion on mailing list and decided that this<br>>> functionality should not be part of r.in.lidar, so it is disabled [5]<br>>> but the code is still there.<br>><br>><br>> So what you are saying is that the code should go into a library and be used by all relevant modules ?<br><br><br>Yes. That would be ideal. Now it is in separate files in r.in.lidar and it can be copied and synced, but I think the library would not be less general than other libraries, so there is probably no reason to not include it. The only reason I didn't do it is that I wanted to do the refactoring in <a href="http://r.in.xyz">r.in.xyz</a> first (which I never finished) and then work on the library.<br> <br>><br>><br>>><br>>> Anyway, a new module needs to be implemented for this. The name can be<br>>> something like r.binning, r.vect.stats, r.point.stats, or<br>>> r.points.stats. It might good project for beginners.<br>><br>><br>> I like the idea. But do you really think this would be much faster than v.out.ascii | <a href="http://r.in.xyz">r.in.xyz</a> ?<br><br><br>I don't know if much faster, but it will be at least little faster. Another issue is that "v.out.ascii | <a href="http://r.in.xyz">r.in.xyz</a>" is little hard to do on MS Windows and from GUI in general. Yes, there should have been a wrapper module for this already, but the a module to do the task directly is seems to me as a better solution esp. if there is the library. But the wrapper module may be a good way to start and to decide about the name and interface.<br></div>