GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
Segment creation routine. More...
#include <unistd.h>
#include <fcntl.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include "local_proto.h"
Go to the source code of this file.
Functions | |
int | Segment_open (SEGMENT *SEG, char *fname, off_t nrows, off_t ncols, int srows, int scols, int len, int nseg) |
Initialize segment structure and open segment file. More... | |
Segment creation routine.
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file segment/open.c.
int Segment_open | ( | SEGMENT * | SEG, |
char * | fname, | ||
off_t | nrows, | ||
off_t | ncols, | ||
int | srows, | ||
int | scols, | ||
int | len, | ||
int | nseg | ||
) |
Initialize segment structure and open segment file.
Initializes the seg structure and prepares a temporary file. This fn is a wrapper for Segment_format() and Segment_init()
Note: The file with name fname will be created anew.
[in,out] | SEG | segment |
[in] | fname | file name |
[in] | nrows | number of non-segmented rows |
[in] | ncols | number of non-segmented columns |
[in] | srows | segment rows |
[in] | scols | segment columns |
[in] | len | length of data type |
[in] | nseg | number of segments to remain in memory |
Definition at line 45 of file segment/open.c.