84 if (proj_info !=
NULL) {
89 if (proj_units !=
NULL) {
140 if (proj_epsg !=
NULL) {
263 double a1 = 0, a2 = 0;
270 if (a1 && a2 && (
fabs(a2 - a1) > 0.000001))
309 G_debug(1,
"Different datum names");
326 double a1 = 0, a2 = 0;
350 if ((a1 == 0 && a2 != 0) || (a1 != 0 && a2 == 0))
353 if (a1 && a2 && (
fabs(a2 - a1) > 0.000001))
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
int G_legal_filename(const char *)
Check for legal database file name.
int G_get_ellipsoid_by_name(const char *, double *, double *)
Get ellipsoid parameters by name.
char * G_file_name(char *, const char *, const char *, const char *)
Builds full path names to GIS data files.
const char * G_gisdbase(void)
Get name of top level database directory.
const char * G_find_key_value(const char *, const struct Key_Value *)
Find given key (case sensitive)
void G_write_key_value_file(const char *, const struct Key_Value *)
Write key/value pairs to file.
int int G_strcasecmp(const char *, const char *)
String compare ignoring case (upper or lower)
int G_put_element_window(const struct Cell_head *, const char *, const char *)
Write the region.
int G_mkdir(const char *)
Creates a new directory.
int G_debug(int, const char *,...) __attribute__((format(printf
void G_setenv_nogisrc(const char *, const char *)
Set environment name to value (doesn't update .gisrc)
int G_make_location_crs(const char *location_name, struct Cell_head *wind, const struct Key_Value *proj_info, const struct Key_Value *proj_units, const char *proj_srid, const char *proj_wkt)
Create a new location.
int G_write_projsrid(const char *location_name, const char *sridstring)
Write srid (spatial reference id) to file.
int G_write_projwkt(const char *location_name, const char *wktstring)
Write WKT definition to file.
int G_compare_projections(const struct Key_Value *proj_info1, const struct Key_Value *proj_units1, const struct Key_Value *proj_info2, const struct Key_Value *proj_units2)
Compare projections including units.
int G_make_location(const char *location_name, struct Cell_head *wind, const struct Key_Value *proj_info, const struct Key_Value *proj_units)
Create a new location.
int G_make_location_epsg(const char *location_name, struct Cell_head *wind, const struct Key_Value *proj_info, const struct Key_Value *proj_units, const struct Key_Value *proj_epsg)
Create a new location.
2D/3D raster map header (used also for region)
SYMBOL * err(FILE *fp, SYMBOL *s, char *msg)