资源简介
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
相关资源
- libmitab。so资源库源码1.4.0
- zw_glibc-devel-2.3.4-2.x86_64.zip
- libmp3lame(3.100)_iOS静态库支持arm64v
- openssl生成的out32dll文件
- dlib 5点标注 shape_predictor_5_face_landmar
- libevent-2.1.8-stable for iOS 包含静态库与
- glibc-2.9绿色压缩版
- g2o_lib_debug
- libtensorflow_inference.so
- 32位 opencv 3.4.1 lib和dll文件
- STM32F4xx Lib
- leptonica-1.68-win32-lib-include-dirs.zip库 o
- Windows下VS2015编译并使用libcurl.lib静态
- 仿BiLiBiLi源码
- Go.Standard.Library.Cookbook.pdf
-
windows下安装 libxm
l2 安装包 64位 - openssl lib
- 需要:libQt5WebKitWidgets.so.5()(64bi
- vs2013编译好的soil库,内含lib库
- libkml-1.2
- libjpeg-turbo.rar
- Linux 下编译好的liblas库文件,包含了
- libx264 将rgb24格式转换为h264 vs2013
- 单片机常用原件库.PCBLIB
- LibGDX字体制作工具hiero v5
- Libevent深入浅出-码源深度剖析
- Axure8手机平板模型元件库.rplib
- arduino_libraries库函数大全
- tesseract_lib_vs2010编译好的dll库和lib文件
- Axure_library_CloudBU axure元件
评论
共有 条评论