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