GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
raster_metadata.c File Reference

Raster library - Functions to read and write raster "units" and "vertical datum" meta-data info. More...

#include <stdio.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/glocale.h>
Include dependency graph for raster_metadata.c:

Go to the source code of this file.

Functions

char * Rast_read_units (const char *name, const char *mapset)
 Get a raster map's units metadata string. More...
 
void Rast_write_units (const char *name, const char *str)
 Write a string to a raster map's units metadata file. More...
 
char * Rast_read_vdatum (const char *name, const char *mapset)
 Get a raster map's vertical datum metadata string. More...
 
void Rast_write_vdatum (const char *name, const char *str)
 Write a string into a raster's vertical datum metadata file. More...
 

Detailed Description

Raster library - Functions to read and write raster "units" and "vertical datum" meta-data info.

(C) 2007-2009 by Hamish Bowman, and the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Hamish Bowman

Definition in file raster_metadata.c.

Function Documentation

◆ Rast_read_units()

char* Rast_read_units ( const char *  name,
const char *  mapset 
)

Get a raster map's units metadata string.

Read the raster's units metadata file and put string in str

Parameters
nameraster map name
mapsetmapset name
Returns
string representing units on success
NULL on error

Definition at line 36 of file raster_metadata.c.

◆ Rast_read_vdatum()

char* Rast_read_vdatum ( const char *  name,
const char *  mapset 
)

Get a raster map's vertical datum metadata string.

Read the raster's vertical datum metadata file and put string in str

Parameters
nameraster map name
mapsetmapset name
Returns
string representing vertical datum on success
NULL on error

Definition at line 65 of file raster_metadata.c.

◆ Rast_write_units()

void Rast_write_units ( const char *  name,
const char *  str 
)

Write a string to a raster map's units metadata file.

Raster map must exist in the current mapset.

Parameters
nameraster map name
strstring containing data to be written

Definition at line 49 of file raster_metadata.c.

◆ Rast_write_vdatum()

void Rast_write_vdatum ( const char *  name,
const char *  str 
)

Write a string into a raster's vertical datum metadata file.

Raster map must exist in the current mapset.

Parameters
nameraster map name
strstring containing data to be written

Definition at line 79 of file raster_metadata.c.