feature.java

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

JAVA
171
字号
/* ---------------------------------------------------------------------------- * 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 Feature {  private long swigCPtr;  protected boolean swigCMemOwn;  protected Feature(long cPtr, boolean cMemoryOwn) {    swigCMemOwn = cMemoryOwn;    swigCPtr = cPtr;  }  protected static long getCPtr(Feature obj) {    return (obj == null) ? 0 : obj.swigCPtr;  }  protected void finalize() {    delete();  }  public synchronized void delete() {    if(swigCPtr != 0 && swigCMemOwn) {      swigCMemOwn = false;      ogrJNI.delete_Feature(swigCPtr);    }    swigCPtr = 0;  }  protected static long getCPtrAndDisown(Feature obj) {    if (obj != null) obj.swigCMemOwn= false;    return getCPtr(obj);  }  public Feature(FeatureDefn feature_def) {    this(ogrJNI.new_Feature(FeatureDefn.getCPtr(feature_def), feature_def), true);  }  public FeatureDefn GetDefnRef() {    long cPtr = ogrJNI.Feature_GetDefnRef(swigCPtr, this);    return (cPtr == 0) ? null : new FeatureDefn(cPtr, false);  }  public int SetGeometry(Geometry geom) {    return ogrJNI.Feature_SetGeometry(swigCPtr, this, Geometry.getCPtr(geom), geom);  }  public int SetGeometryDirectly(Geometry geom) {    return ogrJNI.Feature_SetGeometryDirectly(swigCPtr, this, Geometry.getCPtrAndDisown(geom), geom);  }  public Geometry GetGeometryRef() {    long cPtr = ogrJNI.Feature_GetGeometryRef(swigCPtr, this);    return (cPtr == 0) ? null : new Geometry(cPtr, false);  }  public Feature Clone() {    long cPtr = ogrJNI.Feature_Clone(swigCPtr, this);    return (cPtr == 0) ? null : new Feature(cPtr, true);  }  public boolean Equal(Feature feature) {    return ogrJNI.Feature_Equal(swigCPtr, this, Feature.getCPtr(feature), feature);  }  public int GetFieldCount() {    return ogrJNI.Feature_GetFieldCount(swigCPtr, this);  }  public FieldDefn GetFieldDefnRef(int id) {    long cPtr = ogrJNI.Feature_GetFieldDefnRef__SWIG_0(swigCPtr, this, id);    return (cPtr == 0) ? null : new FieldDefn(cPtr, false);  }  public FieldDefn GetFieldDefnRef(String name) {    long cPtr = ogrJNI.Feature_GetFieldDefnRef__SWIG_1(swigCPtr, this, name);    return (cPtr == 0) ? null : new FieldDefn(cPtr, false);  }  public String GetFieldAsString(int id) {    return ogrJNI.Feature_GetFieldAsString__SWIG_0(swigCPtr, this, id);  }  public String GetFieldAsString(String name) {    return ogrJNI.Feature_GetFieldAsString__SWIG_1(swigCPtr, this, name);  }  public int GetFieldAsInteger(int id) {    return ogrJNI.Feature_GetFieldAsInteger__SWIG_0(swigCPtr, this, id);  }  public int GetFieldAsInteger(String name) {    return ogrJNI.Feature_GetFieldAsInteger__SWIG_1(swigCPtr, this, name);  }  public double GetFieldAsDouble(int id) {    return ogrJNI.Feature_GetFieldAsDouble__SWIG_0(swigCPtr, this, id);  }  public double GetFieldAsDouble(String name) {    return ogrJNI.Feature_GetFieldAsDouble__SWIG_1(swigCPtr, this, name);  }  public boolean IsFieldSet(int id) {    return ogrJNI.Feature_IsFieldSet__SWIG_0(swigCPtr, this, id);  }  public boolean IsFieldSet(String name) {    return ogrJNI.Feature_IsFieldSet__SWIG_1(swigCPtr, this, name);  }  public int GetFieldIndex(String name) {    return ogrJNI.Feature_GetFieldIndex(swigCPtr, this, name);  }  public int GetFID() {    return ogrJNI.Feature_GetFID(swigCPtr, this);  }  public int SetFID(int fid) {    return ogrJNI.Feature_SetFID(swigCPtr, this, fid);  }  public void DumpReadable() {    ogrJNI.Feature_DumpReadable(swigCPtr, this);  }  public void UnsetField(int id) {    ogrJNI.Feature_UnsetField__SWIG_0(swigCPtr, this, id);  }  public void UnsetField(String name) {    ogrJNI.Feature_UnsetField__SWIG_1(swigCPtr, this, name);  }  public void SetField(int id, String value) {    ogrJNI.Feature_SetField__SWIG_0(swigCPtr, this, id, value);  }  public void SetField(String name, String value) {    ogrJNI.Feature_SetField__SWIG_1(swigCPtr, this, name, value);  }  public int SetFrom(Feature other, int forgiving) {    return ogrJNI.Feature_SetFrom(swigCPtr, this, Feature.getCPtr(other), other, forgiving);  }  public String GetStyleString() {    return ogrJNI.Feature_GetStyleString(swigCPtr, this);  }  public void SetStyleString(String the_string) {    ogrJNI.Feature_SetStyleString(swigCPtr, this, the_string);  }  public int GetFieldType(int id) {    return ogrJNI.Feature_GetFieldType__SWIG_0(swigCPtr, this, id);  }  public int GetFieldType(String name) {    return ogrJNI.Feature_GetFieldType__SWIG_1(swigCPtr, this, name);  }}

⌨️ 快捷键说明

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