proto.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #include <grass/raster.h>
  2. #undef MIN
  3. #undef MAX
  4. #define MIN(a,b) ((a) < (b) ? (a) : (b))
  5. #define MAX(a,b) ((a) > (b) ? (a) : (b))
  6. struct band_info
  7. {
  8. RASTER_MAP_TYPE data_type;
  9. GDALDataType gdal_type;
  10. int has_null;
  11. double null_val;
  12. double range[2];
  13. struct Colors colors;
  14. };
  15. enum flip {
  16. FLIP_H = 1,
  17. FLIP_V = 2,
  18. };
  19. /* link.c */
  20. void query_band(GDALRasterBandH, const char *,
  21. struct Cell_head *, struct band_info *);
  22. void make_cell(const char *, const struct band_info *);
  23. void make_link(const char *, const char *, int,
  24. const struct band_info *, int);
  25. void write_fp_format(const char *, const struct band_info *);
  26. void write_fp_quant(const char *);
  27. void create_map(const char *, int, const char *,
  28. struct Cell_head *, struct band_info *,
  29. const char *, int);
  30. /* list.c */
  31. void list_layers(FILE *, const char *);
  32. void list_formats(void);
  33. /* proj.c */
  34. void check_projection(struct Cell_head *, GDALDatasetH, int);
  35. /* window.c */
  36. void setup_window(struct Cell_head *, GDALDatasetH, int *);
  37. void update_default_window(struct Cell_head *);