local_proto.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. /* Internal vector library subroutines which are not part of public
  10. API*/
  11. /* area.c */
  12. int Vect__get_area_points(const struct Map_info *, const plus_t *, int, struct line_pnts *);
  13. int Vect__get_area_points_nat(const struct Map_info *, const plus_t *, int, struct line_pnts *);
  14. /* close.c */
  15. void Vect__free_cache(struct Format_info_cache *);
  16. void Vect__free_offset(struct Format_info_offset *);
  17. /* copy.c */
  18. int Vect__copy_areas(const struct Map_info *, int, struct Map_info *);
  19. /* map.c */
  20. int Vect__delete(const char *, int);
  21. /* open.c */
  22. int Vect__open_old(struct Map_info *, const char *, const char *,
  23. const char *, int, int, int);
  24. char *Vect__get_path(char *, const struct Map_info *);
  25. char *Vect__get_element_path(char *, const struct Map_info *, const char *);
  26. /* write_nat.c */
  27. int V2__add_line_to_topo_nat(struct Map_info *, off_t, int,
  28. const struct line_pnts *, const struct line_cats *, int,
  29. int (*external_routine) (const struct Map_info *, int));
  30. int V2__delete_line_from_topo_nat(struct Map_info *, int, int,
  31. const struct line_pnts *, const struct line_cats *);
  32. /* write_sfa.c */
  33. off_t V2__write_area_sfa(struct Map_info *, const struct line_pnts **, int,
  34. const struct line_cats *);
  35. /* write_ogr.c */
  36. #ifdef HAVE_OGR
  37. off_t V2__write_area_ogr(struct Map_info *, const struct line_pnts **, int,
  38. const struct line_cats *);
  39. #endif /* HAVE_OGR */
  40. #endif /* PG_LOCAL_PROTO_H__ */