gprojects.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef GRASS_GPROJECTSDEFS_H
  2. #define GRASS_GPROJECTSDEFS_H
  3. /* do_proj.c */
  4. int pj_do_proj(double *, double *, const struct pj_info *, const struct pj_info *);
  5. int pj_do_transform(int, double *, double *, double *,
  6. const struct pj_info *, const struct pj_info *);
  7. /* get_proj.c */
  8. int pj_get_kv(struct pj_info *, const struct Key_Value *, const struct Key_Value *);
  9. int pj_get_string(struct pj_info *, char *);
  10. int GPJ_get_equivalent_latlong(struct pj_info *, struct pj_info *);
  11. const char *set_proj_lib(const char *);
  12. int pj_print_proj_params(const struct pj_info *, const struct pj_info *);
  13. /* convert.c */
  14. char *GPJ_grass_to_wkt(const struct Key_Value *, const struct Key_Value *, int, int);
  15. #ifdef HAVE_OGR
  16. OGRSpatialReferenceH GPJ_grass_to_osr(const struct Key_Value *, const struct Key_Value *);
  17. const char *GPJ_set_csv_loc(const char *);
  18. int GPJ_osr_to_grass(struct Cell_head *, struct Key_Value **,
  19. struct Key_Value **, OGRSpatialReferenceH, int);
  20. #endif
  21. int GPJ_wkt_to_grass(struct Cell_head *, struct Key_Value **,
  22. struct Key_Value **, const char *, int);
  23. /* datum.c */
  24. int GPJ_get_datum_by_name(const char *, struct gpj_datum *);
  25. int GPJ_get_default_datum_params_by_name(const char *, char **);
  26. int GPJ_get_datum_params(char **, char **);
  27. int GPJ__get_datum_params(const struct Key_Value *, char **, char **);
  28. void GPJ_free_datum(struct gpj_datum *);
  29. struct gpj_datum_transform_list *GPJ_get_datum_transform_by_name(const char *);
  30. void GPJ_free_datum_transform(struct gpj_datum_transform_list *);
  31. /* ellipse.c */
  32. int GPJ_get_ellipsoid_by_name(const char *, struct gpj_ellps *);
  33. int GPJ_get_ellipsoid_params(double *, double *, double *);
  34. int GPJ__get_ellipsoid_params(const struct Key_Value *,
  35. double *, double *, double *);
  36. void GPJ_free_ellps(struct gpj_ellps *);
  37. /* PROJ.4's private datastructures copied from projects.h as removed
  38. from upstream; pending better solution. see:
  39. http://trac.osgeo.org/proj/ticket/98 */
  40. int pj_factors(LP, void *, double, struct FACTORS *);
  41. /* end of copy */
  42. #endif