overlay.c File Reference

#include <string.h>
#include <grass/Vect.h>

Include dependency graph for overlay.c:

Go to the source code of this file.

Functions

int Vect_overlay_and (struct Map_info *, int, struct ilist *, struct ilist *, struct Map_info *, int, struct ilist *, struct ilist *, struct Map_info *)
 overlay 2 vector maps with AND. AND supports: point line area point + - + line - - - area + - -
int Vect_overlay_str_to_operator (char *str)
 Get operator code from string.
int Vect_overlay (struct Map_info *AMap, int atype, struct ilist *AList, struct ilist *AAList, struct Map_info *BMap, int btype, struct ilist *BList, struct ilist *BAList, int operator, struct Map_info *OMap)
 Overlay 2 maps and create new one.


Function Documentation

int Vect_overlay ( struct Map_info *  AMap,
int  atype,
struct ilist *  AList,
struct ilist *  AAList,
struct Map_info *  BMap,
int  btype,
struct ilist *  BList,
struct ilist *  BAList,
int  operator,
struct Map_info *  OMap 
)

Overlay 2 maps and create new one.

Returns:
0 on success,?? on error
Parameters:
AMap,atype,AList,AAList,BMap,btype,BList,BAList,operator,OMap 

Definition at line 56 of file overlay.c.

References Vect_overlay_and().

int Vect_overlay_and ( struct Map_info *  AMap,
int  atype,
struct ilist *  AList,
struct ilist *  AAList,
struct Map_info *  BMap,
int  btype,
struct ilist *  BList,
struct ilist *  BAList,
struct Map_info *  OMap 
)

overlay 2 vector maps with AND. AND supports: point line area point + - + line - - - area + - -

Returns:
1 on success, 0 on error
Parameters:
AMap,atype,AList,AAList,BMap,btype,BList,BAList,OMap )

Definition at line 85 of file overlay.c.

References Vect_cat_set(), Vect_find_area(), Vect_find_node(), Vect_get_area_centroid(), Vect_get_node_line(), Vect_get_node_n_lines(), Vect_get_num_lines(), Vect_list_append(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_new_list(), Vect_read_line(), Vect_reset_cats(), Vect_val_in_list(), and Vect_write_line().

Referenced by Vect_overlay().

int Vect_overlay_str_to_operator ( char *  str  ) 

Get operator code from string.

Returns:
operator code, -1 on error
Parameters:
operator code string

Definition at line 33 of file overlay.c.


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