EVOLUTION-MANAGER
Edit File: Feature.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_161) on Sun Jan 28 09:53:32 EST 2018 --> <title>Feature (GDAL/OGR 1.8.0 Java bindings API)</title> <meta name="date" content="2018-01-28"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Feature (GDAL/OGR 1.8.0 Java bindings API)"; } } catch(err) { } //--> var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../org/gdal/ogr/Driver.html" title="class in org.gdal.ogr"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../org/gdal/ogr/FeatureDefn.html" title="class in org.gdal.ogr"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/gdal/ogr/Feature.html" target="_top">Frames</a></li> <li><a href="Feature.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li>Field | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">org.gdal.ogr</div> <h2 title="Class Feature" class="title">Class Feature</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>org.gdal.ogr.Feature</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd>java.lang.Cloneable</dd> </dl> <hr> <br> <pre>public class <span class="typeNameLabel">Feature</span> extends java.lang.Object implements java.lang.Cloneable</pre> <div class="block">A simple feature, including geometry and attributes. <p> The Feature class is a binding for the C++ <a href="http://gdal.org/ogr/classOGRFeature.html">OGRFeature</a> class.</div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd"> </span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#Feature-org.gdal.ogr.FeatureDefn-">Feature</a></span>(<a href="../../../org/gdal/ogr/FeatureDefn.html" title="class in org.gdal.ogr">FeatureDefn</a> feature_def)</code> <div class="block">Constructor.</div> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code>java.lang.Object</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#clone--">clone</a></span>()</code> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Feature.html" title="class in org.gdal.ogr">Feature</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#Clone--">Clone</a></span>()</code> <div class="block">Duplicate feature.</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#delete--">delete</a></span>()</code> <div class="block">Delete (in memory) a feature.</div> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#DumpReadable--">DumpReadable</a></span>()</code> <div class="block">Dump this feature in a human readable form.</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#Equal-org.gdal.ogr.Feature-">Equal</a></span>(<a href="../../../org/gdal/ogr/Feature.html" title="class in org.gdal.ogr">Feature</a> feature)</code> <div class="block">Test if two features are the same.</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object obj)</code> </td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/FeatureDefn.html" title="class in org.gdal.ogr">FeatureDefn</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetDefnRef--">GetDefnRef</a></span>()</code> <div class="block">Fetch feature definition.</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFID--">GetFID</a></span>()</code> <div class="block">Get feature identifier.</div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldAsDateTime-int-int:A-int:A-int:A-int:A-int:A-int:A-int:A-">GetFieldAsDateTime</a></span>(int ifield, int[] pnYear, int[] pnMonth, int[] pnDay, int[] pnHour, int[] pnMinute, int[] pnSecond, int[] pnTZFlag)</code> <div class="block">Fetch field value as date and time.</div> </td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldAsDouble-int-">GetFieldAsDouble</a></span>(int ifield)</code> <div class="block">Fetch field value as a double.</div> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldAsDouble-java.lang.String-">GetFieldAsDouble</a></span>(java.lang.String name)</code> <div class="block">Fetch field value as a double.</div> </td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code>double[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldAsDoubleList-int-">GetFieldAsDoubleList</a></span>(int ifield)</code> <div class="block">Fetch field value as a list of doubles.</div> </td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldAsInteger-int-">GetFieldAsInteger</a></span>(int ifield)</code> <div class="block">Fetch field value as integer.</div> </td> </tr> <tr id="i13" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldAsInteger-java.lang.String-">GetFieldAsInteger</a></span>(java.lang.String name)</code> <div class="block">Fetch field value as integer.</div> </td> </tr> <tr id="i14" class="altColor"> <td class="colFirst"><code>int[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldAsIntegerList-int-">GetFieldAsIntegerList</a></span>(int ifield)</code> <div class="block">Fetch field value as a list of integers.</div> </td> </tr> <tr id="i15" class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldAsString-int-">GetFieldAsString</a></span>(int ifield)</code> <div class="block">Fetch field value as a string.</div> </td> </tr> <tr id="i16" class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldAsString-java.lang.String-">GetFieldAsString</a></span>(java.lang.String name)</code> <div class="block">Fetch field value as a string.</div> </td> </tr> <tr id="i17" class="rowColor"> <td class="colFirst"><code>java.lang.String[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldAsStringList-int-">GetFieldAsStringList</a></span>(int ifield)</code> <div class="block">Fetch field value as a list of strings.</div> </td> </tr> <tr id="i18" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldCount--">GetFieldCount</a></span>()</code> <div class="block">Fetch number of fields on this feature.</div> </td> </tr> <tr id="i19" class="rowColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/FieldDefn.html" title="class in org.gdal.ogr">FieldDefn</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldDefnRef-int-">GetFieldDefnRef</a></span>(int ifield)</code> <div class="block">Fetch definition for this field.</div> </td> </tr> <tr id="i20" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/FieldDefn.html" title="class in org.gdal.ogr">FieldDefn</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldDefnRef-java.lang.String-">GetFieldDefnRef</a></span>(java.lang.String name)</code> <div class="block">Fetch definition for this field.</div> </td> </tr> <tr id="i21" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldIndex-java.lang.String-">GetFieldIndex</a></span>(java.lang.String name)</code> <div class="block">Fetch the field index given field name.</div> </td> </tr> <tr id="i22" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldType-int-">GetFieldType</a></span>(int ifield)</code> <div class="block">Fetch the field type.</div> </td> </tr> <tr id="i23" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetFieldType-java.lang.String-">GetFieldType</a></span>(java.lang.String name)</code> <div class="block">Fetch the field type.</div> </td> </tr> <tr id="i24" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetGeometryRef--">GetGeometryRef</a></span>()</code> <div class="block">Fetch pointer to feature geometry.</div> </td> </tr> <tr id="i25" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetGeomFieldCount--">GetGeomFieldCount</a></span>()</code> </td> </tr> <tr id="i26" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/GeomFieldDefn.html" title="class in org.gdal.ogr">GeomFieldDefn</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetGeomFieldDefnRef-int-">GetGeomFieldDefnRef</a></span>(int id)</code> </td> </tr> <tr id="i27" class="rowColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/GeomFieldDefn.html" title="class in org.gdal.ogr">GeomFieldDefn</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetGeomFieldDefnRef-java.lang.String-">GetGeomFieldDefnRef</a></span>(java.lang.String name)</code> </td> </tr> <tr id="i28" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetGeomFieldIndex-java.lang.String-">GetGeomFieldIndex</a></span>(java.lang.String name)</code> </td> </tr> <tr id="i29" class="rowColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetGeomFieldRef-int-">GetGeomFieldRef</a></span>(int iField)</code> </td> </tr> <tr id="i30" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetGeomFieldRef-java.lang.String-">GetGeomFieldRef</a></span>(java.lang.String name)</code> </td> </tr> <tr id="i31" class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#GetStyleString--">GetStyleString</a></span>()</code> <div class="block">Fetch style string for this feature.</div> </td> </tr> <tr id="i32" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#hashCode--">hashCode</a></span>()</code> </td> </tr> <tr id="i33" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#IsFieldSet-int-">IsFieldSet</a></span>(int ifield)</code> <div class="block">Test if a field has ever been assigned a value or not.</div> </td> </tr> <tr id="i34" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#IsFieldSet-java.lang.String-">IsFieldSet</a></span>(java.lang.String name)</code> <div class="block">Test if a field has ever been assigned a value or not.</div> </td> </tr> <tr id="i35" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetFID-int-">SetFID</a></span>(int fid)</code> <div class="block">Set the feature identifier.</div> </td> </tr> <tr id="i36" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetField-int-double-">SetField</a></span>(int ifield, double val)</code> <div class="block">Set field to double value.</div> </td> </tr> <tr id="i37" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetField-int-int-">SetField</a></span>(int ifield, int val)</code> <div class="block">Set field to integer value.</div> </td> </tr> <tr id="i38" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetField-int-int-int-int-int-int-int-int-">SetField</a></span>(int ifield, int year, int month, int day, int hour, int minute, int second, int tzflag)</code> <div class="block">Set field to date.</div> </td> </tr> <tr id="i39" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetField-int-java.lang.String-">SetField</a></span>(int ifield, java.lang.String val)</code> <div class="block">Set field to string value.</div> </td> </tr> <tr id="i40" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetField-java.lang.String-double-">SetField</a></span>(java.lang.String name, double val)</code> <div class="block">Set field to double value.</div> </td> </tr> <tr id="i41" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetField-java.lang.String-int-">SetField</a></span>(java.lang.String name, int val)</code> <div class="block">Set field to integer value.</div> </td> </tr> <tr id="i42" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetField-java.lang.String-int-int-int-int-int-int-int-">SetField</a></span>(java.lang.String name, int year, int month, int day, int hour, int minute, int second, int tzflag)</code> <div class="block">Set field to date.</div> </td> </tr> <tr id="i43" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetField-java.lang.String-java.lang.String-">SetField</a></span>(java.lang.String name, java.lang.String val)</code> <div class="block">Set field to string value.</div> </td> </tr> <tr id="i44" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetFieldBinaryFromHexString-int-java.lang.String-">SetFieldBinaryFromHexString</a></span>(int id, java.lang.String pszValue)</code> </td> </tr> <tr id="i45" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetFieldBinaryFromHexString-java.lang.String-java.lang.String-">SetFieldBinaryFromHexString</a></span>(java.lang.String name, java.lang.String pszValue)</code> </td> </tr> <tr id="i46" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetFieldDoubleList-int-double:A-">SetFieldDoubleList</a></span>(int ifield, double[] values)</code> <div class="block">Set field to list of doubles value.</div> </td> </tr> <tr id="i47" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetFieldIntegerList-int-int:A-">SetFieldIntegerList</a></span>(int ifield, int[] values)</code> <div class="block">Set field to list of integers value.</div> </td> </tr> <tr id="i48" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetFieldStringList-int-java.util.Vector-">SetFieldStringList</a></span>(int ifield, java.util.Vector values)</code> <div class="block">Set field to list of strings value.</div> </td> </tr> <tr id="i49" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetFrom-org.gdal.ogr.Feature-">SetFrom</a></span>(<a href="../../../org/gdal/ogr/Feature.html" title="class in org.gdal.ogr">Feature</a> srcFeature)</code> <div class="block">Set one feature from another.</div> </td> </tr> <tr id="i50" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetFrom-org.gdal.ogr.Feature-int-">SetFrom</a></span>(<a href="../../../org/gdal/ogr/Feature.html" title="class in org.gdal.ogr">Feature</a> srcFeature, int forgiving)</code> <div class="block">Set one feature from another.</div> </td> </tr> <tr id="i51" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetFromWithMap-org.gdal.ogr.Feature-int-int:A-">SetFromWithMap</a></span>(<a href="../../../org/gdal/ogr/Feature.html" title="class in org.gdal.ogr">Feature</a> srcFeature, int forgiving, int[] map)</code> <div class="block">Set one feature from another.</div> </td> </tr> <tr id="i52" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetGeometry-org.gdal.ogr.Geometry-">SetGeometry</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> geom)</code> <div class="block">Set feature geometry.</div> </td> </tr> <tr id="i53" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetGeometryDirectly-org.gdal.ogr.Geometry-">SetGeometryDirectly</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> geom)</code> <div class="block">Set feature geometry.</div> </td> </tr> <tr id="i54" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetGeomField-int-org.gdal.ogr.Geometry-">SetGeomField</a></span>(int iField, <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> geom)</code> </td> </tr> <tr id="i55" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetGeomField-java.lang.String-org.gdal.ogr.Geometry-">SetGeomField</a></span>(java.lang.String name, <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> geom)</code> </td> </tr> <tr id="i56" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetGeomFieldDirectly-int-org.gdal.ogr.Geometry-">SetGeomFieldDirectly</a></span>(int iField, <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> geom)</code> </td> </tr> <tr id="i57" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetGeomFieldDirectly-java.lang.String-org.gdal.ogr.Geometry-">SetGeomFieldDirectly</a></span>(java.lang.String name, <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> geom)</code> </td> </tr> <tr id="i58" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#SetStyleString-java.lang.String-">SetStyleString</a></span>(java.lang.String style_string)</code> <div class="block">Set feature style string.</div> </td> </tr> <tr id="i59" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#UnsetField-int-">UnsetField</a></span>(int ifield)</code> <div class="block">Clear a field, marking it as unset.</div> </td> </tr> <tr id="i60" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Feature.html#UnsetField-java.lang.String-">UnsetField</a></span>(java.lang.String name)</code> <div class="block">Clear a field, marking it as unset.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class java.lang.Object</h3> <code>getClass, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="Feature-org.gdal.ogr.FeatureDefn-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>Feature</h4> <pre>public Feature(<a href="../../../org/gdal/ogr/FeatureDefn.html" title="class in org.gdal.ogr">FeatureDefn</a> feature_def)</pre> <div class="block">Constructor. <p> Note that the Feature will increment the reference count of its defining FeatureDefn.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>feature_def</code> - feature class (layer) definition to which the feature will adhere.</dd> </dl> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="delete--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>delete</h4> <pre>public void delete()</pre> <div class="block">Delete (in memory) a feature. <p> Calling this method is not required as normal garbage collection will reclaim associated resources when the object goes out of scope. Otherwise calling delete() explicitely will help release resources sooner. Don't call any method on a deleted object !</div> </li> </ul> <a name="equals-java.lang.Object-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>equals</h4> <pre>public boolean equals(java.lang.Object obj)</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code>equals</code> in class <code>java.lang.Object</code></dd> </dl> </li> </ul> <a name="hashCode--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hashCode</h4> <pre>public int hashCode()</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code>hashCode</code> in class <code>java.lang.Object</code></dd> </dl> </li> </ul> <a name="clone--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>clone</h4> <pre>public java.lang.Object clone()</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code>clone</code> in class <code>java.lang.Object</code></dd> </dl> </li> </ul> <a name="GetDefnRef--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetDefnRef</h4> <pre>public <a href="../../../org/gdal/ogr/FeatureDefn.html" title="class in org.gdal.ogr">FeatureDefn</a> GetDefnRef()</pre> <div class="block">Fetch feature definition.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>a reference to the feature definition object.</dd> </dl> </li> </ul> <a name="SetGeometry-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGeometry</h4> <pre>public int SetGeometry(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> geom)</pre> <div class="block">Set feature geometry. <p> This method updates the features geometry, and operate exactly as SetGeometryDirectly(), except that this method does not assume ownership of the passed geometry, but instead makes a copy of it.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>geom</code> - new geometry to apply to feature. Passing null value here is correct and it will result in deallocation of currently assigned geometry without assigning new one.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 if successful, or throws a RuntimeException (or an error code if DontUseExceptions() has been called) if the geometry type is illegal for the FeatureDefn (checking not yet implemented).</dd> </dl> </li> </ul> <a name="SetGeometryDirectly-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGeometryDirectly</h4> <pre>public int SetGeometryDirectly(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> geom)</pre> <div class="block">Set feature geometry. <p> This method updates the features geometry, and operate exactly as SetGeometry(), except that this method assumes ownership of the passed geometry.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>geom</code> - new geometry to apply to feature. Passing null value here is correct and it will result in deallocation of currently assigned geometry without assigning new one.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 if successful, or throws a RuntimeException (or an error code if DontUseExceptions() has been called) if the geometry type is illegal for the FeatureDefn (checking not yet implemented).</dd> </dl> </li> </ul> <a name="GetGeometryRef--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGeometryRef</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> GetGeometryRef()</pre> <div class="block">Fetch pointer to feature geometry.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>internal feature geometry (or null if no geometry). This object should not be modified.</dd> </dl> </li> </ul> <a name="SetGeomField-int-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGeomField</h4> <pre>public int SetGeomField(int iField, <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> geom)</pre> </li> </ul> <a name="SetGeomField-java.lang.String-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGeomField</h4> <pre>public int SetGeomField(java.lang.String name, <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> geom)</pre> </li> </ul> <a name="SetGeomFieldDirectly-int-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGeomFieldDirectly</h4> <pre>public int SetGeomFieldDirectly(int iField, <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> geom)</pre> </li> </ul> <a name="SetGeomFieldDirectly-java.lang.String-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGeomFieldDirectly</h4> <pre>public int SetGeomFieldDirectly(java.lang.String name, <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> geom)</pre> </li> </ul> <a name="GetGeomFieldRef-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGeomFieldRef</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> GetGeomFieldRef(int iField)</pre> </li> </ul> <a name="GetGeomFieldRef-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGeomFieldRef</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> GetGeomFieldRef(java.lang.String name)</pre> </li> </ul> <a name="Clone--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Clone</h4> <pre>public <a href="../../../org/gdal/ogr/Feature.html" title="class in org.gdal.ogr">Feature</a> Clone()</pre> <div class="block">Duplicate feature. <p> The newly created feature is owned by the caller, and will have its own reference to the FeatureDefn.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>new feature, exactly matching this feature.</dd> </dl> </li> </ul> <a name="Equal-org.gdal.ogr.Feature-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Equal</h4> <pre>public boolean Equal(<a href="../../../org/gdal/ogr/Feature.html" title="class in org.gdal.ogr">Feature</a> feature)</pre> <div class="block">Test if two features are the same. <p> Two features are considered equal if they share the (pointer equality) same FeatureDefn, have the same field values, and the same geometry (as tested by Geometry.Equal()) as well as the same feature id.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>feature</code> - the other feature to test this one against.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if they are equal, otherwise false.</dd> </dl> </li> </ul> <a name="GetFieldCount--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldCount</h4> <pre>public int GetFieldCount()</pre> <div class="block">Fetch number of fields on this feature. This will always be the same as the field count for the FeatureDefn.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>count of fields.</dd> </dl> </li> </ul> <a name="GetFieldDefnRef-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldDefnRef</h4> <pre>public <a href="../../../org/gdal/ogr/FieldDefn.html" title="class in org.gdal.ogr">FieldDefn</a> GetFieldDefnRef(int ifield)</pre> <div class="block">Fetch definition for this field.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to fetch, from 0 to GetFieldCount()-1.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the field definition (from the FeatureDefn).</dd> </dl> </li> </ul> <a name="GetFieldDefnRef-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldDefnRef</h4> <pre>public <a href="../../../org/gdal/ogr/FieldDefn.html" title="class in org.gdal.ogr">FieldDefn</a> GetFieldDefnRef(java.lang.String name)</pre> <div class="block">Fetch definition for this field.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the field to fetch.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the field definition (from the FeatureDefn).</dd> </dl> </li> </ul> <a name="GetGeomFieldCount--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGeomFieldCount</h4> <pre>public int GetGeomFieldCount()</pre> </li> </ul> <a name="GetGeomFieldDefnRef-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGeomFieldDefnRef</h4> <pre>public <a href="../../../org/gdal/ogr/GeomFieldDefn.html" title="class in org.gdal.ogr">GeomFieldDefn</a> GetGeomFieldDefnRef(int id)</pre> </li> </ul> <a name="GetGeomFieldDefnRef-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGeomFieldDefnRef</h4> <pre>public <a href="../../../org/gdal/ogr/GeomFieldDefn.html" title="class in org.gdal.ogr">GeomFieldDefn</a> GetGeomFieldDefnRef(java.lang.String name)</pre> </li> </ul> <a name="GetFieldAsString-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldAsString</h4> <pre>public java.lang.String GetFieldAsString(int ifield)</pre> <div class="block">Fetch field value as a string. <p> OFTReal and OFTInteger fields will be translated to string using sprintf(), but not necessarily using the established formatting rules. Other field types, or errors will result in a return value of zero.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to fetch, from 0 to GetFieldCount()-1.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the field value.</dd> </dl> </li> </ul> <a name="GetFieldAsString-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldAsString</h4> <pre>public java.lang.String GetFieldAsString(java.lang.String name)</pre> <div class="block">Fetch field value as a string. <p> OFTReal and OFTInteger fields will be translated to string using sprintf(), but not necessarily using the established formatting rules. Other field types, or errors will result in a return value of zero.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the field to fetch.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the field value.</dd> </dl> </li> </ul> <a name="GetFieldAsInteger-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldAsInteger</h4> <pre>public int GetFieldAsInteger(int ifield)</pre> <div class="block">Fetch field value as integer. <p> OFTString features will be translated using atoi(). OFTReal fields will be cast to integer. Other field types, or errors will result in a return value of zero.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to fetch, from 0 to GetFieldCount()-1.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the field value.</dd> </dl> </li> </ul> <a name="GetFieldAsInteger-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldAsInteger</h4> <pre>public int GetFieldAsInteger(java.lang.String name)</pre> <div class="block">Fetch field value as integer. <p> OFTString features will be translated using atoi(). OFTReal fields will be cast to integer. Other field types, or errors will result in a return value of zero.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the field to fetch.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the field value.</dd> </dl> </li> </ul> <a name="GetFieldAsDouble-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldAsDouble</h4> <pre>public double GetFieldAsDouble(int ifield)</pre> <div class="block">Fetch field value as a double. <p> OFTString features will be translated using atof(). OFTInteger fields will be cast to double. Other field types, or errors will result in a return value of zero.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to fetch, from 0 to GetFieldCount()-1.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the field value.</dd> </dl> </li> </ul> <a name="GetFieldAsDouble-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldAsDouble</h4> <pre>public double GetFieldAsDouble(java.lang.String name)</pre> <div class="block">Fetch field value as a double. <p> OFTString features will be translated using atof(). OFTInteger fields will be cast to double. Other field types, or errors will result in a return value of zero.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the field to fetch.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the field value.</dd> </dl> </li> </ul> <a name="GetFieldAsDateTime-int-int:A-int:A-int:A-int:A-int:A-int:A-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldAsDateTime</h4> <pre>public void GetFieldAsDateTime(int ifield, int[] pnYear, int[] pnMonth, int[] pnDay, int[] pnHour, int[] pnMinute, int[] pnSecond, int[] pnTZFlag)</pre> <div class="block">Fetch field value as date and time. <p> Currently this method only works for OFTDate, OFTTime and OFTDateTime fields.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to fetch, from 0 to GetFieldCount()-1.</dd> <dd><code>pnYear</code> - an allocated array of 1 integer to put the year (including century)</dd> <dd><code>pnMonth</code> - an allocated array of 1 integer to put the month (1-12)</dd> <dd><code>pnDay</code> - an allocated array of 1 integer to put the day (1-31)</dd> <dd><code>pnHour</code> - an allocated array of 1 integer to put the hour (0-23)</dd> <dd><code>pnMinute</code> - an allocated array of 1 integer to put the minute (0-59)</dd> <dd><code>pnSecond</code> - an allocated array of 1 integer to put the second (0-59)</dd> <dd><code>pnTZFlag</code> - an allocated array of 1 integer to put the time zone flag (0=unknown, 1=localtime, 100=GMT, see data model for details)</dd> </dl> </li> </ul> <a name="GetFieldAsIntegerList-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldAsIntegerList</h4> <pre>public int[] GetFieldAsIntegerList(int ifield)</pre> <div class="block">Fetch field value as a list of integers. <p> Currently this method only works for OFTIntegerList fields.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to fetch, from 0 to GetFieldCount()-1.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the field value. The returned value may be null.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="GetFieldAsDoubleList-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldAsDoubleList</h4> <pre>public double[] GetFieldAsDoubleList(int ifield)</pre> <div class="block">Fetch field value as a list of doubles. <p> Currently this method only works for OFTRealList fields.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to fetch, from 0 to GetFieldCount()-1.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the field value. The returned value may be null.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="GetFieldAsStringList-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldAsStringList</h4> <pre>public java.lang.String[] GetFieldAsStringList(int ifield)</pre> <div class="block">Fetch field value as a list of strings. <p> Currently this method only works for OFTStringList fields.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to fetch, from 0 to GetFieldCount()-1.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the field value. The returned value may be null.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="IsFieldSet-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsFieldSet</h4> <pre>public boolean IsFieldSet(int ifield)</pre> <div class="block">Test if a field has ever been assigned a value or not.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to test.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if the field has been set, otherwise false.</dd> </dl> </li> </ul> <a name="IsFieldSet-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsFieldSet</h4> <pre>public boolean IsFieldSet(java.lang.String name)</pre> <div class="block">Test if a field has ever been assigned a value or not.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the field to test.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if the field has been set, otherwise false.</dd> </dl> </li> </ul> <a name="GetFieldIndex-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldIndex</h4> <pre>public int GetFieldIndex(java.lang.String name)</pre> <div class="block">Fetch the field index given field name. This is a cover for the FeatureDefn.GetFieldIndex() method.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the field to search for.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the field index, or -1 if no matching field is found.</dd> </dl> </li> </ul> <a name="GetGeomFieldIndex-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGeomFieldIndex</h4> <pre>public int GetGeomFieldIndex(java.lang.String name)</pre> </li> </ul> <a name="GetFID--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFID</h4> <pre>public int GetFID()</pre> <div class="block">Get feature identifier.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>feature id or OGRNullFID if none has been assigned.</dd> </dl> </li> </ul> <a name="SetFID-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetFID</h4> <pre>public int SetFID(int fid)</pre> <div class="block">Set the feature identifier. <p> For specific types of features this operation may fail on illegal features ids. Generally it always succeeds. Feature ids should be greater than or equal to zero, with the exception of OGRNullFID (-1) indicating that the feature id is unknown.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>fid</code> - the new feature identifier value to assign.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="DumpReadable--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DumpReadable</h4> <pre>public void DumpReadable()</pre> <div class="block">Dump this feature in a human readable form. <p> This dumps the attributes, and geometry; however, it doesn't definition information (other than field types and names), nor does it report the geometry spatial reference system. The standard output will be used.</div> </li> </ul> <a name="UnsetField-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>UnsetField</h4> <pre>public void UnsetField(int ifield)</pre> <div class="block">Clear a field, marking it as unset.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to unset, from 0 to GetFieldCount()-1.</dd> </dl> </li> </ul> <a name="UnsetField-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>UnsetField</h4> <pre>public void UnsetField(java.lang.String name)</pre> <div class="block">Clear a field, marking it as unset.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the field to unset.</dd> </dl> </li> </ul> <a name="SetField-int-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetField</h4> <pre>public void SetField(int ifield, java.lang.String val)</pre> <div class="block">Set field to string value. <p> OFTInteger fields will be set based on an atoi() conversion of the string. OFTReal fields will be set based on an atof() conversion of the string. Other field types may be unaffected.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to fetch, from 0 to GetFieldCount()-1.</dd> <dd><code>val</code> - the value to assign.</dd> </dl> </li> </ul> <a name="SetField-java.lang.String-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetField</h4> <pre>public void SetField(java.lang.String name, java.lang.String val)</pre> <div class="block">Set field to string value. <p> OFTInteger fields will be set based on an atoi() conversion of the string. OFTReal fields will be set based on an atof() conversion of the string. Other field types may be unaffected.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the field to set.</dd> <dd><code>val</code> - the value to assign.</dd> </dl> </li> </ul> <a name="SetField-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetField</h4> <pre>public void SetField(int ifield, int val)</pre> <div class="block">Set field to integer value. <p> OFTInteger and OFTReal fields will be set directly. OFTString fields will be assigned a string representation of the value, but not necessarily taking into account formatting constraints on this field. Other field types may be unaffected.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to fetch, from 0 to GetFieldCount()-1.</dd> <dd><code>val</code> - the value to assign.</dd> </dl> </li> </ul> <a name="SetField-java.lang.String-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetField</h4> <pre>public void SetField(java.lang.String name, int val)</pre> <div class="block">Set field to integer value. <p> OFTInteger and OFTReal fields will be set directly. OFTString fields will be assigned a string representation of the value, but not necessarily taking into account formatting constraints on this field. Other field types may be unaffected.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the field to set.</dd> <dd><code>val</code> - the value to assign.</dd> </dl> </li> </ul> <a name="SetField-int-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetField</h4> <pre>public void SetField(int ifield, double val)</pre> <div class="block">Set field to double value. <p> OFTInteger and OFTReal fields will be set directly. OFTString fields will be assigned a string representation of the value, but not necessarily taking into account formatting constraints on this field. Other field types may be unaffected.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to fetch, from 0 to GetFieldCount()-1.</dd> <dd><code>val</code> - the value to assign.</dd> </dl> </li> </ul> <a name="SetField-java.lang.String-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetField</h4> <pre>public void SetField(java.lang.String name, double val)</pre> <div class="block">Set field to double value. <p> OFTInteger and OFTReal fields will be set directly. OFTString fields will be assigned a string representation of the value, but not necessarily taking into account formatting constraints on this field. Other field types may be unaffected.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the field to set.</dd> <dd><code>val</code> - the value to assign.</dd> </dl> </li> </ul> <a name="SetField-int-int-int-int-int-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetField</h4> <pre>public void SetField(int ifield, int year, int month, int day, int hour, int minute, int second, int tzflag)</pre> <div class="block">Set field to date. <p> This method currently only has an effect for OFTDate, OFTTime and OFTDateTime fields.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to set, from 0 to GetFieldCount()-1.</dd> <dd><code>year</code> - (including century)</dd> <dd><code>month</code> - (1-12)</dd> <dd><code>day</code> - (1-31)</dd> <dd><code>hour</code> - (0-23)</dd> <dd><code>minute</code> - (0-59)</dd> <dd><code>second</code> - (0-59)</dd> <dd><code>tzflag</code> - (0=unknown, 1=localtime, 100=GMT, see data model for details)</dd> </dl> </li> </ul> <a name="SetField-java.lang.String-int-int-int-int-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetField</h4> <pre>public void SetField(java.lang.String name, int year, int month, int day, int hour, int minute, int second, int tzflag)</pre> <div class="block">Set field to date. <p> This method currently only has an effect for OFTDate, OFTTime and OFTDateTime fields.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the field to set.</dd> <dd><code>year</code> - (including century)</dd> <dd><code>month</code> - (1-12)</dd> <dd><code>day</code> - (1-31)</dd> <dd><code>hour</code> - (0-23)</dd> <dd><code>minute</code> - (0-59)</dd> <dd><code>second</code> - (0-59)</dd> <dd><code>tzflag</code> - (0=unknown, 1=localtime, 100=GMT, see data model for details)</dd> </dl> </li> </ul> <a name="SetFieldIntegerList-int-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetFieldIntegerList</h4> <pre>public void SetFieldIntegerList(int ifield, int[] values)</pre> <div class="block">Set field to list of integers value. <p> This method currently on has an effect of OFTIntegerList fields.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to set, from 0 to GetFieldCount()-1.</dd> <dd><code>values</code> - the values to assign.</dd> </dl> </li> </ul> <a name="SetFieldDoubleList-int-double:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetFieldDoubleList</h4> <pre>public void SetFieldDoubleList(int ifield, double[] values)</pre> <div class="block">Set field to list of doubles value. <p> This method currently on has an effect of OFTRealList fields.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to set, from 0 to GetFieldCount()-1.</dd> <dd><code>values</code> - the values to assign.</dd> </dl> </li> </ul> <a name="SetFieldStringList-int-java.util.Vector-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetFieldStringList</h4> <pre>public void SetFieldStringList(int ifield, java.util.Vector values)</pre> <div class="block">Set field to list of strings value. <p> This method currently on has an effect of OFTStringList fields.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to set, from 0 to GetFieldCount()-1.</dd> <dd><code>values</code> - the values to assign (vector of strings).</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="SetFieldBinaryFromHexString-int-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetFieldBinaryFromHexString</h4> <pre>public void SetFieldBinaryFromHexString(int id, java.lang.String pszValue)</pre> </li> </ul> <a name="SetFieldBinaryFromHexString-java.lang.String-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetFieldBinaryFromHexString</h4> <pre>public void SetFieldBinaryFromHexString(java.lang.String name, java.lang.String pszValue)</pre> </li> </ul> <a name="SetFrom-org.gdal.ogr.Feature-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetFrom</h4> <pre>public int SetFrom(<a href="../../../org/gdal/ogr/Feature.html" title="class in org.gdal.ogr">Feature</a> srcFeature, int forgiving)</pre> <div class="block">Set one feature from another. <p> Overwrite the contents of this feature from the geometry and attributes of another. The srcFeature does not need to have the same FeatureDefn. Field values are copied by corresponding field names. Field types do not have to exactly match. SetField() method conversion rules will be applied as needed.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>srcFeature</code> - the feature from which geometry, and field values will be copied.</dd> <dd><code>forgiving</code> - 1 if the operation should continue despite lacking output fields matching some of the source fields.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 if the operation succeeds, even if some values are not transferred, otherwise throws a RuntimeException (or an error code if DontUseExceptions() has been called).</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/ogr/Feature.html#SetFromWithMap-org.gdal.ogr.Feature-int-int:A-"><code>SetFromWithMap(org.gdal.ogr.Feature srcFeature, int forgiving, int[] map)</code></a></dd> </dl> </li> </ul> <a name="SetFrom-org.gdal.ogr.Feature-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetFrom</h4> <pre>public int SetFrom(<a href="../../../org/gdal/ogr/Feature.html" title="class in org.gdal.ogr">Feature</a> srcFeature)</pre> <div class="block">Set one feature from another. <p> Same as below with forgiving == 1</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/ogr/Feature.html#SetFrom-org.gdal.ogr.Feature-int-"><code>SetFrom(Feature srcFeature, int forgiving)</code></a></dd> </dl> </li> </ul> <a name="SetFromWithMap-org.gdal.ogr.Feature-int-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetFromWithMap</h4> <pre>public int SetFromWithMap(<a href="../../../org/gdal/ogr/Feature.html" title="class in org.gdal.ogr">Feature</a> srcFeature, int forgiving, int[] map)</pre> <div class="block">Set one feature from another. <p> Overwrite the contents of this feature from the geometry and attributes of another. The hOtherFeature does not need to have the same OGRFeatureDefn. Field values are copied according to the provided indices map. Field types do not have to exactly match. SetField() function conversion rules will be applied as needed. This is more efficient than <a href="#SetFrom(org.gdal.ogr.Feature, int)">SetFrom(Feature, int)</a> in that this doesn't lookup the fields by their names. Particularly useful when the field names don't match.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>srcFeature</code> - the feature from which geometry, and field values will be copied.</dd> <dd><code>forgiving</code> - 1 if the operation should continue despite lacking output fields matching some of the source fields.</dd> <dd><code>map</code> - Array of the indices of the destination feature's fields stored at the corresponding index of the source feature's fields. A value of -1 should be used to ignore the source's field. The array should not be null and be as long as the number of fields in the source feature.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 if the operation succeeds, even if some values are not transferred, otherwise throws a RuntimeException (or an error code if DontUseExceptions() has been called).</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.8.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/ogr/Feature.html#SetFrom-org.gdal.ogr.Feature-int-"><code>SetFrom(org.gdal.ogr.Feature srcFeature, int forgiving)</code></a></dd> </dl> </li> </ul> <a name="GetStyleString--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetStyleString</h4> <pre>public java.lang.String GetStyleString()</pre> <div class="block">Fetch style string for this feature. <p> Set the OGR Feature Style Specification for details on the format of this string, and ogr_featurestyle.h for services available to parse it.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>a reference to a representation in string format, or null if there isn't one.</dd> </dl> </li> </ul> <a name="SetStyleString-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetStyleString</h4> <pre>public void SetStyleString(java.lang.String style_string)</pre> <div class="block">Set feature style string.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>style_string</code> - the style string to apply to this feature, cannot be null.</dd> </dl> </li> </ul> <a name="GetFieldType-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFieldType</h4> <pre>public int GetFieldType(int ifield)</pre> <div class="block">Fetch the field type. <p> This is a cover for the FeatureDefn.GetFieldType() method.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ifield</code> - the field to fetch, from 0 to GetFieldCount()-1.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the field type (like ogr.OFTInteger, etc.)</dd> </dl> </li> </ul> <a name="GetFieldType-java.lang.String-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>GetFieldType</h4> <pre>public int GetFieldType(java.lang.String name)</pre> <div class="block">Fetch the field type. <p> This is a cover for the FeatureDefn.GetFieldType() method.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the field to fetch.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the field type (like ogr.OFTInteger, etc.)</dd> </dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../org/gdal/ogr/Driver.html" title="class in org.gdal.ogr"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../org/gdal/ogr/FeatureDefn.html" title="class in org.gdal.ogr"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/gdal/ogr/Feature.html" target="_top">Frames</a></li> <li><a href="Feature.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li>Field | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>