local_proto.h 1.7 KB

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