local_proto.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef __LOCAL_PROTO_H__
  2. #define __LOCAL_PROTO_H__
  3. #include <grass/vector.h>
  4. /*! Cache type (see Format_info_cache) */
  5. #define CACHE_FEATURE 0
  6. #define CACHE_MAP 1
  7. /*! Attributes of temporary maps */
  8. /* #define TEMPORARY_MAP_DB */
  9. /*! Temporary mode */
  10. #define TEMPORARY_MAP_DISABLED 0
  11. #define TEMPORARY_MAP_ENV 1
  12. #define TEMPORARY_MAP 2
  13. /* Internal vector library subroutines which are not part of public
  14. API*/
  15. /* area.c */
  16. int Vect__get_area_points(const struct Map_info *, const plus_t *, int, struct line_pnts *);
  17. int Vect__get_area_points_nat(const struct Map_info *, const plus_t *, int, struct line_pnts *);
  18. /* close.c */
  19. void Vect__free_cache(struct Format_info_cache *);
  20. void Vect__free_offset(struct Format_info_offset *);
  21. /* copy.c */
  22. int Vect__copy_areas(const struct Map_info *, int, struct Map_info *);
  23. /* map.c */
  24. int Vect__delete(const char *, int);
  25. /* open.c */
  26. int Vect__open_old(struct Map_info *, const char *, const char *,
  27. const char *, int, int, int);
  28. char *Vect__get_path(char *, const struct Map_info *);
  29. char *Vect__get_element_path(char *, const struct Map_info *, const char *);
  30. /* write_nat.c */
  31. int V2__add_line_to_topo_nat(struct Map_info *, off_t, int,
  32. const struct line_pnts *, const struct line_cats *, int,
  33. int (*external_routine) (const struct Map_info *, int));
  34. int V2__delete_line_from_topo_nat(struct Map_info *, int, int,
  35. const struct line_pnts *, const struct line_cats *);
  36. /* write_sfa.c */
  37. off_t V2__write_area_sfa(struct Map_info *, const struct line_pnts **, int,
  38. const struct line_cats *);
  39. /* write_ogr.c */
  40. #ifdef HAVE_OGR
  41. off_t V2__write_area_ogr(struct Map_info *, const struct line_pnts **, int,
  42. const struct line_cats *);
  43. #endif /* HAVE_OGR */
  44. #endif /* PG_LOCAL_PROTO_H__ */