GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-bea8435a9e
wind_format.c File Reference

GIS Library - Window formatting functions. More...

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

Go to the source code of this file.

Functions

void G_format_northing (double north, char *buf, int projection)
 Northing to ASCII. More...
 
void G_format_easting (double east, char *buf, int projection)
 Easting to ASCII. More...
 
void G_format_resolution (double res, char *buf, int projection)
 Resolution to ASCII. More...
 

Detailed Description

GIS Library - Window formatting functions.

(C) 2001-2009 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
Original author CERL

Definition in file wind_format.c.

Function Documentation

◆ G_format_easting()

void G_format_easting ( double  east,
char *  buf,
int  projection 
)

Easting to ASCII.

Converts the double representation of the east coordinate to its ASCII representation (into buf).

Parameters
easteasting
[out]bufbuffer to hold formatted string
projectionprojection code, or -1 to force full precision FP

Definition at line 49 of file wind_format.c.

References G_lon_format(), and PROJECTION_LL.

Referenced by G__write_Cell_head().

◆ G_format_northing()

void G_format_northing ( double  north,
char *  buf,
int  projection 
)

Northing to ASCII.

Converts the double representation of the north coordinate to its ASCII representation (into buf).

Parameters
northnorthing
[out]bufbuffer to hold formatted string
projectionprojection code, or -1 to force full precision FP

Definition at line 29 of file wind_format.c.

References G_lat_format(), and PROJECTION_LL.

Referenced by G__write_Cell_head().

◆ G_format_resolution()

void G_format_resolution ( double  res,
char *  buf,
int  projection 
)

Resolution to ASCII.

Converts the double representation of the resolution to its ASCII representation (into buf).

Parameters
resolutionresolution value
[out]bufbuffer to hold formatted string
projectionprojection code, or -1 to force full precision FP

Definition at line 69 of file wind_format.c.

References G_llres_format(), and PROJECTION_LL.

Referenced by G__write_Cell_head(), and G__write_Cell_head3().