GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
wr_cellhd.c File Reference

GIS Library - Write Cell Header functions. More...

#include <stdio.h>
#include <grass/gis.h>
Include dependency graph for wr_cellhd.c:

Go to the source code of this file.

Functions

void G__write_Cell_head (FILE *fd, const struct Cell_head *cellhd, int is_cellhd)
 Write cell header or window. More...
 
void G__write_Cell_head3 (FILE *fd, const struct Cell_head *cellhd, int is_cellhd)
 Write 3D cell header or window. More...
 

Detailed Description

GIS Library - Write Cell Header functions.

(C) 2001-2014 by 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
GRASS GIS Development Team
Date
1999-2014

Definition in file wr_cellhd.c.

Function Documentation

◆ G__write_Cell_head()

void G__write_Cell_head ( FILE *  fd,
const struct Cell_head cellhd,
int  is_cellhd 
)

Write cell header or window.

Parameters
[in,out]fdheader file
[in]cellhdpointed to cell header structure
[in]is_cellhd1 cell header; 0 window
Returns

Definition at line 28 of file wr_cellhd.c.

References Cell_head::cols, Cell_head::compressed, Cell_head::east, Cell_head::ew_res, Cell_head::format, G_format_easting(), G_format_northing(), G_format_resolution(), Cell_head::north, Cell_head::ns_res, Cell_head::proj, Cell_head::rows, Cell_head::south, Cell_head::west, and Cell_head::zone.

Referenced by G__write_Cell_head3(), and Rast_put_cellhd().

◆ G__write_Cell_head3()

void G__write_Cell_head3 ( FILE *  fd,
const struct Cell_head cellhd,
int  is_cellhd 
)

Write 3D cell header or window.

Parameters
[in,out]fdheader file
[in]cellhdpointer to cell header structure
[in]is_cellhd1 cell header; 0 window
Returns

Definition at line 74 of file wr_cellhd.c.

References Cell_head::bottom, Cell_head::cols3, Cell_head::depths, Cell_head::ew_res3, G__write_Cell_head(), G_format_resolution(), Cell_head::ns_res3, Cell_head::proj, Cell_head::rows3, Cell_head::tb_res, and Cell_head::top.