资源简介
libmitab。so资源库源码,1.7.0版,编译通过可正常使用
代码片段和文件信息
// $Id: MiApi.csv 1.2 2005/03/24 17:02:06 dmorissette Exp $
//
using System;
using System.Runtime.InteropServices;
using System.IO;
using System.Collections;
namespace EBop.Mapobjects.MapInfo {
// feature type values
public enum FeatureType {
TABFC_NoGeom = 0
TABFC_Point = 1
TABFC_FontPoint = 2
TABFC_CustomPoint = 3
TABFC_Text = 4
TABFC_Polyline = 5
TABFC_Arc = 6
TABFC_Region = 7
TABFC_Rectangle = 8
TABFC_Ellipse = 9
TABFC_MultiPoint = 10};
public enum FieldType {
TABFT_Char = 1
TABFT_Integer = 2
TABFT_SmallInt = 3
TABFT_Decimal = 4
TABFT_Float = 5
TABFT_Date = 6
TABFT_Logical = 7};
public enum Justification {
TABTJ_Left = 0
TABTJ_Center = 1
TABTJ_Right = 2};
public enum TextSpacing {
TABTS_Single = 0
TABTS_1_5 = 1
TABTS_Double = 2};
// test linetype
public enum LineSpacing {
TABTL_NoLine = 0
TABTL_Simple = 1
TABTL_Arrow = 2};
///
/// Wrapper functions for the version 1.3.0 of the MapInfo Tab API.
///
///
/// Requires mitab.dll (www.maptools.org)
/// See http://mitab.maptools.org/
///
/// Graham Sims
/// Environment Bay of Plenty Whakatane New Zealand
/// http://www.envbop.govt.nz
///
public class MiApi {
private MiApi() {
}
///
/// Returns the version of the library.
///
/// An integer representing the current version of the MITAB library in the
/// format xxxyyyzzz e.g. returns 1002004 for v1.2.4.
///
[DllImport(“mitab.dll“)]
public static extern int mitab_c_getlibversion();
///
/// Get the last error message.
///
///
/// Fetches the last error message posted with CPLError() that hasn‘t been cleared by CPLErrorReset().
/// The returned pointer is to an internal string that should not be altered or freed.
///
/// A pointer to the last error message or an empty string if there is no posted error message
[DllImport(“mitab.dll“ EntryPoint=“mitab_c_getlasterrormsg“)]
private static extern IntPtr _mitab_c_getlasterrormsg();
public static string mitab_c_getlasterrormsg() {
return Marshal.PtrToStringAnsi(_mitab_c_getlasterrormsg());
}
// [DllImport(“mitab.dll“)]
// public static extern int mitab_c_getlasterrormsg_vb (
// [MarshalAs(UnmanagedType.LPStr SizeConst = 260)] string errormsg int l);
///
/// Fetch the last error number.
///
/// This is the error number not the error class.
/// The error number of the last error to occur or CPLE_None (0) if there are no posted errors
[DllImport(“mitab.dll“)]
public static extern int mitab_c_getlasterrorno();
///
/// Open an existing .TAB or .MIF dataset for read access.
///
/// The function automatically detects the format (.MIF or .TAB) of the specified file.
/// Note that i
- 上一篇:servlet论坛项目
- 下一篇:libmitab。so资源库源码1.4.0
相关资源
- CCS中如何生成LIB文件-并在另外CCS项目
- LzmaLib
- Adobe Illustrator CS5原版amtlib.dll文件
- IpHlpApi.h&IpHlpApi.lib
- 开源的nmealib
- zlib 最新 1.2.8 win32 win64 编译好的dll
- CJLibrary Version 6.09
- Element_Components_v2.1.0.rplib
- libaio-0.3.107-10.el6.x86_64.rpm
- Library图书馆图书管理系统
- librdkafka win7 64位 vs2015编译Release版本
- VS2012OpenGL配置所需要的全部libdllh文件
- LibXL for Windows 3.8.3 最新版Excel操作库带
- Experimental investigation of the phase equili
- Libevent官方原版高清帮助文档
- 远程桌面协议 (RDP)控件库
- EhLib v6.0 Full Source.rar
- duilib webkit内核浏览器控件
- IBM 4U Universal Tape Library产品手册
- fastlib——十分好用的画图工具
- 编译好的json_lib.lib 包含64位,32位,头
- windows 32位64位 x264库,包含libdll和头文
- libx264静态库,windows x86版本
- libconfig-1.4.9.tar.gz
- Experimental investigation and thermodynamic c
- glibc-headers-2.5-42.x86_64.rpm
- STMicroelectronics 所有封装集成库intlib格
- libgit-platinum.so
- shape_predictor_68_face_landmarks.dat.bz2 68个标
- 基于libsvm的图像分割代码
评论
共有 条评论