给mitab_capi.cpp的函数写注释
mitab_capi.cpp File Reference
Defines
#define INFO_NUMPARTS 0
#define INFO_NUMPOINTS 1
#define INFO_XVERTEX 2
#define INFO_YVERTEX 3
Functions
int MITAB_STDCALL mitab_c_getlibversion () //返回库的版本号
int MITAB_STDCALL mitab_c_getlasterrorno () //获取错误信息
const char *MITAB_STDCALL mitab_c_getlasterrormsg ()
int MITAB_STDCALL mitab_c_getlasterrormsg_vb (char *errormsg, int l)
mitab_handle MITAB_STDCALL mitab_c_open (const char *pszFilename) //打开.TAB or .MIF数据
void MITAB_STDCALL mitab_c_close (mitab_handle handle) //关闭文件
mitab_handle MITAB_STDCALL mitab_c_create (const char *filename, const char *mif_or_tab, const char *mif_projection, double north, double south, double east, double west) //创建一个新的.TAB or .MIF 数据集
int MITAB_STDCALL mitab_c_add_field (mitab_handle dataset, const char *field_name, int field_type, int width, int precision, int indexed, int unique) //添加一个字段
void MITAB_STDCALL mitab_c_destroy_feature (mitab_feature feature) //删除一个对象和空间
int MITAB_STDCALL mitab_c_next_feature_id (mitab_handle handle, int last_feature_id) //获得下一个有效的代码编号
mitab_feature MITAB_STDCALL mitab_c_read_feature (mitab_handle handle, int feature_id) //读出一个对象
int MITAB_STDCALL mitab_c_write_feature (mitab_handle handle, mitab_feature feature) //写一个对象到文件中
mitab_feature MITAB_STDCALL mitab_c_create_feature (mitab_handle handle, int feature_type)//创建对象并写写到文件中
void MITAB_STDCALL mitab_c_set_field (mitab_feature feature, int field_index, const char *field_value) //给一个对象的特定字段赋值
void MITAB_STDCALL mitab_c_set_points (mitab_feature feature, int part, int vertex_count, double *x, double *y)
//给对象设定坐标
void MITAB_STDCALL mitab_c_set_arc (mitab_feature feature, double center_x, double center_y, double x_radius, double y_radius, double start_angle, double end_angle) //设定一个弧段或者椭圆的参数
void MITAB_STDCALL mitab_c_set_text (mitab_feature feature, const char *text) //设置或者获取字符
const char *MITAB_STDCALL mitab_c_get_text (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_text_vb (mitab_feature feature, char *text, int l)
void MITAB_STDCALL mitab_c_set_text_display (mitab_feature feature, double angle, double height, double width, int fg_color, int bg_color, int justification, int spacing, int linetype) //设置显示属性
double MITAB_STDCALL mitab_c_get_text_angle (mitab_feature feature) //设置字体相关参数
double MITAB_STDCALL mitab_c_get_text_height (mitab_feature feature)
double MITAB_STDCALL mitab_c_get_text_width (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_text_fgcolor (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_text_bgcolor (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_text_justification (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_text_spacing (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_text_linetype (mitab_feature feature)
void MITAB_STDCALL mitab_c_set_font (mitab_feature feature, const char *fontname)
const char *MITAB_STDCALL mitab_c_get_font (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_font_vb (mitab_feature feature, char *font, int l)
void MITAB_STDCALL mitab_c_set_brush (mitab_feature feature, int fg_color, int bg_color, int pattern, int transparent)
int MITAB_STDCALL mitab_c_get_brush_fgcolor (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_brush_bgcolor (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_brush_pattern (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_brush_transparent (mitab_feature feature)
void MITAB_STDCALL mitab_c_set_pen (mitab_feature feature, int width, int pattern, int color)
int MITAB_STDCALL mitab_c_get_pen_color (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_pen_width (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_pen_pattern (mitab_feature feature)
void MITAB_STDCALL mitab_c_set_symbol (mitab_feature feature, int symbol_no, int symbol_size, int symbol_color) int MITAB_STDCALL mitab_c_get_symbol_color (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_symbol_no (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_symbol_size (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_type (mitab_feature feature)
int MITAB_STDCALL mitab_c_get_parts (mitab_feature feature)
int MITAB_DLL MITAB_STDCALL mitab_c_is_interior_ring (mitab_feature feature, int requestedringindex)
int MITAB_STDCALL mitab_c_get_vertex_count (mitab_feature feature, int part)
double MITAB_STDCALL mitab_c_get_vertex_x (mitab_feature feature, int part, int vertex)
double MITAB_STDCALL mitab_c_get_vertex_y (mitab_feature feature, int part, int vertex)
int MITAB_STDCALL mitab_c_get_field_count (mitab_handle handle)
int MITAB_STDCALL mitab_c_get_feature_count (mitab_handle handle)
int MITAB_STDCALL mitab_c_get_field_type (mitab_handle handle, int field)
const char *MITAB_STDCALL mitab_c_get_field_name (mitab_handle handle, int field)
int MITAB_STDCALL mitab_c_get_field_name_vb (mitab_handle handle, int field, char *name, int l)
int MITAB_STDCALL mitab_c_get_field_width (mitab_handle handle, int field)
int MITAB_STDCALL mitab_c_get_field_precision (mitab_handle handle, int field)
const char *MITAB_STDCALL mitab_c_get_field_as_string (mitab_feature feature, int field)
int MITAB_STDCALL mitab_c_get_field_as_string_vb (mitab_feature feature, int field, char *value, int l)
double MITAB_STDCALL mitab_c_get_field_as_double (mitab_feature feature, int field)
mitab_projinfo MITAB_STDCALL mitab_c_get_projinfo (mitab_handle dataset)
int MITAB_STDCALL mitab_c_set_projinfo (mitab_handle dataset, mitab_projinfo projinfo)
const char *MITAB_STDCALL mitab_c_get_mif_coordsys (mitab_handle dataset)
int MITAB_STDCALL mitab_c_get_mif_coordsys_vb (mitab_handle dataset, char *coordsys, int l)
int MITAB_STDCALL mitab_c_load_coordsys_table (const char *filename)