56 G_warning(
_(
"Vector map <%s> not found"), name);
104 gpt->
p3[
X] = Points->
x[0];
105 gpt->
p3[
Y] = Points->
y[0];
109 gpt->
p3[
Z] = Points->
z[0];
126 G_debug(5,
"loading vector point %d x=%f y=%f ncats=%d",
127 np, Points->
x[0], Points->
y[0], Cats->
n_cats);
148 G_warning(
_(
"No points from vector map <%s> fall within current region"),
153 G_message(
_(
"Vector map <%s> loaded (%d points)"),
178 int nvals, cat, npts, nskipped;
202 G_warning(
_(
"Database connection not defined for layer %d"),
211 G_message(
_(
"Loading thematic points layer <%s>..."),
235 G_warning(
_(
"No color rule defined for category %d"), cat);
289 "Unable to determine color rules for features without category."),
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
const char * G_find_vector2(const char *, const char *)
Find a vector map (look but don't touch)
2D/3D raster map header (used also for region)
double west
Extent coordinates (west)
int G_str_to_color(const char *, int *, int *, int *)
Parse color string and set red,green,blue.
char * table
Name of DB table.
void G_free(void *)
Free allocated memory.
int db_get_value_int(dbValue *)
Get integer value.
dbDriver * db_start_driver_open_database(const char *, const char *)
Open driver/database connection.
int Vect_close(struct Map_info *)
Close vector map.
gvstyle_thematic * tstyle
struct field_info * Vect_get_field(const struct Map_info *, int)
Get information about link to database (by layer number)
int Vect_set_constraint_region(struct Map_info *, double, double, double, double, double, double)
Set constraint region.
double top
Extent coordinates (top) - 3D data.
Layer (old: field) information.
void G_message(const char *,...) __attribute__((format(printf
double * x
Array of X coordinates.
Feature geometry info - coordinates.
double north
Extent coordinates (north)
char * G_fully_qualified_name(const char *, const char *)
Get fully qualified element name.
int db_select_value(dbDriver *, const char *, const char *, int, const char *, dbValue *)
Select one (first) value from table/column for key/id.
struct line_pnts * Vect_new_line_struct(void)
Creates and initializes a line_pnts structure.
double south
Extent coordinates (south)
int n_cats
Number of categories attached to element.
int Gp_load_sites_thematic(geosite *gp, struct Colors *colors)
Load styles for geopoints based on thematic mapping.
const struct driver * driver
void G_get_set_window(struct Cell_head *)
Get the current working window (region)
int Vect_reset_cats(struct line_cats *)
Reset category structure to make sure cats structure is clean to be re-used.
int Vect_set_open_level(int)
Predetermine level at which a vector map will be opened for reading.
int GP_str_to_marker(const char *)
Determine point marker symbol for string.
#define PORT_DOUBLE_MAX
Limits for portable types.
const char * db_get_value_string(dbValue *)
Get string value.
geopoint * Gp_load_sites(const char *name, int *nsites, int *has_z)
Load to points to memory.
double * y
Array of Y coordinates.
char * driver
Name of DB driver ('sqlite', 'dbf', ...)
int Rast_get_c_color(const CELL *, int *, int *, int *, struct Colors *)
Gets color from raster map (CELL)
int Vect_is_3d(const struct Map_info *)
Check if vector map is 3D.
struct line_cats * Vect_new_cats_struct(void)
Creates and initializes line_cats structure.
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
void G_warning(const char *,...) __attribute__((format(printf
double east
Extent coordinates (east)
double * z
Array of Z coordinates.
int Vect_open_old(struct Map_info *, const char *, const char *)
Open existing vector map for reading.
int Vect_read_next_line(const struct Map_info *, struct line_pnts *, struct line_cats *)
Read next vector feature.
int G_debug(int, const char *,...) __attribute__((format(printf
int Vect_cat_get(const struct line_cats *, int, int *)
Get first found category of given field.
char * key
Name of key column (usually 'cat')