window.c 650 B

12345678910111213141516171819202122232425262728293031323334
  1. /*!
  2. \file lib/vector/Vlib/window.c
  3. \brief Vector library - window/region
  4. Higher level functions for reading/writing/manipulating vectors.
  5. (C) 2001-2009 by the GRASS Development Team
  6. This program is free software under the GNU General Public License
  7. (>=v2). Read the file COPYING that comes with GRASS for details.
  8. \author Radim Blazek
  9. */
  10. #include <grass/vector.h>
  11. /*
  12. int
  13. Vect__get_window (
  14. struct Map_info *Map, double *n, double *s, double *e, double *w)
  15. {
  16. struct dig_head *dhead;
  17. dhead = &(Map->head);
  18. *n = dhead->N;
  19. *s = dhead->S;
  20. *e = dhead->E;
  21. *w = dhead->W;
  22. return (0);
  23. }
  24. */