build_nat.c File Reference

#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <grass/glocale.h>
#include <grass/gis.h>
#include <grass/Vect.h>

Include dependency graph for build_nat.c:

Go to the source code of this file.

Functions

int prnmsg (char *msg,...)
int Vect_build_line_area (struct Map_info *Map, int iline, int side)
 build area on given side of line ( GV_LEFT or GV_RIGHT )
int Vect_isle_find_area (struct Map_info *Map, int isle)
 find area outside island
int Vect_attach_isle (struct Map_info *Map, int isle)
 (Re)Attach isle to area
int Vect_attach_isles (struct Map_info *Map, BOUND_BOX *box)
 (Re)Attach isles to areas in given box
int Vect_attach_centroids (struct Map_info *Map, BOUND_BOX *box)
 (Re)Attach centroids to areas in given box
int Vect_build_nat (struct Map_info *Map, int build, FILE *msgout)

Variables

FILE * Msgout


Function Documentation

int prnmsg ( char *  msg,
  ... 
)

Definition at line 43 of file build.c.

References Msgout.

Referenced by Vect_build_nat(), and Vect_build_partial().

int Vect_attach_centroids ( struct Map_info *  Map,
BOUND_BOX *  box 
)

(Re)Attach centroids to areas in given box

Returns:
? not sure yet what should be returned
Parameters:
Map_info structure, BOUND_BOX

Definition at line 299 of file build_nat.c.

References dig_line_add_updated(), Vect_find_area(), Vect_new_list(), and Vect_select_lines_by_box().

Referenced by V2_delete_line_nat(), and V2_write_line_nat().

int Vect_attach_isle ( struct Map_info *  Map,
int  isle 
)

(Re)Attach isle to area

Returns:
? not sure yet what should be returned
Parameters:
Map_info structure, isle number

Definition at line 233 of file build_nat.c.

References dig_area_add_isle(), and Vect_isle_find_area().

Referenced by Vect_attach_isles(), and Vect_build_nat().

int Vect_attach_isles ( struct Map_info *  Map,
BOUND_BOX *  box 
)

(Re)Attach isles to areas in given box

Returns:
? not sure yet what should be returned
Parameters:
Map_info structure, BOUND_BOX

Definition at line 266 of file build_nat.c.

References Vect_attach_isle(), Vect_new_list(), and Vect_select_isles_by_box().

Referenced by V2_delete_line_nat(), and V2_write_line_nat().

int Vect_build_line_area ( struct Map_info *  Map,
int  iline,
int  side 
)

build area on given side of line ( GV_LEFT or GV_RIGHT )

Returns:
> 0 : number of area, < 0 : number of isle, 0 : not created (may also already exist)
Parameters:
Map_info structure, line number ?, side (left? right?)

Definition at line 35 of file build_nat.c.

References dig_add_area(), dig_add_isle(), dig_build_area_with_line(), dig_find_area_poly(), dig_line_get_area(), Vect_append_points(), Vect_close(), Vect_new_line_struct(), Vect_read_line(), and Vect_reset_line().

Referenced by V2_delete_line_nat(), V2_write_line_nat(), and Vect_build_nat().

int Vect_build_nat ( struct Map_info *  Map,
int  build,
FILE *  msgout 
)

int Vect_isle_find_area ( struct Map_info *  Map,
int  isle 
)

find area outside island

Returns:
number of area(s), 0 if not found
Parameters:
Map_info structure, isle number

Definition at line 116 of file build_nat.c.

References Vect_get_area_box(), Vect_get_area_points(), Vect_get_isle_box(), Vect_new_line_struct(), Vect_new_list(), Vect_point_in_area_outer_ring(), and Vect_select_areas_by_box().

Referenced by Vect_attach_isle().


Variable Documentation

FILE* Msgout

Definition at line 40 of file build.c.

Referenced by prnmsg(), Vect_build_nat(), and Vect_build_partial().


Generated on Sun Apr 6 17:32:45 2008 for GRASS by  doxygen 1.5.5