102 G_warning(
_(
"OGR transaction with layer <%s> failed to start"),
145 G_warning(
_(
"Unable to open feature index file for vector map <%s>"),
151 Map->fInfo.ogr.next_line = 1;
184 G_debug(1,
"V1_open_new_ogr(): name = %s with_z = %d",
name, with_z);
201 for (i = 0; i <
nlayers; i++) {
207 _(
"OGR layer <%s> already exists and will be overwritten"),
211 G_warning(
_(
"Unable to delete OGR layer <%s>"),
218 _(
"OGR layer <%s> already exists in datasource '%s'"),
248 G_debug(1,
"Vect_open_fidx(): name = %s mapset = %s format = %d",
Map->
name,
249 Map->mapset,
Map->format);
256 G_debug(1,
"unable to open fidx file for vector map <%s>", map_name);
276 "supported by this release."
277 " Try to rebuild topology or upgrade GRASS."),
281 G_warning(
_(
"Your GRASS version does not fully support feature index "
282 "format %d.%d of the vector."
283 " Consider to rebuild topology or upgrade GRASS."),
296 G_debug(4,
" header size %ld", length);
AMI_err name(char **stream_name)
Main header of GRASS DataBase Management Interface.
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
void G_free(void *)
Free allocated memory.
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_warning(const char *,...) __attribute__((format(printf
void G_fseek(FILE *, off_t, int)
Change the file position of the stream.
FILE * G_fopen_old(const char *, const char *, const char *)
Open a database file for reading.
int G_get_overwrite(void)
Get overwrite value.
int G_debug(int, const char *,...) __attribute__((format(printf
const char * Vect_get_full_name(struct Map_info *)
Get fully qualified name of vector map.
#define GV_DIRECTORY
Name of vector directory.
#define GV_FIDX_ELEMENT
External format (OGR), feature index.
#define WITHOUT_Z
2D/3D vector data
void dig_init_portable(struct Port_info *, int)
Set Port_info structure to byte order of file.
int dig__fread_port_L(long *, size_t, struct gvfile *)
Read longs from the Portable Vector Format.
int dig_set_cur_port(struct Port_info *)
Set current Port_info structure.
int dig__fread_port_C(char *, size_t, struct gvfile *)
Read chars from the Portable Vector Format.
int dig__fread_port_I(int *, size_t, struct gvfile *)
Read integers from the Portable Vector Format.
void dig_file_init(struct gvfile *file)
Initialize gvfile structure.
int V1_open_new_ogr(struct Map_info *Map, const char *name, int with_z)
Prepare OGR datasource for creating new OGR layer (level 1)
int Vect_open_fidx(struct Map_info *Map, struct Format_info_offset *offset)
Open feature index file.
int V2_open_old_ogr(struct Map_info *Map)
Open existing OGR layer on topological level.
int V1_open_old_ogr(struct Map_info *Map, int update)
Open existing OGR layer on non-topological level.
int byte_order
File byte order.
FILE * file
File descriptor.