featuredefn.java
来自「支持各种栅格图像和矢量图像读取的库」· Java 代码 · 共 79 行
JAVA
79 行
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.31 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */package org.gdal.ogr;public class FeatureDefn { private long swigCPtr; protected boolean swigCMemOwn; protected FeatureDefn(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(FeatureDefn obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; ogrJNI.delete_FeatureDefn(swigCPtr); } swigCPtr = 0; } protected static long getCPtrAndDisown(FeatureDefn obj) { if (obj != null) obj.swigCMemOwn= false; return getCPtr(obj); } public FeatureDefn(String name) { this(ogrJNI.new_FeatureDefn(name), true); } public String GetName() { return ogrJNI.FeatureDefn_GetName(swigCPtr, this); } public int GetFieldCount() { return ogrJNI.FeatureDefn_GetFieldCount(swigCPtr, this); } public FieldDefn GetFieldDefn(int i) { long cPtr = ogrJNI.FeatureDefn_GetFieldDefn(swigCPtr, this, i); return (cPtr == 0) ? null : new FieldDefn(cPtr, false); } public int GetFieldIndex(String name) { return ogrJNI.FeatureDefn_GetFieldIndex(swigCPtr, this, name); } public void AddFieldDefn(FieldDefn defn) { ogrJNI.FeatureDefn_AddFieldDefn(swigCPtr, this, FieldDefn.getCPtr(defn), defn); } public int GetGeomType() { return ogrJNI.FeatureDefn_GetGeomType(swigCPtr, this); } public void SetGeomType(int geom_type) { ogrJNI.FeatureDefn_SetGeomType(swigCPtr, this, geom_type); } public int GetReferenceCount() { return ogrJNI.FeatureDefn_GetReferenceCount(swigCPtr, this); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?