GRASS Programmer's Manual
6.4.3(2013)-r
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
g3dopen2.c
Go to the documentation of this file.
1
#include <grass/gis.h>
2
#include <grass/G3d.h>
3
4
/*----------------------------------------------------------------------------*/
5
6
void
*
G3d_openNewParam
(
const
char
*
name
,
int
typeIntern,
int
cache,
7
G3D_Region * region,
int
type
,
int
doLzw,
int
doRle,
8
int
precision,
int
tileX,
int
tileY,
int
tileZ)
9
{
10
void
*map;
11
int
oldCompress, oldLzw, oldRle, oldPrecision, oldTileX, oldTileY,
12
oldTileZ;
13
int
oldType;
14
15
G3d_initDefaults
();
16
17
G3d_getCompressionMode
(&oldCompress, &oldLzw, &oldRle, &oldPrecision);
18
G3d_setCompressionMode
(oldCompress, doLzw, doRle, precision);
19
20
G3d_getTileDimension
(&oldTileX, &oldTileY, &oldTileZ);
21
G3d_setTileDimension
(tileX, tileY, tileZ);
22
23
oldType =
G3d_getFileType
();
24
G3d_setFileType
(type);
25
26
map =
G3d_openCellNew
(name, typeIntern, cache, region);
27
28
G3d_setCompressionMode
(oldCompress, oldLzw, oldRle, oldPrecision);
29
G3d_setTileDimension
(oldTileX, oldTileY, oldTileZ);
30
G3d_setFileType
(oldType);
31
32
return
map;
33
}
lib
g3d
g3dopen2.c
Generated on Thu Sep 26 2013 09:48:01 for GRASS Programmer's Manual by
1.8.4