EVOLUTION-MANAGER
Edit File: classOGRLayerDecorator.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.5"/> <title>OGR: OGRLayerDecorator Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">OGR </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.5 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="classOGRLayerDecorator-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">OGRLayerDecorator Class Reference</div> </div> </div><!--header--> <div class="contents"> <div class="dynheader"> Inheritance diagram for OGRLayerDecorator:</div> <div class="dyncontent"> <div class="center"> <img src="classOGRLayerDecorator.png" usemap="#OGRLayerDecorator_map" alt=""/> <map id="OGRLayerDecorator_map" name="OGRLayerDecorator_map"> <area href="classOGRLayer.html" alt="OGRLayer" shape="rect" coords="69,0,198,24"/> <area href="classOGRMutexedLayer.html" alt="OGRMutexedLayer" shape="rect" coords="0,112,129,136"/> <area href="classOGRWarpedLayer.html" alt="OGRWarpedLayer" shape="rect" coords="139,112,268,136"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:ab25905a67ea89683495ccc7fd74579fc"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classOGRGeometry.html">OGRGeometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#ab25905a67ea89683495ccc7fd74579fc">GetSpatialFilter</a> ()</td></tr> <tr class="memdesc:ab25905a67ea89683495ccc7fd74579fc"><td class="mdescLeft"> </td><td class="mdescRight">This method returns the current spatial filter for this layer. <a href="#ab25905a67ea89683495ccc7fd74579fc">More...</a><br/></td></tr> <tr class="separator:ab25905a67ea89683495ccc7fd74579fc"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab113a978272fe2eb060cafa8bf13f8b9"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#ab113a978272fe2eb060cafa8bf13f8b9">SetSpatialFilter</a> (<a class="el" href="classOGRGeometry.html">OGRGeometry</a> *)</td></tr> <tr class="memdesc:ab113a978272fe2eb060cafa8bf13f8b9"><td class="mdescLeft"> </td><td class="mdescRight">Set a new spatial filter. <a href="#ab113a978272fe2eb060cafa8bf13f8b9">More...</a><br/></td></tr> <tr class="separator:ab113a978272fe2eb060cafa8bf13f8b9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5182e0e702fb3598bfcd556901c2191e"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a5182e0e702fb3598bfcd556901c2191e">SetSpatialFilterRect</a> (double dfMinX, double dfMinY, double dfMaxX, double dfMaxY)</td></tr> <tr class="memdesc:a5182e0e702fb3598bfcd556901c2191e"><td class="mdescLeft"> </td><td class="mdescRight">Set a new rectangular spatial filter. <a href="#a5182e0e702fb3598bfcd556901c2191e">More...</a><br/></td></tr> <tr class="separator:a5182e0e702fb3598bfcd556901c2191e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab5f573a61c192099ced0e83825a36aef"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#ab5f573a61c192099ced0e83825a36aef">SetSpatialFilter</a> (int iGeomField, <a class="el" href="classOGRGeometry.html">OGRGeometry</a> *)</td></tr> <tr class="memdesc:ab5f573a61c192099ced0e83825a36aef"><td class="mdescLeft"> </td><td class="mdescRight">Set a new spatial filter. <a href="#ab5f573a61c192099ced0e83825a36aef">More...</a><br/></td></tr> <tr class="separator:ab5f573a61c192099ced0e83825a36aef"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a52231526e17e03d1849a59f1231d5036"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a52231526e17e03d1849a59f1231d5036">SetSpatialFilterRect</a> (int iGeomField, double dfMinX, double dfMinY, double dfMaxX, double dfMaxY)</td></tr> <tr class="memdesc:a52231526e17e03d1849a59f1231d5036"><td class="mdescLeft"> </td><td class="mdescRight">Set a new rectangular spatial filter. <a href="#a52231526e17e03d1849a59f1231d5036">More...</a><br/></td></tr> <tr class="separator:a52231526e17e03d1849a59f1231d5036"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae9659fb3c5026f2430f048b4e7169fff"><td class="memItemLeft" align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#ae9659fb3c5026f2430f048b4e7169fff">SetAttributeFilter</a> (const char *)</td></tr> <tr class="memdesc:ae9659fb3c5026f2430f048b4e7169fff"><td class="mdescLeft"> </td><td class="mdescRight">Set a new attribute query. <a href="#ae9659fb3c5026f2430f048b4e7169fff">More...</a><br/></td></tr> <tr class="separator:ae9659fb3c5026f2430f048b4e7169fff"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa430e840e443235b9aa72e1baac86b18"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#aa430e840e443235b9aa72e1baac86b18">ResetReading</a> ()</td></tr> <tr class="memdesc:aa430e840e443235b9aa72e1baac86b18"><td class="mdescLeft"> </td><td class="mdescRight">Reset feature reading to start on the first feature. <a href="#aa430e840e443235b9aa72e1baac86b18">More...</a><br/></td></tr> <tr class="separator:aa430e840e443235b9aa72e1baac86b18"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5d1edbecca464827511bd7a34b862529"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classOGRFeature.html">OGRFeature</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a5d1edbecca464827511bd7a34b862529">GetNextFeature</a> ()</td></tr> <tr class="memdesc:a5d1edbecca464827511bd7a34b862529"><td class="mdescLeft"> </td><td class="mdescRight">Fetch the next available feature from this layer. <a href="#a5d1edbecca464827511bd7a34b862529">More...</a><br/></td></tr> <tr class="separator:a5d1edbecca464827511bd7a34b862529"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afdecea758d3bcc6f4b251a90b59138c3"><td class="memItemLeft" align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#afdecea758d3bcc6f4b251a90b59138c3">SetNextByIndex</a> (long nIndex)</td></tr> <tr class="memdesc:afdecea758d3bcc6f4b251a90b59138c3"><td class="mdescLeft"> </td><td class="mdescRight">Move read cursor to the nIndex'th feature in the current resultset. <a href="#afdecea758d3bcc6f4b251a90b59138c3">More...</a><br/></td></tr> <tr class="separator:afdecea758d3bcc6f4b251a90b59138c3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a008d916daf97c3f189160e0f7bff14d5"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classOGRFeature.html">OGRFeature</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a008d916daf97c3f189160e0f7bff14d5">GetFeature</a> (long nFID)</td></tr> <tr class="memdesc:a008d916daf97c3f189160e0f7bff14d5"><td class="mdescLeft"> </td><td class="mdescRight">Fetch a feature by its identifier. <a href="#a008d916daf97c3f189160e0f7bff14d5">More...</a><br/></td></tr> <tr class="separator:a008d916daf97c3f189160e0f7bff14d5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af42a6e262dd2c788d77643a7388564ca"><td class="memItemLeft" align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#af42a6e262dd2c788d77643a7388564ca">SetFeature</a> (<a class="el" href="classOGRFeature.html">OGRFeature</a> *poFeature)</td></tr> <tr class="memdesc:af42a6e262dd2c788d77643a7388564ca"><td class="mdescLeft"> </td><td class="mdescRight">Rewrite an existing feature. <a href="#af42a6e262dd2c788d77643a7388564ca">More...</a><br/></td></tr> <tr class="separator:af42a6e262dd2c788d77643a7388564ca"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a096e5988e4b10966417a3753662c6171"><td class="memItemLeft" align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a096e5988e4b10966417a3753662c6171">CreateFeature</a> (<a class="el" href="classOGRFeature.html">OGRFeature</a> *poFeature)</td></tr> <tr class="memdesc:a096e5988e4b10966417a3753662c6171"><td class="mdescLeft"> </td><td class="mdescRight">Create and write a new feature within a layer. <a href="#a096e5988e4b10966417a3753662c6171">More...</a><br/></td></tr> <tr class="separator:a096e5988e4b10966417a3753662c6171"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae39211b0650811eb8353d4d9bc69dea2"><td class="memItemLeft" align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#ae39211b0650811eb8353d4d9bc69dea2">DeleteFeature</a> (long nFID)</td></tr> <tr class="memdesc:ae39211b0650811eb8353d4d9bc69dea2"><td class="mdescLeft"> </td><td class="mdescRight">Delete feature from layer. <a href="#ae39211b0650811eb8353d4d9bc69dea2">More...</a><br/></td></tr> <tr class="separator:ae39211b0650811eb8353d4d9bc69dea2"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a97686a6ef8e461caf74cf624e02b49f9"><td class="memItemLeft" align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a97686a6ef8e461caf74cf624e02b49f9">GetName</a> ()</td></tr> <tr class="memdesc:a97686a6ef8e461caf74cf624e02b49f9"><td class="mdescLeft"> </td><td class="mdescRight">Return the layer name. <a href="#a97686a6ef8e461caf74cf624e02b49f9">More...</a><br/></td></tr> <tr class="separator:a97686a6ef8e461caf74cf624e02b49f9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab1cec0e60127cafffbbfca7c969081ac"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="ogr__core_8h.html#a800236a0d460ef66e687b7b65610f12a">OGRwkbGeometryType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#ab1cec0e60127cafffbbfca7c969081ac">GetGeomType</a> ()</td></tr> <tr class="memdesc:ab1cec0e60127cafffbbfca7c969081ac"><td class="mdescLeft"> </td><td class="mdescRight">Return the layer geometry type. <a href="#ab1cec0e60127cafffbbfca7c969081ac">More...</a><br/></td></tr> <tr class="separator:ab1cec0e60127cafffbbfca7c969081ac"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6cb57d19416c9eb4d9c1615282b498d1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classOGRFeatureDefn.html">OGRFeatureDefn</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a6cb57d19416c9eb4d9c1615282b498d1">GetLayerDefn</a> ()</td></tr> <tr class="memdesc:a6cb57d19416c9eb4d9c1615282b498d1"><td class="mdescLeft"> </td><td class="mdescRight">Fetch the schema information for this layer. <a href="#a6cb57d19416c9eb4d9c1615282b498d1">More...</a><br/></td></tr> <tr class="separator:a6cb57d19416c9eb4d9c1615282b498d1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac9a72ec894519baa3b3e709713cb665f"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#ac9a72ec894519baa3b3e709713cb665f">GetSpatialRef</a> ()</td></tr> <tr class="memdesc:ac9a72ec894519baa3b3e709713cb665f"><td class="mdescLeft"> </td><td class="mdescRight">Fetch the spatial reference system for this layer. <a href="#ac9a72ec894519baa3b3e709713cb665f">More...</a><br/></td></tr> <tr class="separator:ac9a72ec894519baa3b3e709713cb665f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aef9e1920c4733164e5ba053ca08cb8cb"><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#aef9e1920c4733164e5ba053ca08cb8cb">GetFeatureCount</a> (int bForce=TRUE)</td></tr> <tr class="memdesc:aef9e1920c4733164e5ba053ca08cb8cb"><td class="mdescLeft"> </td><td class="mdescRight">Fetch the feature count in this layer. <a href="#aef9e1920c4733164e5ba053ca08cb8cb">More...</a><br/></td></tr> <tr class="separator:aef9e1920c4733164e5ba053ca08cb8cb"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6e3e29276855a7bd0d7f72c0c0dae38f"><td class="memItemLeft" align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a6e3e29276855a7bd0d7f72c0c0dae38f">GetExtent</a> (int iGeomField, <a class="el" href="classOGREnvelope.html">OGREnvelope</a> *psExtent, int bForce=TRUE)</td></tr> <tr class="memdesc:a6e3e29276855a7bd0d7f72c0c0dae38f"><td class="mdescLeft"> </td><td class="mdescRight">Fetch the extent of this layer, on the specified geometry field. <a href="#a6e3e29276855a7bd0d7f72c0c0dae38f">More...</a><br/></td></tr> <tr class="separator:a6e3e29276855a7bd0d7f72c0c0dae38f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a69c5f6f2aea9cace5d50ef26b34447ad"><td class="memItemLeft" align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a69c5f6f2aea9cace5d50ef26b34447ad">GetExtent</a> (<a class="el" href="classOGREnvelope.html">OGREnvelope</a> *psExtent, int bForce=TRUE)</td></tr> <tr class="memdesc:a69c5f6f2aea9cace5d50ef26b34447ad"><td class="mdescLeft"> </td><td class="mdescRight">Fetch the extent of this layer. <a href="#a69c5f6f2aea9cace5d50ef26b34447ad">More...</a><br/></td></tr> <tr class="separator:a69c5f6f2aea9cace5d50ef26b34447ad"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6dfcc85af021e5e4095b520692761226"><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a6dfcc85af021e5e4095b520692761226">TestCapability</a> (const char *)</td></tr> <tr class="memdesc:a6dfcc85af021e5e4095b520692761226"><td class="mdescLeft"> </td><td class="mdescRight">Test if this layer supported the named capability. <a href="#a6dfcc85af021e5e4095b520692761226">More...</a><br/></td></tr> <tr class="separator:a6dfcc85af021e5e4095b520692761226"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8ebcd0484d1c1415876986e3eef5ffeb"><td class="memItemLeft" align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a8ebcd0484d1c1415876986e3eef5ffeb">CreateField</a> (<a class="el" href="classOGRFieldDefn.html">OGRFieldDefn</a> *poField, int bApproxOK=TRUE)</td></tr> <tr class="memdesc:a8ebcd0484d1c1415876986e3eef5ffeb"><td class="mdescLeft"> </td><td class="mdescRight">Create a new field on a layer. <a href="#a8ebcd0484d1c1415876986e3eef5ffeb">More...</a><br/></td></tr> <tr class="separator:a8ebcd0484d1c1415876986e3eef5ffeb"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a588e4099ae87e9afd94d014a6964aecf"><td class="memItemLeft" align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a588e4099ae87e9afd94d014a6964aecf">DeleteField</a> (int iField)</td></tr> <tr class="memdesc:a588e4099ae87e9afd94d014a6964aecf"><td class="mdescLeft"> </td><td class="mdescRight">Delete an existing field on a layer. <a href="#a588e4099ae87e9afd94d014a6964aecf">More...</a><br/></td></tr> <tr class="separator:a588e4099ae87e9afd94d014a6964aecf"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aca079c71a7cda466c46203d1cecdac45"><td class="memItemLeft" align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#aca079c71a7cda466c46203d1cecdac45">ReorderFields</a> (int *panMap)</td></tr> <tr class="memdesc:aca079c71a7cda466c46203d1cecdac45"><td class="mdescLeft"> </td><td class="mdescRight">Reorder all the fields of a layer. <a href="#aca079c71a7cda466c46203d1cecdac45">More...</a><br/></td></tr> <tr class="separator:aca079c71a7cda466c46203d1cecdac45"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9ede09c21d142c0fe9725b422b833f3f"><td class="memItemLeft" align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a9ede09c21d142c0fe9725b422b833f3f">AlterFieldDefn</a> (int iField, <a class="el" href="classOGRFieldDefn.html">OGRFieldDefn</a> *poNewFieldDefn, int nFlags)</td></tr> <tr class="memdesc:a9ede09c21d142c0fe9725b422b833f3f"><td class="mdescLeft"> </td><td class="mdescRight">Alter the definition of an existing field on a layer. <a href="#a9ede09c21d142c0fe9725b422b833f3f">More...</a><br/></td></tr> <tr class="separator:a9ede09c21d142c0fe9725b422b833f3f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3b2242b1251cdf0979f8b10f56f0e3c4"><td class="memItemLeft" align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a3b2242b1251cdf0979f8b10f56f0e3c4">SyncToDisk</a> ()</td></tr> <tr class="memdesc:a3b2242b1251cdf0979f8b10f56f0e3c4"><td class="mdescLeft"> </td><td class="mdescRight">Flush pending changes to disk. <a href="#a3b2242b1251cdf0979f8b10f56f0e3c4">More...</a><br/></td></tr> <tr class="separator:a3b2242b1251cdf0979f8b10f56f0e3c4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab093ab7f9a7d66c97c16232b6035c82a"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classOGRStyleTable.html">OGRStyleTable</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#ab093ab7f9a7d66c97c16232b6035c82a">GetStyleTable</a> ()</td></tr> <tr class="memdesc:ab093ab7f9a7d66c97c16232b6035c82a"><td class="mdescLeft"> </td><td class="mdescRight">Returns layer style table. <a href="#ab093ab7f9a7d66c97c16232b6035c82a">More...</a><br/></td></tr> <tr class="separator:ab093ab7f9a7d66c97c16232b6035c82a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a531fc3d535c43848ff001c2a4455700f"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a531fc3d535c43848ff001c2a4455700f">SetStyleTableDirectly</a> (<a class="el" href="classOGRStyleTable.html">OGRStyleTable</a> *poStyleTable)</td></tr> <tr class="memdesc:a531fc3d535c43848ff001c2a4455700f"><td class="mdescLeft"> </td><td class="mdescRight">Set layer style table. <a href="#a531fc3d535c43848ff001c2a4455700f">More...</a><br/></td></tr> <tr class="separator:a531fc3d535c43848ff001c2a4455700f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3ec150e9dfbfadffcebec6a96396ac8f"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a3ec150e9dfbfadffcebec6a96396ac8f">SetStyleTable</a> (<a class="el" href="classOGRStyleTable.html">OGRStyleTable</a> *poStyleTable)</td></tr> <tr class="memdesc:a3ec150e9dfbfadffcebec6a96396ac8f"><td class="mdescLeft"> </td><td class="mdescRight">Set layer style table. <a href="#a3ec150e9dfbfadffcebec6a96396ac8f">More...</a><br/></td></tr> <tr class="separator:a3ec150e9dfbfadffcebec6a96396ac8f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa6844a664eb25e384b792665158691bb"><td class="memItemLeft" align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#aa6844a664eb25e384b792665158691bb">GetFIDColumn</a> ()</td></tr> <tr class="memdesc:aa6844a664eb25e384b792665158691bb"><td class="mdescLeft"> </td><td class="mdescRight">This method returns the name of the underlying database column being used as the FID column, or "" if not supported. <a href="#aa6844a664eb25e384b792665158691bb">More...</a><br/></td></tr> <tr class="separator:aa6844a664eb25e384b792665158691bb"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2a0c4fb535bf4d6bbf31f6370e18274d"><td class="memItemLeft" align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#a2a0c4fb535bf4d6bbf31f6370e18274d">GetGeometryColumn</a> ()</td></tr> <tr class="memdesc:a2a0c4fb535bf4d6bbf31f6370e18274d"><td class="mdescLeft"> </td><td class="mdescRight">This method returns the name of the underlying database column being used as the geometry column, or "" if not supported. <a href="#a2a0c4fb535bf4d6bbf31f6370e18274d">More...</a><br/></td></tr> <tr class="separator:a2a0c4fb535bf4d6bbf31f6370e18274d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:adc1b3ec7fe99335be403646123636800"><td class="memItemLeft" align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayerDecorator.html#adc1b3ec7fe99335be403646123636800">SetIgnoredFields</a> (const char **papszFields)</td></tr> <tr class="memdesc:adc1b3ec7fe99335be403646123636800"><td class="mdescLeft"> </td><td class="mdescRight">Set which fields can be omitted when retrieving features from the layer. <a href="#adc1b3ec7fe99335be403646123636800">More...</a><br/></td></tr> <tr class="separator:adc1b3ec7fe99335be403646123636800"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_classOGRLayer"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classOGRLayer')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classOGRLayer.html">OGRLayer</a></td></tr> <tr class="memitem:aef41bcd7adad1ac5ddcef54d6b38713c inherit pub_methods_classOGRLayer"><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayer.html#aef41bcd7adad1ac5ddcef54d6b38713c">FindFieldIndex</a> (const char *pszFieldName, int bExactMatch)</td></tr> <tr class="memdesc:aef41bcd7adad1ac5ddcef54d6b38713c inherit pub_methods_classOGRLayer"><td class="mdescLeft"> </td><td class="mdescRight">Find the index of field in the layer. <a href="#aef41bcd7adad1ac5ddcef54d6b38713c">More...</a><br/></td></tr> <tr class="separator:aef41bcd7adad1ac5ddcef54d6b38713c inherit pub_methods_classOGRLayer"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a143b0d2c48bc0adf3a19d1f51e76b8ba inherit pub_methods_classOGRLayer"><td class="memItemLeft" align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayer.html#a143b0d2c48bc0adf3a19d1f51e76b8ba">GetInfo</a> (const char *)</td></tr> <tr class="memdesc:a143b0d2c48bc0adf3a19d1f51e76b8ba inherit pub_methods_classOGRLayer"><td class="mdescLeft"> </td><td class="mdescRight">Fetch metadata from layer. <a href="#a143b0d2c48bc0adf3a19d1f51e76b8ba">More...</a><br/></td></tr> <tr class="separator:a143b0d2c48bc0adf3a19d1f51e76b8ba inherit pub_methods_classOGRLayer"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af3c68cad279ad80a476c6fb307cf5e48 inherit pub_methods_classOGRLayer"><td class="memItemLeft" align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayer.html#af3c68cad279ad80a476c6fb307cf5e48">CreateGeomField</a> (<a class="el" href="classOGRGeomFieldDefn.html">OGRGeomFieldDefn</a> *poField, int bApproxOK=TRUE)</td></tr> <tr class="memdesc:af3c68cad279ad80a476c6fb307cf5e48 inherit pub_methods_classOGRLayer"><td class="mdescLeft"> </td><td class="mdescRight">Create a new geometry field on a layer. <a href="#af3c68cad279ad80a476c6fb307cf5e48">More...</a><br/></td></tr> <tr class="separator:af3c68cad279ad80a476c6fb307cf5e48 inherit pub_methods_classOGRLayer"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac189f54996c2d6fd769889ec99e0f48a inherit pub_methods_classOGRLayer"><td class="memItemLeft" align="right" valign="top">OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayer.html#ac189f54996c2d6fd769889ec99e0f48a">Intersection</a> (<a class="el" href="classOGRLayer.html">OGRLayer</a> *pLayerMethod, <a class="el" href="classOGRLayer.html">OGRLayer</a> *pLayerResult, char **papszOptions=NULL, GDALProgressFunc pfnProgress=NULL, void *pProgressArg=NULL)</td></tr> <tr class="memdesc:ac189f54996c2d6fd769889ec99e0f48a inherit pub_methods_classOGRLayer"><td class="mdescLeft"> </td><td class="mdescRight">Intersection of two layers. <a href="#ac189f54996c2d6fd769889ec99e0f48a">More...</a><br/></td></tr> <tr class="separator:ac189f54996c2d6fd769889ec99e0f48a inherit pub_methods_classOGRLayer"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aeb8ab475561f2aca2c0e605cfb810b22 inherit pub_methods_classOGRLayer"><td class="memItemLeft" align="right" valign="top">OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayer.html#aeb8ab475561f2aca2c0e605cfb810b22">Union</a> (<a class="el" href="classOGRLayer.html">OGRLayer</a> *pLayerMethod, <a class="el" href="classOGRLayer.html">OGRLayer</a> *pLayerResult, char **papszOptions=NULL, GDALProgressFunc pfnProgress=NULL, void *pProgressArg=NULL)</td></tr> <tr class="memdesc:aeb8ab475561f2aca2c0e605cfb810b22 inherit pub_methods_classOGRLayer"><td class="mdescLeft"> </td><td class="mdescRight">Union of two layers. <a href="#aeb8ab475561f2aca2c0e605cfb810b22">More...</a><br/></td></tr> <tr class="separator:aeb8ab475561f2aca2c0e605cfb810b22 inherit pub_methods_classOGRLayer"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a781aa76c6b44b19de09f61816e32245b inherit pub_methods_classOGRLayer"><td class="memItemLeft" align="right" valign="top">OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayer.html#a781aa76c6b44b19de09f61816e32245b">SymDifference</a> (<a class="el" href="classOGRLayer.html">OGRLayer</a> *pLayerMethod, <a class="el" href="classOGRLayer.html">OGRLayer</a> *pLayerResult, char **papszOptions, GDALProgressFunc pfnProgress, void *pProgressArg)</td></tr> <tr class="memdesc:a781aa76c6b44b19de09f61816e32245b inherit pub_methods_classOGRLayer"><td class="mdescLeft"> </td><td class="mdescRight">Symmetrical difference of two layers. <a href="#a781aa76c6b44b19de09f61816e32245b">More...</a><br/></td></tr> <tr class="separator:a781aa76c6b44b19de09f61816e32245b inherit pub_methods_classOGRLayer"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acac6a0bde9737555b22c6ac7fa967431 inherit pub_methods_classOGRLayer"><td class="memItemLeft" align="right" valign="top">OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayer.html#acac6a0bde9737555b22c6ac7fa967431">Identity</a> (<a class="el" href="classOGRLayer.html">OGRLayer</a> *pLayerMethod, <a class="el" href="classOGRLayer.html">OGRLayer</a> *pLayerResult, char **papszOptions=NULL, GDALProgressFunc pfnProgress=NULL, void *pProgressArg=NULL)</td></tr> <tr class="memdesc:acac6a0bde9737555b22c6ac7fa967431 inherit pub_methods_classOGRLayer"><td class="mdescLeft"> </td><td class="mdescRight">Identify the features of this layer with the ones from the identity layer. <a href="#acac6a0bde9737555b22c6ac7fa967431">More...</a><br/></td></tr> <tr class="separator:acac6a0bde9737555b22c6ac7fa967431 inherit pub_methods_classOGRLayer"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa1c5dc5ca195956c46d35a85b0b21d9b inherit pub_methods_classOGRLayer"><td class="memItemLeft" align="right" valign="top">OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayer.html#aa1c5dc5ca195956c46d35a85b0b21d9b">Update</a> (<a class="el" href="classOGRLayer.html">OGRLayer</a> *pLayerMethod, <a class="el" href="classOGRLayer.html">OGRLayer</a> *pLayerResult, char **papszOptions=NULL, GDALProgressFunc pfnProgress=NULL, void *pProgressArg=NULL)</td></tr> <tr class="memdesc:aa1c5dc5ca195956c46d35a85b0b21d9b inherit pub_methods_classOGRLayer"><td class="mdescLeft"> </td><td class="mdescRight">Update this layer with features from the update layer. <a href="#aa1c5dc5ca195956c46d35a85b0b21d9b">More...</a><br/></td></tr> <tr class="separator:aa1c5dc5ca195956c46d35a85b0b21d9b inherit pub_methods_classOGRLayer"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a56d7ee3b2020e53c730d67ee4f1e2fb6 inherit pub_methods_classOGRLayer"><td class="memItemLeft" align="right" valign="top">OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayer.html#a56d7ee3b2020e53c730d67ee4f1e2fb6">Clip</a> (<a class="el" href="classOGRLayer.html">OGRLayer</a> *pLayerMethod, <a class="el" href="classOGRLayer.html">OGRLayer</a> *pLayerResult, char **papszOptions=NULL, GDALProgressFunc pfnProgress=NULL, void *pProgressArg=NULL)</td></tr> <tr class="memdesc:a56d7ee3b2020e53c730d67ee4f1e2fb6 inherit pub_methods_classOGRLayer"><td class="mdescLeft"> </td><td class="mdescRight">Clip off areas that are not covered by the method layer. <a href="#a56d7ee3b2020e53c730d67ee4f1e2fb6">More...</a><br/></td></tr> <tr class="separator:a56d7ee3b2020e53c730d67ee4f1e2fb6 inherit pub_methods_classOGRLayer"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae8fcf55ffa259f32df35edcb05274439 inherit pub_methods_classOGRLayer"><td class="memItemLeft" align="right" valign="top">OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayer.html#ae8fcf55ffa259f32df35edcb05274439">Erase</a> (<a class="el" href="classOGRLayer.html">OGRLayer</a> *pLayerMethod, <a class="el" href="classOGRLayer.html">OGRLayer</a> *pLayerResult, char **papszOptions=NULL, GDALProgressFunc pfnProgress=NULL, void *pProgressArg=NULL)</td></tr> <tr class="memdesc:ae8fcf55ffa259f32df35edcb05274439 inherit pub_methods_classOGRLayer"><td class="mdescLeft"> </td><td class="mdescRight">Remove areas that are covered by the method layer. <a href="#ae8fcf55ffa259f32df35edcb05274439">More...</a><br/></td></tr> <tr class="separator:ae8fcf55ffa259f32df35edcb05274439 inherit pub_methods_classOGRLayer"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae783de2e9ee2629e6bf27fd3b8622fb5 inherit pub_methods_classOGRLayer"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayer.html#ae783de2e9ee2629e6bf27fd3b8622fb5">Reference</a> ()</td></tr> <tr class="memdesc:ae783de2e9ee2629e6bf27fd3b8622fb5 inherit pub_methods_classOGRLayer"><td class="mdescLeft"> </td><td class="mdescRight">Increment layer reference count. <a href="#ae783de2e9ee2629e6bf27fd3b8622fb5">More...</a><br/></td></tr> <tr class="separator:ae783de2e9ee2629e6bf27fd3b8622fb5 inherit pub_methods_classOGRLayer"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2271d53f75d4f6ff2f4a8aeb71e825d6 inherit pub_methods_classOGRLayer"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayer.html#a2271d53f75d4f6ff2f4a8aeb71e825d6">Dereference</a> ()</td></tr> <tr class="memdesc:a2271d53f75d4f6ff2f4a8aeb71e825d6 inherit pub_methods_classOGRLayer"><td class="mdescLeft"> </td><td class="mdescRight">Decrement layer reference count. <a href="#a2271d53f75d4f6ff2f4a8aeb71e825d6">More...</a><br/></td></tr> <tr class="separator:a2271d53f75d4f6ff2f4a8aeb71e825d6 inherit pub_methods_classOGRLayer"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2fc393bc9962a73e94478b72d9fc4954 inherit pub_methods_classOGRLayer"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayer.html#a2fc393bc9962a73e94478b72d9fc4954">GetRefCount</a> () const </td></tr> <tr class="memdesc:a2fc393bc9962a73e94478b72d9fc4954 inherit pub_methods_classOGRLayer"><td class="mdescLeft"> </td><td class="mdescRight">Fetch reference count. <a href="#a2fc393bc9962a73e94478b72d9fc4954">More...</a><br/></td></tr> <tr class="separator:a2fc393bc9962a73e94478b72d9fc4954 inherit pub_methods_classOGRLayer"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab4c02b991bfa78552eeb0cbcdcf1aed8 inherit pub_methods_classOGRLayer"><td class="memItemLeft" align="right" valign="top">OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRLayer.html#ab4c02b991bfa78552eeb0cbcdcf1aed8">ReorderField</a> (int iOldFieldPos, int iNewFieldPos)</td></tr> <tr class="memdesc:ab4c02b991bfa78552eeb0cbcdcf1aed8 inherit pub_methods_classOGRLayer"><td class="mdescLeft"> </td><td class="mdescRight">Reorder an existing field on a layer. <a href="#ab4c02b991bfa78552eeb0cbcdcf1aed8">More...</a><br/></td></tr> <tr class="separator:ab4c02b991bfa78552eeb0cbcdcf1aed8 inherit pub_methods_classOGRLayer"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a9ede09c21d142c0fe9725b422b833f3f"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">OGRErr OGRLayerDecorator::AlterFieldDefn </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>iField</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classOGRFieldDefn.html">OGRFieldDefn</a> * </td> <td class="paramname"><em>poNewFieldDefn</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>nFlags</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Alter the definition of an existing field on a layer. </p> <p>You must use this to alter the definition of an existing field of a real layer. Internally the <a class="el" href="classOGRFeatureDefn.html">OGRFeatureDefn</a> for the layer will be updated to reflect the altered field. Applications should never modify the <a class="el" href="classOGRFeatureDefn.html">OGRFeatureDefn</a> used by a layer directly.</p> <p>This method should not be called while there are feature objects in existance that were obtained or created with the previous layer definition.</p> <p>Not all drivers support this method. You can query a layer to check if it supports it with the OLCAlterFieldDefn capability. Some drivers may only support this method while there are still no features in the layer. When it is supported, the existings features of the backing file/database should be updated accordingly. Some drivers might also not support all update flags.</p> <p>This function is the same as the C function <a class="el" href="ogr__api_8h.html#a679904d97c1084f309706ac3c6228cec" title="Alter the definition of an existing field on a layer. ">OGR_L_AlterFieldDefn()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">iField</td><td>index of the field whose definition must be altered. </td></tr> <tr><td class="paramname">poNewFieldDefn</td><td>new field definition </td></tr> <tr><td class="paramname">nFlags</td><td>combination of ALTER_NAME_FLAG, ALTER_TYPE_FLAG and ALTER_WIDTH_PRECISION_FLAG to indicate which of the name and/or type and/or width and precision fields from the new field definition must be taken into account.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>OGRERR_NONE on success.</dd></dl> <dl class="section since"><dt>Since</dt><dd>OGR 1.9.0 </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a71e69a665e93001d48a4339695f33c1a">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#a2a75d65d01ede43cf930675fa44da283">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a71e69a665e93001d48a4339695f33c1a">OGRLayer::AlterFieldDefn()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a2a75d65d01ede43cf930675fa44da283">OGRMutexedLayer::AlterFieldDefn()</a>.</p> </div> </div> <a class="anchor" id="a096e5988e4b10966417a3753662c6171"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">OGRErr OGRLayerDecorator::CreateFeature </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRFeature.html">OGRFeature</a> * </td> <td class="paramname"><em>poFeature</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Create and write a new feature within a layer. </p> <p>The passed feature is written to the layer as a new feature, rather than overwriting an existing one. If the feature has a feature id other than OGRNullFID, then the native implementation may use that as the feature id of the new feature, but not necessarily. Upon successful return the passed feature will have been updated with the new feature id.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a301d319111285a47fe6cda6e079214f8" title="Create and write a new feature within a layer. ">OGR_L_CreateFeature()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">poFeature</td><td>the feature to write to disk.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>OGRERR_NONE on success. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#aaa1e32016f481596a55e1d988a15a067">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRWarpedLayer.html#ad1208b597aca9b8b5e90816dc2998ff8">OGRWarpedLayer</a>, and <a class="el" href="classOGRMutexedLayer.html#a47882f9c1e1aca67afce06a033789540">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#aaa1e32016f481596a55e1d988a15a067">OGRLayer::CreateFeature()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a47882f9c1e1aca67afce06a033789540">OGRMutexedLayer::CreateFeature()</a>.</p> </div> </div> <a class="anchor" id="a8ebcd0484d1c1415876986e3eef5ffeb"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">OGRErr OGRLayerDecorator::CreateField </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRFieldDefn.html">OGRFieldDefn</a> * </td> <td class="paramname"><em>poField</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>bApproxOK</em> = <code>TRUE</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Create a new field on a layer. </p> <p>You must use this to create new fields on a real layer. Internally the <a class="el" href="classOGRFeatureDefn.html">OGRFeatureDefn</a> for the layer will be updated to reflect the new field. Applications should never modify the <a class="el" href="classOGRFeatureDefn.html">OGRFeatureDefn</a> used by a layer directly.</p> <p>This method should not be called while there are feature objects in existance that were obtained or created with the previous layer definition.</p> <p>Not all drivers support this method. You can query a layer to check if it supports it with the OLCCreateField capability. Some drivers may only support this method while there are still no features in the layer. When it is supported, the existings features of the backing file/database should be updated accordingly.</p> <p>This function is the same as the C function <a class="el" href="ogr__api_8h.html#aab585ef1166c61c4819f7fd46ee4a275" title="Create a new field on a layer. ">OGR_L_CreateField()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">poField</td><td>field definition to write to disk. </td></tr> <tr><td class="paramname">bApproxOK</td><td>If TRUE, the field may be created in a slightly different form depending on the limitations of the format driver.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>OGRERR_NONE on success. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a00b1376a1eabb1298ef278f92f6d84be">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#a92f1c6ac2e088c93056a2916b145957d">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a00b1376a1eabb1298ef278f92f6d84be">OGRLayer::CreateField()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a92f1c6ac2e088c93056a2916b145957d">OGRMutexedLayer::CreateField()</a>.</p> </div> </div> <a class="anchor" id="ae39211b0650811eb8353d4d9bc69dea2"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">OGRErr OGRLayerDecorator::DeleteFeature </td> <td>(</td> <td class="paramtype">long </td> <td class="paramname"><em>nFID</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Delete feature from layer. </p> <p>The feature with the indicated feature id is deleted from the layer if supported by the driver. Most drivers do not support feature deletion, and will return OGRERR_UNSUPPORTED_OPERATION. The <a class="el" href="classOGRLayerDecorator.html#a6dfcc85af021e5e4095b520692761226" title="Test if this layer supported the named capability. ">TestCapability()</a> layer method may be called with OLCDeleteFeature to check if the driver supports feature deletion.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a3525cc8e47db48f8968605d3f2d9a41a" title="Delete feature from layer. ">OGR_L_DeleteFeature()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">nFID</td><td>the feature id to be deleted from the layer</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>OGRERR_NONE on success. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a7e3d454d54a615a1b4359628bb6e7674">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#a39ad2cb471f07a7644f398521fc43e20">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a7e3d454d54a615a1b4359628bb6e7674">OGRLayer::DeleteFeature()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a39ad2cb471f07a7644f398521fc43e20">OGRMutexedLayer::DeleteFeature()</a>.</p> </div> </div> <a class="anchor" id="a588e4099ae87e9afd94d014a6964aecf"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">OGRErr OGRLayerDecorator::DeleteField </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>iField</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Delete an existing field on a layer. </p> <p>You must use this to delete existing fields on a real layer. Internally the <a class="el" href="classOGRFeatureDefn.html">OGRFeatureDefn</a> for the layer will be updated to reflect the deleted field. Applications should never modify the <a class="el" href="classOGRFeatureDefn.html">OGRFeatureDefn</a> used by a layer directly.</p> <p>This method should not be called while there are feature objects in existance that were obtained or created with the previous layer definition.</p> <p>Not all drivers support this method. You can query a layer to check if it supports it with the OLCDeleteField capability. Some drivers may only support this method while there are still no features in the layer. When it is supported, the existings features of the backing file/database should be updated accordingly.</p> <p>This function is the same as the C function <a class="el" href="ogr__api_8h.html#afc861413683418eba5d31e487da2f9e2" title="Create a new field on a layer. ">OGR_L_DeleteField()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">iField</td><td>index of the field to delete.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>OGRERR_NONE on success.</dd></dl> <dl class="section since"><dt>Since</dt><dd>OGR 1.9.0 </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#aaebe7c671dca995549543eecf0f7a76a">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#a3c80f872eeeb5ee8e6e516221c55c4bb">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#aaebe7c671dca995549543eecf0f7a76a">OGRLayer::DeleteField()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a3c80f872eeeb5ee8e6e516221c55c4bb">OGRMutexedLayer::DeleteField()</a>.</p> </div> </div> <a class="anchor" id="a6e3e29276855a7bd0d7f72c0c0dae38f"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">OGRErr OGRLayerDecorator::GetExtent </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>iGeomField</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classOGREnvelope.html">OGREnvelope</a> * </td> <td class="paramname"><em>psExtent</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>bForce</em> = <code>TRUE</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Fetch the extent of this layer, on the specified geometry field. </p> <p>Returns the extent (MBR) of the data in the layer. If bForce is FALSE, and it would be expensive to establish the extent then OGRERR_FAILURE will be returned indicating that the extent isn't know. If bForce is TRUE then some implementations will actually scan the entire layer once to compute the MBR of all the features in the layer.</p> <p>Depending on the drivers, the returned extent may or may not take the spatial filter into account. So it is safer to call <a class="el" href="classOGRLayerDecorator.html#a6e3e29276855a7bd0d7f72c0c0dae38f" title="Fetch the extent of this layer, on the specified geometry field. ">GetExtent()</a> without setting a spatial filter.</p> <p>Layers without any geometry may return OGRERR_FAILURE just indicating that no meaningful extents could be collected.</p> <p>Note that some implementations of this method may alter the read cursor of the layer.</p> <p>Note to driver implementators: if you implement <a class="el" href="classOGRLayerDecorator.html#a6e3e29276855a7bd0d7f72c0c0dae38f" title="Fetch the extent of this layer, on the specified geometry field. ">GetExtent(int,OGREnvelope*,int)</a>, you must also implement <a class="el" href="classOGRLayerDecorator.html#a69c5f6f2aea9cace5d50ef26b34447ad" title="Fetch the extent of this layer. ">GetExtent(OGREnvelope*, int)</a> to make it call GetExtent(0,OGREnvelope*,int).</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#ac3dbfd4443c80dca0d93574f0c00d376" title="Fetch the extent of this layer, on the specified geometry field. ">OGR_L_GetExtentEx()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">iGeomField</td><td>the index of the geometry field on which to compute the extent. </td></tr> <tr><td class="paramname">psExtent</td><td>the structure in which the extent value will be returned. </td></tr> <tr><td class="paramname">bForce</td><td>Flag indicating whether the extent should be computed even if it is expensive.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>OGRERR_NONE on success, OGRERR_FAILURE if extent not known. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a47a3cc550866eee1668bea2315f9df9c">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRWarpedLayer.html#ad8e9852587d5a152d7459e8dc5eb86e5">OGRWarpedLayer</a>, and <a class="el" href="classOGRMutexedLayer.html#ad7fe1ffa98644c88c04fa8988d1a9044">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a3be658ddb5b33d1ed95c31286774bbd2">OGRLayer::GetExtent()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#ad7fe1ffa98644c88c04fa8988d1a9044">OGRMutexedLayer::GetExtent()</a>.</p> </div> </div> <a class="anchor" id="a69c5f6f2aea9cace5d50ef26b34447ad"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">OGRErr OGRLayerDecorator::GetExtent </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGREnvelope.html">OGREnvelope</a> * </td> <td class="paramname"><em>psExtent</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>bForce</em> = <code>TRUE</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Fetch the extent of this layer. </p> <p>Returns the extent (MBR) of the data in the layer. If bForce is FALSE, and it would be expensive to establish the extent then OGRERR_FAILURE will be returned indicating that the extent isn't know. If bForce is TRUE then some implementations will actually scan the entire layer once to compute the MBR of all the features in the layer.</p> <p>Depending on the drivers, the returned extent may or may not take the spatial filter into account. So it is safer to call <a class="el" href="classOGRLayerDecorator.html#a6e3e29276855a7bd0d7f72c0c0dae38f" title="Fetch the extent of this layer, on the specified geometry field. ">GetExtent()</a> without setting a spatial filter.</p> <p>Layers without any geometry may return OGRERR_FAILURE just indicating that no meaningful extents could be collected.</p> <p>Note that some implementations of this method may alter the read cursor of the layer.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#aa6c495581900c8301dff91d8cd3ee12f" title="Fetch the extent of this layer. ">OGR_L_GetExtent()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">psExtent</td><td>the structure in which the extent value will be returned. </td></tr> <tr><td class="paramname">bForce</td><td>Flag indicating whether the extent should be computed even if it is expensive.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>OGRERR_NONE on success, OGRERR_FAILURE if extent not known. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a3be658ddb5b33d1ed95c31286774bbd2">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRWarpedLayer.html#aec43822af12dba6874618c493da11fd0">OGRWarpedLayer</a>, and <a class="el" href="classOGRMutexedLayer.html#a69d4d90ea1ebcfb919cf238e273b6599">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a3be658ddb5b33d1ed95c31286774bbd2">OGRLayer::GetExtent()</a>.</p> </div> </div> <a class="anchor" id="a008d916daf97c3f189160e0f7bff14d5"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRFeature.html">OGRFeature</a> * OGRLayerDecorator::GetFeature </td> <td>(</td> <td class="paramtype">long </td> <td class="paramname"><em>nFID</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Fetch a feature by its identifier. </p> <p>This function will attempt to read the identified feature. The nFID value cannot be OGRNullFID. Success or failure of this operation is unaffected by the spatial or attribute filters (and specialized implementations in drivers should make sure that they do not take into account spatial or attribute filters).</p> <p>If this method returns a non-NULL feature, it is guaranteed that its feature id (<a class="el" href="classOGRFeature.html#a23506b436ea8e88e65aaa6b57bbaa326" title="Get feature identifier. ">OGRFeature::GetFID()</a>) will be the same as nFID.</p> <p>Use OGRLayer::TestCapability(OLCRandomRead) to establish if this layer supports efficient random access reading via <a class="el" href="classOGRLayerDecorator.html#a008d916daf97c3f189160e0f7bff14d5" title="Fetch a feature by its identifier. ">GetFeature()</a>; however, the call should always work if the feature exists as a fallback implementation just scans all the features in the layer looking for the desired feature.</p> <p>Sequential reads (with <a class="el" href="classOGRLayerDecorator.html#a5d1edbecca464827511bd7a34b862529" title="Fetch the next available feature from this layer. ">GetNextFeature()</a>) are generally considered interrupted by a <a class="el" href="classOGRLayerDecorator.html#a008d916daf97c3f189160e0f7bff14d5" title="Fetch a feature by its identifier. ">GetFeature()</a> call.</p> <p>The returned feature should be free with <a class="el" href="classOGRFeature.html#a5d2602d11f21567119da0ca6b6c5ad45" title="Destroy feature. ">OGRFeature::DestroyFeature()</a>.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a7c628dce8939904154b50365306b06f9" title="Fetch a feature by its identifier. ">OGR_L_GetFeature()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">nFID</td><td>the feature id of the feature to read.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a feature now owned by the caller, or NULL on failure. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#acb7625383f161e5a04aeea2173dce411">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRWarpedLayer.html#a12521ca826b27601a09f1882f5b7595c">OGRWarpedLayer</a>, and <a class="el" href="classOGRMutexedLayer.html#a17ecbcc2d4d31e99629ed325a5bca72b">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#acb7625383f161e5a04aeea2173dce411">OGRLayer::GetFeature()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a17ecbcc2d4d31e99629ed325a5bca72b">OGRMutexedLayer::GetFeature()</a>.</p> </div> </div> <a class="anchor" id="aef9e1920c4733164e5ba053ca08cb8cb"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">int OGRLayerDecorator::GetFeatureCount </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>bForce</em> = <code>TRUE</code></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Fetch the feature count in this layer. </p> <p>Returns the number of features in the layer. For dynamic databases the count may not be exact. If bForce is FALSE, and it would be expensive to establish the feature count a value of -1 may be returned indicating that the count isn't know. If bForce is TRUE some implementations will actually scan the entire layer once to count objects.</p> <p>The returned count takes the spatial filter into account.</p> <p>Note that some implementations of this method may alter the read cursor of the layer.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#abfbba8f45edd5dc44ced91f9228f9124" title="Fetch the feature count in this layer. ">OGR_L_GetFeatureCount()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">bForce</td><td>Flag indicating whether the count should be computed even if it is expensive.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>feature count, -1 if count not known. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a74c796d4ce712e9a78df6042eeb8a91a">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRWarpedLayer.html#a33fd195fa410c173fe4d04f65deddac0">OGRWarpedLayer</a>, and <a class="el" href="classOGRMutexedLayer.html#abd804a230e77a945a578d56775afdb50">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a74c796d4ce712e9a78df6042eeb8a91a">OGRLayer::GetFeatureCount()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#abd804a230e77a945a578d56775afdb50">OGRMutexedLayer::GetFeatureCount()</a>.</p> </div> </div> <a class="anchor" id="aa6844a664eb25e384b792665158691bb"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const char * OGRLayerDecorator::GetFIDColumn </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>This method returns the name of the underlying database column being used as the FID column, or "" if not supported. </p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#abfeb6e1258f113c6c45c8d6a43c8cfa5" title="This method returns the name of the underlying database column being used as the FID column...">OGR_L_GetFIDColumn()</a>.</p> <dl class="section return"><dt>Returns</dt><dd>fid column name. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#af0cb9a05310d7b17d9dfec9e83a18e61">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#a51c6f151a8bbde1521e723fcdc521197">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#af0cb9a05310d7b17d9dfec9e83a18e61">OGRLayer::GetFIDColumn()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a51c6f151a8bbde1521e723fcdc521197">OGRMutexedLayer::GetFIDColumn()</a>.</p> </div> </div> <a class="anchor" id="a2a0c4fb535bf4d6bbf31f6370e18274d"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const char * OGRLayerDecorator::GetGeometryColumn </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>This method returns the name of the underlying database column being used as the geometry column, or "" if not supported. </p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#ab060e07e277cebd1d8504c449d97b29f" title="This method returns the name of the underlying database column being used as the geometry column...">OGR_L_GetGeometryColumn()</a>.</p> <dl class="section return"><dt>Returns</dt><dd>geometry column name. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#af68036c23622c954ce3a91861f22b724">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#aab0f7af29c53c51a1d13c5d676dbe8ed">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#af68036c23622c954ce3a91861f22b724">OGRLayer::GetGeometryColumn()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#aab0f7af29c53c51a1d13c5d676dbe8ed">OGRMutexedLayer::GetGeometryColumn()</a>.</p> </div> </div> <a class="anchor" id="ab1cec0e60127cafffbbfca7c969081ac"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="ogr__core_8h.html#a800236a0d460ef66e687b7b65610f12a">OGRwkbGeometryType</a> OGRLayerDecorator::GetGeomType </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Return the layer geometry type. </p> <p>This returns the same result as <a class="el" href="classOGRLayerDecorator.html#a6cb57d19416c9eb4d9c1615282b498d1" title="Fetch the schema information for this layer. ">GetLayerDefn()</a>-><a class="el" href="classOGRLayerDecorator.html#ab1cec0e60127cafffbbfca7c969081ac" title="Return the layer geometry type. ">GetGeomType()</a>, but for a few drivers, calling <a class="el" href="classOGRLayerDecorator.html#ab1cec0e60127cafffbbfca7c969081ac" title="Return the layer geometry type. ">GetGeomType()</a> directly can avoid lengthy layer definition initialization.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a0adea8ce1ca795ce0a6a76505f90f078" title="Return the layer geometry type. ">OGR_L_GetGeomType()</a>.</p> <p>If this method is derived in a driver, it must be done such that it returns the same content as <a class="el" href="classOGRLayerDecorator.html#a6cb57d19416c9eb4d9c1615282b498d1" title="Fetch the schema information for this layer. ">GetLayerDefn()</a>-><a class="el" href="classOGRLayerDecorator.html#ab1cec0e60127cafffbbfca7c969081ac" title="Return the layer geometry type. ">GetGeomType()</a>.</p> <dl class="section return"><dt>Returns</dt><dd>the geometry type </dd></dl> <dl class="section since"><dt>Since</dt><dd>OGR 1.8.0 </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a818a25520ce08d5a681443348e930604">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#a235b670a8457d48002ab88e10e403f9a">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a818a25520ce08d5a681443348e930604">OGRLayer::GetGeomType()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a235b670a8457d48002ab88e10e403f9a">OGRMutexedLayer::GetGeomType()</a>.</p> </div> </div> <a class="anchor" id="a6cb57d19416c9eb4d9c1615282b498d1"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRFeatureDefn.html">OGRFeatureDefn</a> * OGRLayerDecorator::GetLayerDefn </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Fetch the schema information for this layer. </p> <p>The returned <a class="el" href="classOGRFeatureDefn.html">OGRFeatureDefn</a> is owned by the <a class="el" href="classOGRLayer.html">OGRLayer</a>, and should not be modified or freed by the application. It encapsulates the attribute schema of the features of the layer.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a7b67ea4ab5892c6720460dc7f66eca2d" title="Fetch the schema information for this layer. ">OGR_L_GetLayerDefn()</a>.</p> <dl class="section return"><dt>Returns</dt><dd>feature definition. </dd></dl> <p>Implements <a class="el" href="classOGRLayer.html#a80473bcfd11341e70dd35bebe94026cf">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRWarpedLayer.html#aba232ed7807f305b9ed4e56af9e370ec">OGRWarpedLayer</a>, and <a class="el" href="classOGRMutexedLayer.html#ad842cc7d620591e7c0149d27f2892105">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a80473bcfd11341e70dd35bebe94026cf">OGRLayer::GetLayerDefn()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#ad842cc7d620591e7c0149d27f2892105">OGRMutexedLayer::GetLayerDefn()</a>.</p> </div> </div> <a class="anchor" id="a97686a6ef8e461caf74cf624e02b49f9"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const char * OGRLayerDecorator::GetName </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Return the layer name. </p> <p>This returns the same content as <a class="el" href="classOGRLayerDecorator.html#a6cb57d19416c9eb4d9c1615282b498d1" title="Fetch the schema information for this layer. ">GetLayerDefn()</a>-><a class="el" href="classOGRLayerDecorator.html#a97686a6ef8e461caf74cf624e02b49f9" title="Return the layer name. ">GetName()</a>, but for a few drivers, calling <a class="el" href="classOGRLayerDecorator.html#a97686a6ef8e461caf74cf624e02b49f9" title="Return the layer name. ">GetName()</a> directly can avoid lengthy layer definition initialization.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a88facf4f8e8b32278101d52ae094255c" title="Return the layer name. ">OGR_L_GetName()</a>.</p> <p>If this method is derived in a driver, it must be done such that it returns the same content as <a class="el" href="classOGRLayerDecorator.html#a6cb57d19416c9eb4d9c1615282b498d1" title="Fetch the schema information for this layer. ">GetLayerDefn()</a>-><a class="el" href="classOGRLayerDecorator.html#a97686a6ef8e461caf74cf624e02b49f9" title="Return the layer name. ">GetName()</a>.</p> <dl class="section return"><dt>Returns</dt><dd>the layer name (must not been freed) </dd></dl> <dl class="section since"><dt>Since</dt><dd>OGR 1.8.0 </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a287f5ec7728cacc2f7d94882a9f1a22e">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#aa7a1e5652e760500cb5017669299e1ea">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a287f5ec7728cacc2f7d94882a9f1a22e">OGRLayer::GetName()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#aa7a1e5652e760500cb5017669299e1ea">OGRMutexedLayer::GetName()</a>.</p> </div> </div> <a class="anchor" id="a5d1edbecca464827511bd7a34b862529"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRFeature.html">OGRFeature</a> * OGRLayerDecorator::GetNextFeature </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Fetch the next available feature from this layer. </p> <p>The returned feature becomes the responsiblity of the caller to delete with <a class="el" href="classOGRFeature.html#a5d2602d11f21567119da0ca6b6c5ad45" title="Destroy feature. ">OGRFeature::DestroyFeature()</a>. It is critical that all features associated with an <a class="el" href="classOGRLayer.html">OGRLayer</a> (more specifically an <a class="el" href="classOGRFeatureDefn.html">OGRFeatureDefn</a>) be deleted before that layer/datasource is deleted.</p> <p>Only features matching the current spatial filter (set with <a class="el" href="classOGRLayerDecorator.html#ab113a978272fe2eb060cafa8bf13f8b9" title="Set a new spatial filter. ">SetSpatialFilter()</a>) will be returned.</p> <p>This method implements sequential access to the features of a layer. The <a class="el" href="classOGRLayerDecorator.html#aa430e840e443235b9aa72e1baac86b18" title="Reset feature reading to start on the first feature. ">ResetReading()</a> method can be used to start at the beginning again.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a6708c067521ab7b7f9c4ec0ebe221b5b" title="Fetch the next available feature from this layer. ">OGR_L_GetNextFeature()</a>.</p> <dl class="section return"><dt>Returns</dt><dd>a feature, or NULL if no more features are available. </dd></dl> <p>Implements <a class="el" href="classOGRLayer.html#a47d21ff33b32d14fa4e9885b9edecad6">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRWarpedLayer.html#a7d55012a49484e77ef06246597736c09">OGRWarpedLayer</a>, and <a class="el" href="classOGRMutexedLayer.html#a374128e0f80a2c7872e6e916dae1278c">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a47d21ff33b32d14fa4e9885b9edecad6">OGRLayer::GetNextFeature()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a374128e0f80a2c7872e6e916dae1278c">OGRMutexedLayer::GetNextFeature()</a>.</p> </div> </div> <a class="anchor" id="ab25905a67ea89683495ccc7fd74579fc"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRLayerDecorator::GetSpatialFilter </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>This method returns the current spatial filter for this layer. </p> <p>The returned pointer is to an internally owned object, and should not be altered or deleted by the caller.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a36d61f311c9f8c172ad118659358c60a" title="This function returns the current spatial filter for this layer. ">OGR_L_GetSpatialFilter()</a>.</p> <dl class="section return"><dt>Returns</dt><dd>spatial filter geometry. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#adc3735e444204d46f517eec251712f4d">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#ae2e5e834c3959ffc0231c6d9736776d9">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#adc3735e444204d46f517eec251712f4d">OGRLayer::GetSpatialFilter()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#ae2e5e834c3959ffc0231c6d9736776d9">OGRMutexedLayer::GetSpatialFilter()</a>.</p> </div> </div> <a class="anchor" id="ac9a72ec894519baa3b3e709713cb665f"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a> * OGRLayerDecorator::GetSpatialRef </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Fetch the spatial reference system for this layer. </p> <p>The returned object is owned by the <a class="el" href="classOGRLayer.html">OGRLayer</a> and should not be modified or freed by the application.</p> <p>Starting with OGR 1.11, several geometry fields can be associated to a feature definition. Each geometry field can have its own spatial reference system, which is returned by <a class="el" href="classOGRGeomFieldDefn.html#ae043691f36413950ea2ec0c3495ac959" title="Fetch spatial reference system of this field. ">OGRGeomFieldDefn::GetSpatialRef()</a>. <a class="el" href="classOGRLayer.html#a75c06b4993f8eb76b569f37365cd19ab" title="Fetch the spatial reference system for this layer. ">OGRLayer::GetSpatialRef()</a> is equivalent to <a class="el" href="classOGRLayerDecorator.html#a6cb57d19416c9eb4d9c1615282b498d1" title="Fetch the schema information for this layer. ">GetLayerDefn()</a>->GetGeomFieldDefn(0)-><a class="el" href="classOGRLayerDecorator.html#ac9a72ec894519baa3b3e709713cb665f" title="Fetch the spatial reference system for this layer. ">GetSpatialRef()</a></p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a8b2a10085f410aa84172eba413408c39" title="Fetch the spatial reference system for this layer. ">OGR_L_GetSpatialRef()</a>.</p> <dl class="section return"><dt>Returns</dt><dd>spatial reference, or NULL if there isn't one. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a75c06b4993f8eb76b569f37365cd19ab">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRWarpedLayer.html#a1bf0ab0345277bbf37fe0aba15582164">OGRWarpedLayer</a>, and <a class="el" href="classOGRMutexedLayer.html#a35e7e3246fc1f8db4d0d8826c58927c1">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a75c06b4993f8eb76b569f37365cd19ab">OGRLayer::GetSpatialRef()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a35e7e3246fc1f8db4d0d8826c58927c1">OGRMutexedLayer::GetSpatialRef()</a>.</p> </div> </div> <a class="anchor" id="ab093ab7f9a7d66c97c16232b6035c82a"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRStyleTable.html">OGRStyleTable</a> * OGRLayerDecorator::GetStyleTable </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns layer style table. </p> <p>This method is the same as the C function OGR_L_GetStyleTable().</p> <dl class="section return"><dt>Returns</dt><dd>pointer to a style table which should not be modified or freed by the caller. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#ac65f762d5b3c6fc4ca0f0cc4aafcdcbe">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#a83e21757447d5f195f43d92de6d05021">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#ac65f762d5b3c6fc4ca0f0cc4aafcdcbe">OGRLayer::GetStyleTable()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a83e21757447d5f195f43d92de6d05021">OGRMutexedLayer::GetStyleTable()</a>.</p> </div> </div> <a class="anchor" id="aca079c71a7cda466c46203d1cecdac45"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">OGRErr OGRLayerDecorator::ReorderFields </td> <td>(</td> <td class="paramtype">int * </td> <td class="paramname"><em>panMap</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Reorder all the fields of a layer. </p> <p>You must use this to reorder existing fields on a real layer. Internally the <a class="el" href="classOGRFeatureDefn.html">OGRFeatureDefn</a> for the layer will be updated to reflect the reordering of the fields. Applications should never modify the <a class="el" href="classOGRFeatureDefn.html">OGRFeatureDefn</a> used by a layer directly.</p> <p>This method should not be called while there are feature objects in existance that were obtained or created with the previous layer definition.</p> <p>panMap is such that,for each field definition at position i after reordering, its position before reordering was panMap[i].</p> <p>For example, let suppose the fields were "0","1","2","3","4" initially. ReorderFields([0,2,3,1,4]) will reorder them as "0","2","3","1","4".</p> <p>Not all drivers support this method. You can query a layer to check if it supports it with the OLCReorderFields capability. Some drivers may only support this method while there are still no features in the layer. When it is supported, the existings features of the backing file/database should be updated accordingly.</p> <p>This function is the same as the C function <a class="el" href="ogr__api_8h.html#a4cc576cb39e1dd4a1f074125199245bb" title="Reorder all the fields of a layer. ">OGR_L_ReorderFields()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">panMap</td><td>an array of <a class="el" href="classOGRLayerDecorator.html#a6cb57d19416c9eb4d9c1615282b498d1" title="Fetch the schema information for this layer. ">GetLayerDefn()</a>->GetFieldCount() elements which is a permutation of [0, <a class="el" href="classOGRLayerDecorator.html#a6cb57d19416c9eb4d9c1615282b498d1" title="Fetch the schema information for this layer. ">GetLayerDefn()</a>->GetFieldCount()-1].</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>OGRERR_NONE on success.</dd></dl> <dl class="section since"><dt>Since</dt><dd>OGR 1.9.0 </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#aebd364a150d91f8d65d967646e0f92d3">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#a5cc9d32e8347b2e9208ea5b98da6f413">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#aebd364a150d91f8d65d967646e0f92d3">OGRLayer::ReorderFields()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a5cc9d32e8347b2e9208ea5b98da6f413">OGRMutexedLayer::ReorderFields()</a>.</p> </div> </div> <a class="anchor" id="aa430e840e443235b9aa72e1baac86b18"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void OGRLayerDecorator::ResetReading </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Reset feature reading to start on the first feature. </p> <p>This affects <a class="el" href="classOGRLayerDecorator.html#a5d1edbecca464827511bd7a34b862529" title="Fetch the next available feature from this layer. ">GetNextFeature()</a>.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#ab0383004bf637171648a9d03a80f15a4" title="Reset feature reading to start on the first feature. ">OGR_L_ResetReading()</a>. </p> <p>Implements <a class="el" href="classOGRLayer.html#aad0f2cd7f0587584b8f382c6a913583c">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#a46bb36f6749839d7a6d8f965ed86a73b">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#aad0f2cd7f0587584b8f382c6a913583c">OGRLayer::ResetReading()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a46bb36f6749839d7a6d8f965ed86a73b">OGRMutexedLayer::ResetReading()</a>, and <a class="el" href="classOGRWarpedLayer.html#a50e1332a6d2bd495422e1ef83ca6a246">OGRWarpedLayer::SetSpatialFilter()</a>.</p> </div> </div> <a class="anchor" id="ae9659fb3c5026f2430f048b4e7169fff"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">OGRErr OGRLayerDecorator::SetAttributeFilter </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>pszQuery</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Set a new attribute query. </p> <p>This method sets the attribute query string to be used when fetching features via the <a class="el" href="classOGRLayerDecorator.html#a5d1edbecca464827511bd7a34b862529" title="Fetch the next available feature from this layer. ">GetNextFeature()</a> method. Only features for which the query evaluates as true will be returned.</p> <p>The query string should be in the format of an SQL WHERE clause. For instance "population > 1000000 and population < 5000000" where population is an attribute in the layer. The query format is normally a restricted form of SQL WHERE clause as described in the "WHERE" section of the <a href="ogr_sql.html">OGR SQL</a> tutorial. In some cases (RDBMS backed drivers) the native capabilities of the database may be used to interprete the WHERE clause in which case the capabilities will be broader than those of OGR SQL.</p> <p>Note that installing a query string will generally result in resetting the current reading position (ala <a class="el" href="classOGRLayerDecorator.html#aa430e840e443235b9aa72e1baac86b18" title="Reset feature reading to start on the first feature. ">ResetReading()</a>).</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a4000d426bf26ad7cc7d4012634c93f09" title="Set a new attribute query. ">OGR_L_SetAttributeFilter()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">pszQuery</td><td>query in restricted SQL WHERE format, or NULL to clear the current query.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>OGRERR_NONE if successfully installed, or an error code if the query expression is in error, or some other failure occurs. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#acb2c6cc5fa3577df5be538284c1b0dde">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#a6113634c9216c4c26e5b3f410e170860">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#acb2c6cc5fa3577df5be538284c1b0dde">OGRLayer::SetAttributeFilter()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a6113634c9216c4c26e5b3f410e170860">OGRMutexedLayer::SetAttributeFilter()</a>.</p> </div> </div> <a class="anchor" id="af42a6e262dd2c788d77643a7388564ca"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">OGRErr OGRLayerDecorator::SetFeature </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRFeature.html">OGRFeature</a> * </td> <td class="paramname"><em>poFeature</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Rewrite an existing feature. </p> <p>This method will write a feature to the layer, based on the feature id within the <a class="el" href="classOGRFeature.html">OGRFeature</a>.</p> <p>Use OGRLayer::TestCapability(OLCRandomWrite) to establish if this layer supports random access writing via <a class="el" href="classOGRLayerDecorator.html#af42a6e262dd2c788d77643a7388564ca" title="Rewrite an existing feature. ">SetFeature()</a>.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a5b380520d0999422987f06b6e31b9b00" title="Rewrite an existing feature. ">OGR_L_SetFeature()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">poFeature</td><td>the feature to write.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>OGRERR_NONE if the operation works, otherwise an appropriate error code. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a681139bfd585b74d7218e51a32144283">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRWarpedLayer.html#a675128117d059eee968fcf9d42b68acd">OGRWarpedLayer</a>, and <a class="el" href="classOGRMutexedLayer.html#a87301abe09e2d407c9cdce84dc3be373">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a681139bfd585b74d7218e51a32144283">OGRLayer::SetFeature()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a87301abe09e2d407c9cdce84dc3be373">OGRMutexedLayer::SetFeature()</a>.</p> </div> </div> <a class="anchor" id="adc1b3ec7fe99335be403646123636800"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">OGRErr OGRLayerDecorator::SetIgnoredFields </td> <td>(</td> <td class="paramtype">const char ** </td> <td class="paramname"><em>papszFields</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Set which fields can be omitted when retrieving features from the layer. </p> <p>If the driver supports this functionality (testable using OLCIgnoreFields capability), it will not fetch the specified fields in subsequent calls to <a class="el" href="classOGRLayerDecorator.html#a008d916daf97c3f189160e0f7bff14d5" title="Fetch a feature by its identifier. ">GetFeature()</a> / <a class="el" href="classOGRLayerDecorator.html#a5d1edbecca464827511bd7a34b862529" title="Fetch the next available feature from this layer. ">GetNextFeature()</a> and thus save some processing time and/or bandwidth.</p> <p>Besides field names of the layers, the following special fields can be passed: "OGR_GEOMETRY" to ignore geometry and "OGR_STYLE" to ignore layer style.</p> <p>By default, no fields are ignored.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a6d43f1474201356bed2e6f92e7d37154" title="Set which fields can be omitted when retrieving features from the layer. ">OGR_L_SetIgnoredFields()</a></p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">papszFields</td><td>an array of field names terminated by NULL item. If NULL is passed, the ignored list is cleared. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>OGRERR_NONE if all field names have been resolved (even if the driver does not support this method) </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a5e0c3427f64249d1c35cefb487546b10">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#a953ced5149b5a40b12ecf5e289a68ced">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a5e0c3427f64249d1c35cefb487546b10">OGRLayer::SetIgnoredFields()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a953ced5149b5a40b12ecf5e289a68ced">OGRMutexedLayer::SetIgnoredFields()</a>.</p> </div> </div> <a class="anchor" id="afdecea758d3bcc6f4b251a90b59138c3"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">OGRErr OGRLayerDecorator::SetNextByIndex </td> <td>(</td> <td class="paramtype">long </td> <td class="paramname"><em>nIndex</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Move read cursor to the nIndex'th feature in the current resultset. </p> <p>This method allows positioning of a layer such that the <a class="el" href="classOGRLayerDecorator.html#a5d1edbecca464827511bd7a34b862529" title="Fetch the next available feature from this layer. ">GetNextFeature()</a> call will read the requested feature, where nIndex is an absolute index into the current result set. So, setting it to 3 would mean the next feature read with <a class="el" href="classOGRLayerDecorator.html#a5d1edbecca464827511bd7a34b862529" title="Fetch the next available feature from this layer. ">GetNextFeature()</a> would have been the 4th feature to have been read if sequential reading took place from the beginning of the layer, including accounting for spatial and attribute filters.</p> <p>Only in rare circumstances is <a class="el" href="classOGRLayerDecorator.html#afdecea758d3bcc6f4b251a90b59138c3" title="Move read cursor to the nIndex'th feature in the current resultset. ">SetNextByIndex()</a> efficiently implemented. In all other cases the default implementation which calls <a class="el" href="classOGRLayerDecorator.html#aa430e840e443235b9aa72e1baac86b18" title="Reset feature reading to start on the first feature. ">ResetReading()</a> and then calls <a class="el" href="classOGRLayerDecorator.html#a5d1edbecca464827511bd7a34b862529" title="Fetch the next available feature from this layer. ">GetNextFeature()</a> nIndex times is used. To determine if fast seeking is available on the current layer use the <a class="el" href="classOGRLayerDecorator.html#a6dfcc85af021e5e4095b520692761226" title="Test if this layer supported the named capability. ">TestCapability()</a> method with a value of OLCFastSetNextByIndex.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a5bb3f366e3e6cd8cb586842193b4a7f9" title="Move read cursor to the nIndex'th feature in the current resultset. ">OGR_L_SetNextByIndex()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">nIndex</td><td>the index indicating how many steps into the result set to seek.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>OGRERR_NONE on success or an error code. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#ae3b6234d6077a18a19eddaf7e75ff5e1">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#a9bcd2f4624f07c873d18f48526dac76e">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#ae3b6234d6077a18a19eddaf7e75ff5e1">OGRLayer::SetNextByIndex()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a9bcd2f4624f07c873d18f48526dac76e">OGRMutexedLayer::SetNextByIndex()</a>.</p> </div> </div> <a class="anchor" id="ab113a978272fe2eb060cafa8bf13f8b9"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void OGRLayerDecorator::SetSpatialFilter </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * </td> <td class="paramname"><em>poFilter</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Set a new spatial filter. </p> <p>This method set the geometry to be used as a spatial filter when fetching features via the <a class="el" href="classOGRLayerDecorator.html#a5d1edbecca464827511bd7a34b862529" title="Fetch the next available feature from this layer. ">GetNextFeature()</a> method. Only features that geometrically intersect the filter geometry will be returned.</p> <p>Currently this test is may be inaccurately implemented, but it is guaranteed that all features who's envelope (as returned by <a class="el" href="classOGRGeometry.html#aa3d42b06ae6f7bbef6d1a2886da8d398" title="Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure...">OGRGeometry::getEnvelope()</a>) overlaps the envelope of the spatial filter will be returned. This can result in more shapes being returned that should strictly be the case.</p> <p>This method makes an internal copy of the passed geometry. The passed geometry remains the responsibility of the caller, and may be safely destroyed.</p> <p>For the time being the passed filter geometry should be in the same SRS as the layer (as returned by <a class="el" href="classOGRLayer.html#a75c06b4993f8eb76b569f37365cd19ab" title="Fetch the spatial reference system for this layer. ">OGRLayer::GetSpatialRef()</a>). In the future this may be generalized.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a678d1735bc82533614ac005691d1138c" title="Set a new spatial filter. ">OGR_L_SetSpatialFilter()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">poFilter</td><td>the geometry to use as a filtering region. NULL may be passed indicating that the current spatial filter should be cleared, but no new one instituted. </td></tr> </table> </dd> </dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a0b4ab45cf97cbc470f0d60474d3e4169">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRWarpedLayer.html#a8f41d20ca38cfb431a54fecd4f1c858b">OGRWarpedLayer</a>, and <a class="el" href="classOGRMutexedLayer.html#a6aac6029961847c049bef0e193b4ea29">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a0b4ab45cf97cbc470f0d60474d3e4169">OGRLayer::SetSpatialFilter()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#a6aac6029961847c049bef0e193b4ea29">OGRMutexedLayer::SetSpatialFilter()</a>.</p> </div> </div> <a class="anchor" id="ab5f573a61c192099ced0e83825a36aef"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void OGRLayerDecorator::SetSpatialFilter </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>iGeomField</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * </td> <td class="paramname"><em>poFilter</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Set a new spatial filter. </p> <p>This method set the geometry to be used as a spatial filter when fetching features via the <a class="el" href="classOGRLayerDecorator.html#a5d1edbecca464827511bd7a34b862529" title="Fetch the next available feature from this layer. ">GetNextFeature()</a> method. Only features that geometrically intersect the filter geometry will be returned.</p> <p>Currently this test is may be inaccurately implemented, but it is guaranteed that all features who's envelope (as returned by <a class="el" href="classOGRGeometry.html#aa3d42b06ae6f7bbef6d1a2886da8d398" title="Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure...">OGRGeometry::getEnvelope()</a>) overlaps the envelope of the spatial filter will be returned. This can result in more shapes being returned that should strictly be the case.</p> <p>This method makes an internal copy of the passed geometry. The passed geometry remains the responsibility of the caller, and may be safely destroyed.</p> <p>For the time being the passed filter geometry should be in the same SRS as the geometry field definition it corresponds to (as returned by <a class="el" href="classOGRLayerDecorator.html#a6cb57d19416c9eb4d9c1615282b498d1" title="Fetch the schema information for this layer. ">GetLayerDefn()</a>->GetGeomFieldDefn(iGeomField)-><a class="el" href="classOGRLayerDecorator.html#ac9a72ec894519baa3b3e709713cb665f" title="Fetch the spatial reference system for this layer. ">GetSpatialRef()</a>). In the future this may be generalized.</p> <p>Note that only the last spatial filter set is applied, even if several successive calls are done with different iGeomField values.</p> <p>Note to driver implementators: if you implement <a class="el" href="classOGRLayerDecorator.html#ab5f573a61c192099ced0e83825a36aef" title="Set a new spatial filter. ">SetSpatialFilter(int,OGRGeometry*)</a>, you must also implement <a class="el" href="classOGRLayerDecorator.html#ab113a978272fe2eb060cafa8bf13f8b9" title="Set a new spatial filter. ">SetSpatialFilter(OGRGeometry*)</a> to make it call SetSpatialFilter(0,OGRGeometry*).</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a00c8a1a968542d389f86ed1b4edd5823" title="Set a new spatial filter. ">OGR_L_SetSpatialFilterEx()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">iGeomField</td><td>index of the geometry field on which the spatial filter operates. </td></tr> <tr><td class="paramname">poFilter</td><td>the geometry to use as a filtering region. NULL may be passed indicating that the current spatial filter should be cleared, but no new one instituted.</td></tr> </table> </dd> </dl> <dl class="section since"><dt>Since</dt><dd>GDAL 1.11 </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#aebac60fb86ee178be016655532070ee3">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRWarpedLayer.html#a50e1332a6d2bd495422e1ef83ca6a246">OGRWarpedLayer</a>, and <a class="el" href="classOGRMutexedLayer.html#ae15a0e5b02cc4eaefc6bdb6d3cb7dd32">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a0b4ab45cf97cbc470f0d60474d3e4169">OGRLayer::SetSpatialFilter()</a>.</p> </div> </div> <a class="anchor" id="a5182e0e702fb3598bfcd556901c2191e"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void OGRLayerDecorator::SetSpatialFilterRect </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>dfMinX</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>dfMinY</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>dfMaxX</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>dfMaxY</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Set a new rectangular spatial filter. </p> <p>This method set rectangle to be used as a spatial filter when fetching features via the <a class="el" href="classOGRLayerDecorator.html#a5d1edbecca464827511bd7a34b862529" title="Fetch the next available feature from this layer. ">GetNextFeature()</a> method. Only features that geometrically intersect the given rectangle will be returned.</p> <p>The x/y values should be in the same coordinate system as the layer as a whole (as returned by <a class="el" href="classOGRLayer.html#a75c06b4993f8eb76b569f37365cd19ab" title="Fetch the spatial reference system for this layer. ">OGRLayer::GetSpatialRef()</a>). Internally this method is normally implemented as creating a 5 vertex closed rectangular polygon and passing it to <a class="el" href="classOGRLayer.html#a0b4ab45cf97cbc470f0d60474d3e4169" title="Set a new spatial filter. ">OGRLayer::SetSpatialFilter()</a>. It exists as a convenience.</p> <p>The only way to clear a spatial filter set with this method is to call OGRLayer::SetSpatialFilter(NULL).</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a5cba569e0779a02a95327f041d9f7a13" title="Set a new rectangular spatial filter. ">OGR_L_SetSpatialFilterRect()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">dfMinX</td><td>the minimum X coordinate for the rectangular region. </td></tr> <tr><td class="paramname">dfMinY</td><td>the minimum Y coordinate for the rectangular region. </td></tr> <tr><td class="paramname">dfMaxX</td><td>the maximum X coordinate for the rectangular region. </td></tr> <tr><td class="paramname">dfMaxY</td><td>the maximum Y coordinate for the rectangular region. </td></tr> </table> </dd> </dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#acd16bcdb3e8f720003fb24cd68f25460">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRWarpedLayer.html#a159b1aafced966dbbd35535d3ecc18ac">OGRWarpedLayer</a>, and <a class="el" href="classOGRMutexedLayer.html#ae93c6d30ca620ab8a782907b1a37dd59">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#acd16bcdb3e8f720003fb24cd68f25460">OGRLayer::SetSpatialFilterRect()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#ae93c6d30ca620ab8a782907b1a37dd59">OGRMutexedLayer::SetSpatialFilterRect()</a>.</p> </div> </div> <a class="anchor" id="a52231526e17e03d1849a59f1231d5036"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void OGRLayerDecorator::SetSpatialFilterRect </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>iGeomField</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>dfMinX</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>dfMinY</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>dfMaxX</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>dfMaxY</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Set a new rectangular spatial filter. </p> <p>This method set rectangle to be used as a spatial filter when fetching features via the <a class="el" href="classOGRLayerDecorator.html#a5d1edbecca464827511bd7a34b862529" title="Fetch the next available feature from this layer. ">GetNextFeature()</a> method. Only features that geometrically intersect the given rectangle will be returned.</p> <p>The x/y values should be in the same coordinate system as as the geometry field definition it corresponds to (as returned by <a class="el" href="classOGRLayerDecorator.html#a6cb57d19416c9eb4d9c1615282b498d1" title="Fetch the schema information for this layer. ">GetLayerDefn()</a>->GetGeomFieldDefn(iGeomField)-><a class="el" href="classOGRLayerDecorator.html#ac9a72ec894519baa3b3e709713cb665f" title="Fetch the spatial reference system for this layer. ">GetSpatialRef()</a>). Internally this method is normally implemented as creating a 5 vertex closed rectangular polygon and passing it to <a class="el" href="classOGRLayer.html#a0b4ab45cf97cbc470f0d60474d3e4169" title="Set a new spatial filter. ">OGRLayer::SetSpatialFilter()</a>. It exists as a convenience.</p> <p>The only way to clear a spatial filter set with this method is to call OGRLayer::SetSpatialFilter(NULL).</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a489241dfe65d6e089809d3258c4f79f5" title="Set a new rectangular spatial filter. ">OGR_L_SetSpatialFilterRectEx()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">iGeomField</td><td>index of the geometry field on which the spatial filter operates. </td></tr> <tr><td class="paramname">dfMinX</td><td>the minimum X coordinate for the rectangular region. </td></tr> <tr><td class="paramname">dfMinY</td><td>the minimum Y coordinate for the rectangular region. </td></tr> <tr><td class="paramname">dfMaxX</td><td>the maximum X coordinate for the rectangular region. </td></tr> <tr><td class="paramname">dfMaxY</td><td>the maximum Y coordinate for the rectangular region.</td></tr> </table> </dd> </dl> <dl class="section since"><dt>Since</dt><dd>GDAL 1.11 </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a5cd4ceb8f4ec20594be63280c8e4498a">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRWarpedLayer.html#afc940600931d49fce93c0f770079aadd">OGRWarpedLayer</a>, and <a class="el" href="classOGRMutexedLayer.html#af125218a8743fdf4011298c4b213ad31">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#acd16bcdb3e8f720003fb24cd68f25460">OGRLayer::SetSpatialFilterRect()</a>.</p> </div> </div> <a class="anchor" id="a3ec150e9dfbfadffcebec6a96396ac8f"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void OGRLayerDecorator::SetStyleTable </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRStyleTable.html">OGRStyleTable</a> * </td> <td class="paramname"><em>poStyleTable</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Set layer style table. </p> <p>This method operate exactly as <a class="el" href="classOGRLayer.html#a2687d4312c044bb3a20bd13974ba8905" title="Set layer style table. ">OGRLayer::SetStyleTableDirectly()</a> except that it does not assume ownership of the passed table.</p> <p>This method is the same as the C function OGR_L_SetStyleTable().</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">poStyleTable</td><td>pointer to style table to set </td></tr> </table> </dd> </dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a33fa0802c0686fb0e6ca6337e11cd7d5">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#ad66266ef0b42ad18ae3ab20e9d3518b7">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a33fa0802c0686fb0e6ca6337e11cd7d5">OGRLayer::SetStyleTable()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#ad66266ef0b42ad18ae3ab20e9d3518b7">OGRMutexedLayer::SetStyleTable()</a>.</p> </div> </div> <a class="anchor" id="a531fc3d535c43848ff001c2a4455700f"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void OGRLayerDecorator::SetStyleTableDirectly </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRStyleTable.html">OGRStyleTable</a> * </td> <td class="paramname"><em>poStyleTable</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Set layer style table. </p> <p>This method operate exactly as <a class="el" href="classOGRLayer.html#a33fa0802c0686fb0e6ca6337e11cd7d5" title="Set layer style table. ">OGRLayer::SetStyleTable()</a> except that it assumes ownership of the passed table.</p> <p>This method is the same as the C function OGR_L_SetStyleTableDirectly().</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">poStyleTable</td><td>pointer to style table to set </td></tr> </table> </dd> </dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#a2687d4312c044bb3a20bd13974ba8905">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#acab228210e846924be8816538ab7d64d">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#a2687d4312c044bb3a20bd13974ba8905">OGRLayer::SetStyleTableDirectly()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#acab228210e846924be8816538ab7d64d">OGRMutexedLayer::SetStyleTableDirectly()</a>.</p> </div> </div> <a class="anchor" id="a3b2242b1251cdf0979f8b10f56f0e3c4"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">OGRErr OGRLayerDecorator::SyncToDisk </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Flush pending changes to disk. </p> <p>This call is intended to force the layer to flush any pending writes to disk, and leave the disk file in a consistent state. It would not normally have any effect on read-only datasources.</p> <p>Some layers do not implement this method, and will still return OGRERR_NONE. The default implementation just returns OGRERR_NONE. An error is only returned if an error occurs while attempting to flush to disk.</p> <p>In any event, you should always close any opened datasource with <a class="el" href="classOGRDataSource.html#a77841576d07b24a01208e4125ccb40a5" title="Closes opened datasource and releases allocated resources. ">OGRDataSource::DestroyDataSource()</a> that will ensure all data is correctly flushed.</p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a9d845a6cf6652756925530418905471a" title="Flush pending changes to disk. ">OGR_L_SyncToDisk()</a>.</p> <dl class="section return"><dt>Returns</dt><dd>OGRERR_NONE if no error occurs (even if nothing is done) or an error code. </dd></dl> <p>Reimplemented from <a class="el" href="classOGRLayer.html#aebb07284c734e485d8611b7c8599254f">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRMutexedLayer.html#ad5cd220e083365ed5ef27ff713726d41">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#aebb07284c734e485d8611b7c8599254f">OGRLayer::SyncToDisk()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#ad5cd220e083365ed5ef27ff713726d41">OGRMutexedLayer::SyncToDisk()</a>.</p> </div> </div> <a class="anchor" id="a6dfcc85af021e5e4095b520692761226"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">int OGRLayerDecorator::TestCapability </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>pszCap</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Test if this layer supported the named capability. </p> <p>The capability codes that can be tested are represented as strings, but #defined constants exists to ensure correct spelling. Specific layer types may implement class specific capabilities, but this can't generally be discovered by the caller. </p> <ul> <li> <p class="startli"><b>OLCRandomRead</b> / "RandomRead": TRUE if the <a class="el" href="classOGRLayerDecorator.html#a008d916daf97c3f189160e0f7bff14d5" title="Fetch a feature by its identifier. ">GetFeature()</a> method is implemented in an optimized way for this layer, as opposed to the default implementation using <a class="el" href="classOGRLayerDecorator.html#aa430e840e443235b9aa72e1baac86b18" title="Reset feature reading to start on the first feature. ">ResetReading()</a> and <a class="el" href="classOGRLayerDecorator.html#a5d1edbecca464827511bd7a34b862529" title="Fetch the next available feature from this layer. ">GetNextFeature()</a> to find the requested feature id.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCSequentialWrite</b> / "SequentialWrite": TRUE if the <a class="el" href="classOGRLayerDecorator.html#a096e5988e4b10966417a3753662c6171" title="Create and write a new feature within a layer. ">CreateFeature()</a> method works for this layer. Note this means that this particular layer is writable. The same <a class="el" href="classOGRLayer.html">OGRLayer</a> class may returned FALSE for other layer instances that are effectively read-only.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCRandomWrite</b> / "RandomWrite": TRUE if the <a class="el" href="classOGRLayerDecorator.html#af42a6e262dd2c788d77643a7388564ca" title="Rewrite an existing feature. ">SetFeature()</a> method is operational on this layer. Note this means that this particular layer is writable. The same <a class="el" href="classOGRLayer.html">OGRLayer</a> class may returned FALSE for other layer instances that are effectively read-only.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCFastSpatialFilter</b> / "FastSpatialFilter": TRUE if this layer implements spatial filtering efficiently. Layers that effectively read all features, and test them with the <a class="el" href="classOGRFeature.html">OGRFeature</a> intersection methods should return FALSE. This can be used as a clue by the application whether it should build and maintain its own spatial index for features in this layer.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCFastFeatureCount</b> / "FastFeatureCount": TRUE if this layer can return a feature count (via <a class="el" href="classOGRLayerDecorator.html#aef9e1920c4733164e5ba053ca08cb8cb" title="Fetch the feature count in this layer. ">GetFeatureCount()</a>) efficiently ... ie. without counting the features. In some cases this will return TRUE until a spatial filter is installed after which it will return FALSE.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCFastGetExtent</b> / "FastGetExtent": TRUE if this layer can return its data extent (via <a class="el" href="classOGRLayerDecorator.html#a6e3e29276855a7bd0d7f72c0c0dae38f" title="Fetch the extent of this layer, on the specified geometry field. ">GetExtent()</a>) efficiently ... ie. without scanning all the features. In some cases this will return TRUE until a spatial filter is installed after which it will return FALSE.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCFastSetNextByIndex</b> / "FastSetNextByIndex": TRUE if this layer can perform the <a class="el" href="classOGRLayerDecorator.html#afdecea758d3bcc6f4b251a90b59138c3" title="Move read cursor to the nIndex'th feature in the current resultset. ">SetNextByIndex()</a> call efficiently, otherwise FALSE.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCCreateField</b> / "CreateField": TRUE if this layer can create new fields on the current layer using <a class="el" href="classOGRLayerDecorator.html#a8ebcd0484d1c1415876986e3eef5ffeb" title="Create a new field on a layer. ">CreateField()</a>, otherwise FALSE.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCCreateGeomField</b> / "CreateGeomField": (GDAL >= 1.11) TRUE if this layer can create new geometry fields on the current layer using <a class="el" href="classOGRLayer.html#af3c68cad279ad80a476c6fb307cf5e48" title="Create a new geometry field on a layer. ">CreateGeomField()</a>, otherwise FALSE.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCDeleteField</b> / "DeleteField": TRUE if this layer can delete existing fields on the current layer using <a class="el" href="classOGRLayerDecorator.html#a588e4099ae87e9afd94d014a6964aecf" title="Delete an existing field on a layer. ">DeleteField()</a>, otherwise FALSE.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCReorderFields</b> / "ReorderFields": TRUE if this layer can reorder existing fields on the current layer using <a class="el" href="classOGRLayer.html#ab4c02b991bfa78552eeb0cbcdcf1aed8" title="Reorder an existing field on a layer. ">ReorderField()</a> or <a class="el" href="classOGRLayerDecorator.html#aca079c71a7cda466c46203d1cecdac45" title="Reorder all the fields of a layer. ">ReorderFields()</a>, otherwise FALSE.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCAlterFieldDefn</b> / "AlterFieldDefn": TRUE if this layer can alter the definition of an existing field on the current layer using <a class="el" href="classOGRLayerDecorator.html#a9ede09c21d142c0fe9725b422b833f3f" title="Alter the definition of an existing field on a layer. ">AlterFieldDefn()</a>, otherwise FALSE.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCDeleteFeature</b> / "DeleteFeature": TRUE if the <a class="el" href="classOGRLayerDecorator.html#ae39211b0650811eb8353d4d9bc69dea2" title="Delete feature from layer. ">DeleteFeature()</a> method is supported on this layer, otherwise FALSE.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCStringsAsUTF8</b> / "StringsAsUTF8": TRUE if values of OFTString fields are assured to be in UTF-8 format. If FALSE the encoding of fields is uncertain, though it might still be UTF-8.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCTransactions</b> / "Transactions": TRUE if the StartTransaction(), CommitTransaction() and RollbackTransaction() methods work in a meaningful way, otherwise FALSE.</p> <p></p> <p class="endli"></p> </li> <li> <p class="startli"><b>OLCIgnoreFields</b> / "IgnoreFields": TRUE if fields, geometry and style will be omitted when fetching features as set by <a class="el" href="classOGRLayerDecorator.html#adc1b3ec7fe99335be403646123636800" title="Set which fields can be omitted when retrieving features from the layer. ">SetIgnoredFields()</a> method.</p> <p></p> <p></p> <p class="endli"></p> </li> </ul> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a480adc8b839b04597f49583371d366fd" title="Test if this layer supported the named capability. ">OGR_L_TestCapability()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">pszCap</td><td>the name of the capability to test.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>TRUE if the layer has the requested capability, or FALSE otherwise. OGRLayers will return FALSE for any unrecognised capabilities.</dd></dl> <p>Implements <a class="el" href="classOGRLayer.html#aeedbda1a62f9b89b8e5f24332cf22286">OGRLayer</a>.</p> <p>Reimplemented in <a class="el" href="classOGRWarpedLayer.html#a9f186b0f0898d1a4a0af9ada5dc319bd">OGRWarpedLayer</a>, and <a class="el" href="classOGRMutexedLayer.html#af1666c0580105ce8a3addeb13dfc91ec">OGRMutexedLayer</a>.</p> <p>References <a class="el" href="classOGRLayer.html#aeedbda1a62f9b89b8e5f24332cf22286">OGRLayer::TestCapability()</a>.</p> <p>Referenced by <a class="el" href="classOGRMutexedLayer.html#af1666c0580105ce8a3addeb13dfc91ec">OGRMutexedLayer::TestCapability()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="ogrlayerdecorator_8h_source.html">ogrlayerdecorator.h</a></li> <li>ogrlayerdecorator.cpp</li> </ul> </div><!-- contents --> <hr> Generated for GDAL by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.8.5. </body> </html>