GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
int | Vect_get_area_points (struct Map_info *Map, int area, struct line_pnts *BPoints) |
Returns the polygon array of points in BPoints. More... | |
int | Vect_get_isle_points (struct Map_info *Map, int isle, struct line_pnts *BPoints) |
Returns the polygon array of points in BPoints. More... | |
int | Vect_get_area_centroid (struct Map_info *Map, int area) |
Returns centroid number of area. More... | |
int | Vect_get_area_boundaries (struct Map_info *Map, int area, struct ilist *List) |
Creates list of boundaries for area. More... | |
int | Vect_get_isle_boundaries (struct Map_info *Map, int isle, struct ilist *List) |
Creates list of boundaries for isle. More... | |
int | Vect_get_area_num_isles (struct Map_info *Map, int area) |
Returns number of isles for area. More... | |
int | Vect_get_area_isle (struct Map_info *Map, int area, int isle) |
Returns isle for area. More... | |
int | Vect_get_isle_area (struct Map_info *Map, int isle) |
Returns area for isle. More... | |
double | Vect_area_perimeter (struct line_pnts *Points) |
Calculate area perimeter. More... | |
int | Vect_point_in_area (struct Map_info *Map, int area, double x, double y) |
Returns 1 if point is in area. More... | |
double | Vect_get_area_area (struct Map_info *Map, int area) |
Returns area of area without areas of isles. More... | |
int | Vect_get_area_cats (struct Map_info *Map, int area, struct line_cats *Cats) |
Get area categories. More... | |
int | Vect_get_area_cat (struct Map_info *Map, int area, int field) |
Find FIRST category of given field and area. More... | |
double Vect_area_perimeter | ( | struct line_pnts * | Points | ) |
Calculate area perimeter.
Points | list of points defining area boundary |
Definition at line 328 of file vector/Vlib/area.c.
References Vect_line_length().
Referenced by wxdigit.IVDigit::GetAreaPerimeter().
double Vect_get_area_area | ( | struct Map_info * | Map, |
int | area | ||
) |
Returns area of area without areas of isles.
Map | vector map |
area | area id |
Definition at line 379 of file vector/Vlib/area.c.
References G_area_of_polygon(), G_begin_polygon_area_calculations(), G_debug(), tools::size, Vect_destroy_line_struct(), Vect_get_area_points(), Vect_get_isle_points(), and Vect_new_line_struct().
Referenced by wxdigit.IVDigit::GetAreaSize(), and Vect_remove_small_areas().
Creates list of boundaries for area.
Map | vector map |
area | area id |
List | pointer to list of boundaries |
Definition at line 179 of file vector/Vlib/area.c.
References G_debug(), G_fatal_error(), NULL, Vect_list_append(), and Vect_reset_list().
Referenced by Vect_remove_small_areas().
Find FIRST category of given field and area.
Map | vector map |
area | area id |
field | layer number |
Definition at line 453 of file vector/Vlib/area.c.
References NULL, Vect_get_area_cats(), Vect_new_cats_struct(), and Vect_reset_cats().
Get area categories.
Map | vector map | |
area | area id | |
[out] | Cats | list of categories |
Definition at line 425 of file vector/Vlib/area.c.
References NULL, Vect_get_area_centroid(), Vect_read_line(), and Vect_reset_cats().
Referenced by Vect_get_area_cat().
Returns centroid number of area.
Map | vector map |
area | area id |
Definition at line 153 of file vector/Vlib/area.c.
References G_debug(), G_fatal_error(), and NULL.
Referenced by wxdigit.IVDigit::InitCats(), Vect_build_partial(), Vect_get_area_cats(), Vect_overlay_and(), Vect_remove_small_areas(), Vect_set_varray_from_cat_list(), and Vect_set_varray_from_db().
Returns isle for area.
Map | vector map |
area | area id |
isle | isle id |
Definition at line 275 of file vector/Vlib/area.c.
References G_debug(), G_fatal_error(), and NULL.
Referenced by Vect_area_buffer2(), Vect_get_point_in_area(), and Vect_read_area_geos().
Returns number of isles for area.
Map | vector map |
area | area id |
Definition at line 246 of file vector/Vlib/area.c.
References G_debug(), G_fatal_error(), and NULL.
Referenced by Vect_area_buffer2(), Vect_get_point_in_area(), and Vect_read_area_geos().
Returns the polygon array of points in BPoints.
Map | vector map | |
area | area id | |
[out] | BPoints | points array |
Definition at line 37 of file vector/Vlib/area.c.
References G_debug(), G_fatal_error(), G_warning(), NULL, Vect_append_points(), Vect_new_line_struct(), and Vect_read_line().
Referenced by wxdigit.IVDigit::GetAreaPerimeter(), Gv_load_vect(), Vect_area_buffer2(), Vect_get_area_area(), Vect_get_point_in_area(), Vect_isle_find_area(), and Vect_tin_get_z().
Returns area for isle.
Map | vector |
isle | island number |
Definition at line 302 of file vector/Vlib/area.c.
References G_debug(), G_fatal_error(), and NULL.
Referenced by Vect_select_areas_by_polygon().
Creates list of boundaries for isle.
Map | vector map |
isle | island number |
List | pointer to list where boundaries are stored |
Definition at line 213 of file vector/Vlib/area.c.
References G_debug(), G_fatal_error(), NULL, Vect_list_append(), and Vect_reset_list().
Returns the polygon array of points in BPoints.
Map | vector map | |
isle | island id | |
[out] | BPoints | points array |
Definition at line 98 of file vector/Vlib/area.c.
References G_debug(), G_fatal_error(), NULL, Vect_append_points(), Vect_new_line_struct(), and Vect_read_line().
Referenced by Vect_area_buffer2(), Vect_find_island(), Vect_get_area_area(), and Vect_get_point_in_area().
Returns 1 if point is in area.
Map | vector map |
area | area id |
x,y | point coordinates |
Definition at line 344 of file vector/Vlib/area.c.
References NULL, Vect_point_in_area_outer_ring(), and Vect_point_in_island().
Referenced by Vect_find_area().