gdalconst_java.i

来自「支持各种栅格图像和矢量图像读取的库」· I 代码 · 共 41 行

I
41
字号
/****************************************************************************** * $Id: gdalconst_java.i 9183 2006-02-16 17:21:12Z collinsb $ * * Name:     gdalconst_java.i * Project:  GDAL SWIG Interface * Purpose:  Typemaps for Java bindings * Author:   Benjamin Collins, The MITRE Corporation * * * $Log$ * Revision 1.2  2006/02/16 17:21:12  collinsb * Updates to Java bindings to keep the code from halting execution if the native libraries cannot be found. * * Revision 1.1  2006/02/02 20:56:07  collinsb * Added Java specific typemap code * **/%pragma(java) jniclasscode=%{  private static boolean available = false;  static {    try {      System.loadLibrary("gdalconstjni");      available = true;    } catch (UnsatisfiedLinkError e) {      available = false;      System.err.println("Native library load failed.");      System.err.println(e);    }  }    public static boolean isAvailable() {    return available;  }%}%include typemaps_java.i

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?