local_proto.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /****************************************************************************
  2. *
  3. * MODULE: r.in.Lidar
  4. *
  5. * AUTHOR(S): Markus Metz
  6. * Based on r.in.xyz by Hamish Bowman, Volker Wichmann
  7. *
  8. * PURPOSE: Imports LAS LiDAR point clouds to a raster map using
  9. * aggregate statistics.
  10. *
  11. * COPYRIGHT: (C) 2011 Markus Metz and the The GRASS Development Team
  12. *
  13. * This program is free software under the GNU General Public
  14. * License (>=v2). Read the file COPYING that comes with GRASS
  15. * for details.
  16. *
  17. *****************************************************************************/
  18. #ifndef __LOCAL_PROTO_H__
  19. #define __LOCAL_PROTO_H__
  20. #include <grass/gis.h>
  21. #include <liblas/capi/liblas.h>
  22. #define BUFFSIZE 256
  23. #define METHOD_N 1
  24. #define METHOD_MIN 2
  25. #define METHOD_MAX 3
  26. #define METHOD_RANGE 4
  27. #define METHOD_SUM 5
  28. #define METHOD_MEAN 6
  29. #define METHOD_STDDEV 7
  30. #define METHOD_VARIANCE 8
  31. #define METHOD_COEFF_VAR 9
  32. #define METHOD_MEDIAN 10
  33. #define METHOD_PERCENTILE 11
  34. #define METHOD_SKEWNESS 12
  35. #define METHOD_TRIMMEAN 13
  36. /* main.c */
  37. void print_lasinfo(LASHeaderH, LASSRSH);
  38. int scan_bounds(LASReaderH, int, int, double, struct Cell_head *);
  39. /* support.c */
  40. int blank_array(void *, int, int, RASTER_MAP_TYPE, int);
  41. int update_n(void *, int, int, int);
  42. int update_min(void *, int, int, int, RASTER_MAP_TYPE, double);
  43. int update_max(void *, int, int, int, RASTER_MAP_TYPE, double);
  44. int update_sum(void *, int, int, int, RASTER_MAP_TYPE, double);
  45. int update_sumsq(void *, int, int, int, RASTER_MAP_TYPE, double);
  46. #endif /* __LOCAL_PROTO_H__ */