Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 7fd7c575020aa78a8e2e309ea8909f43 > files > 735

gdal-1.6.2-6.fc13.i686.rpm

<!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"/>
<title>OGR: OGRGenSQLResultsLayer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2-20100208 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>OGRGenSQLResultsLayer Class Reference</h1><!-- doxytag: class="OGRGenSQLResultsLayer" --><!-- doxytag: inherits="OGRLayer" --><div class="dynheader">
Inheritance diagram for OGRGenSQLResultsLayer:</div>
<div class="dynsection">
 <div class="center">
  <img src="classOGRGenSQLResultsLayer.png" usemap="#OGRGenSQLResultsLayer_map" alt=""/>
  <map id="OGRGenSQLResultsLayer_map" name="OGRGenSQLResultsLayer_map">
<area href="classOGRLayer.html" alt="OGRLayer" shape="rect" coords="0,0,160,24"/>
</map>
 </div>
</div>

<p><a href="classOGRGenSQLResultsLayer-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classOGRGeometry.html">OGRGeometry</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGenSQLResultsLayer.html#a75291ea84d417728630d8fe213956ecb">GetSpatialFilter</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGenSQLResultsLayer.html#a55152e648a19d47b1477a732a30f5950">ResetReading</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classOGRFeature.html">OGRFeature</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGenSQLResultsLayer.html#a017e409c228f5182bd71bb0053206496">GetNextFeature</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGenSQLResultsLayer.html#ab083e809dadb0aa6467cccd5a4dda625">SetNextByIndex</a> (long nIndex)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classOGRFeature.html">OGRFeature</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGenSQLResultsLayer.html#a6c318023a60caf1b681e6519c2e33ba3">GetFeature</a> (long nFID)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classOGRFeatureDefn.html">OGRFeatureDefn</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGenSQLResultsLayer.html#a00f2d89533fda930ed263413ef5b140c">GetLayerDefn</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGenSQLResultsLayer.html#a5cbd9317fcfd788e2d65bd416d725f6d">GetSpatialRef</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGenSQLResultsLayer.html#a2c4e8ba237574531b8ccd6c2348f89ff">GetFeatureCount</a> (int bForce=TRUE)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGenSQLResultsLayer.html#a0d0d6fec88c413480bbd296a8d72a154">GetExtent</a> (<a class="el" href="classOGREnvelope.html">OGREnvelope</a> *psExtent, int bForce=TRUE)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGenSQLResultsLayer.html#a2feae7697e868fb6862c8f2b9ed1c7e8">TestCapability</a> (const char *)</td></tr>
</table>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a0d0d6fec88c413480bbd296a8d72a154"></a><!-- doxytag: member="OGRGenSQLResultsLayer::GetExtent" ref="a0d0d6fec88c413480bbd296a8d72a154" args="(OGREnvelope *psExtent, int bForce=TRUE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRErr OGRGenSQLResultsLayer::GetExtent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classOGREnvelope.html">OGREnvelope</a> *&nbsp;</td>
          <td class="paramname"> <em>psExtent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>bForce</em> = <code>TRUE</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></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="classOGRGenSQLResultsLayer.html#a0d0d6fec88c413480bbd296a8d72a154">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>This method is the same as the C function <a class="el" href="ogr__api_8h.html#aa6c495581900c8301dff91d8cd3ee12f">OGR_L_GetExtent()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>psExtent</em>&nbsp;</td><td>the structure in which the extent value will be returned. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>bForce</em>&nbsp;</td><td>Flag indicating whether the extent should be computed even if it is expensive.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></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>References <a class="el" href="ogrlayer_8cpp_source.html#l00193">OGRLayer::GetExtent()</a>.</p>

</div>
</div>
<a class="anchor" id="a6c318023a60caf1b681e6519c2e33ba3"></a><!-- doxytag: member="OGRGenSQLResultsLayer::GetFeature" ref="a6c318023a60caf1b681e6519c2e33ba3" args="(long nFID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOGRFeature.html">OGRFeature</a> * OGRGenSQLResultsLayer::GetFeature </td>
          <td>(</td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>nFID</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fetch a feature by it's 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.</p>
<p>If this method returns a non-NULL feature, it is guaranteed that it's feature id (<a class="el" href="classOGRFeature.html#a23506b436ea8e88e65aaa6b57bbaa326">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="classOGRGenSQLResultsLayer.html#a6c318023a60caf1b681e6519c2e33ba3">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 are generally considered interrupted by a <a class="el" href="classOGRGenSQLResultsLayer.html#a6c318023a60caf1b681e6519c2e33ba3">GetFeature()</a> call.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a7c628dce8939904154b50365306b06f9">OGR_L_GetFeature()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>nFID</em>&nbsp;</td><td>the feature id of the feature to read.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></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>References <a class="el" href="ogrfeature_8cpp_source.html#l00473">OGRFeature::Clone()</a>, <a class="el" href="ogrlayer_8cpp_source.html#l00322">OGRLayer::GetFeature()</a>, <a class="el" href="ogrfeature_8cpp_source.html#l02543">OGRFeature::SetFID()</a>, and <a class="el" href="ogrfeature_8cpp_source.html#l01682">OGRFeature::SetField()</a>.</p>

<p>Referenced by <a class="el" href="ogr__gensql_8cpp_source.html#l00708">GetNextFeature()</a>.</p>

</div>
</div>
<a class="anchor" id="a2c4e8ba237574531b8ccd6c2348f89ff"></a><!-- doxytag: member="OGRGenSQLResultsLayer::GetFeatureCount" ref="a2c4e8ba237574531b8ccd6c2348f89ff" args="(int bForce=TRUE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int OGRGenSQLResultsLayer::GetFeatureCount </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>bForce</em> = <code>TRUE</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></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>This method is the same as the C function <a class="el" href="ogr__api_8h.html#abfbba8f45edd5dc44ced91f9228f9124">OGR_L_GetFeatureCount()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>bForce</em>&nbsp;</td><td>Flag indicating whether the count should be computed even if it is expensive.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></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>References <a class="el" href="ogrlayer_8cpp_source.html#l00157">OGRLayer::GetFeatureCount()</a>.</p>

</div>
</div>
<a class="anchor" id="a00f2d89533fda930ed263413ef5b140c"></a><!-- doxytag: member="OGRGenSQLResultsLayer::GetLayerDefn" ref="a00f2d89533fda930ed263413ef5b140c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOGRFeatureDefn.html">OGRFeatureDefn</a> * OGRGenSQLResultsLayer::GetLayerDefn </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></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">OGR_L_GetLayerDefn()</a>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>feature definition. </dd></dl>

<p>Implements <a class="el" href="classOGRLayer.html#a80473bcfd11341e70dd35bebe94026cf">OGRLayer</a>.</p>

</div>
</div>
<a class="anchor" id="a017e409c228f5182bd71bb0053206496"></a><!-- doxytag: member="OGRGenSQLResultsLayer::GetNextFeature" ref="a017e409c228f5182bd71bb0053206496" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOGRFeature.html">OGRFeature</a> * OGRGenSQLResultsLayer::GetNextFeature </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fetch the next available feature from this layer. The returned feature becomes the responsiblity of the caller to delete.</p>
<p>Only features matching the current spatial filter (set with <a class="el" href="classOGRLayer.html#a0b4ab45cf97cbc470f0d60474d3e4169">SetSpatialFilter()</a>) will be returned.</p>
<p>This method implements sequential access to the features of a layer. The <a class="el" href="classOGRGenSQLResultsLayer.html#a55152e648a19d47b1477a732a30f5950">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">OGR_L_GetNextFeature()</a>.</p>
<dl class="return"><dt><b>Returns:</b></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>References <a class="el" href="ogr__gensql_8cpp_source.html#l00757">GetFeature()</a>, and <a class="el" href="classOGRLayer.html#a47d21ff33b32d14fa4e9885b9edecad6">OGRLayer::GetNextFeature()</a>.</p>

</div>
</div>
<a class="anchor" id="a75291ea84d417728630d8fe213956ecb"></a><!-- doxytag: member="OGRGenSQLResultsLayer::GetSpatialFilter" ref="a75291ea84d417728630d8fe213956ecb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGenSQLResultsLayer::GetSpatialFilter </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></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">OGR_L_GetSpatialFilter()</a>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>spatial filter geometry. </dd></dl>

<p>Reimplemented from <a class="el" href="classOGRLayer.html#adc3735e444204d46f517eec251712f4d">OGRLayer</a>.</p>

</div>
</div>
<a class="anchor" id="a5cbd9317fcfd788e2d65bd416d725f6d"></a><!-- doxytag: member="OGRGenSQLResultsLayer::GetSpatialRef" ref="a5cbd9317fcfd788e2d65bd416d725f6d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a> * OGRGenSQLResultsLayer::GetSpatialRef </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></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>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a8b2a10085f410aa84172eba413408c39">OGR_L_GetSpatialRef()</a>.</p>
<dl class="return"><dt><b>Returns:</b></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>References <a class="el" href="ogrsf__frmts_8h_source.html#l00085">OGRLayer::GetSpatialRef()</a>.</p>

</div>
</div>
<a class="anchor" id="a55152e648a19d47b1477a732a30f5950"></a><!-- doxytag: member="OGRGenSQLResultsLayer::ResetReading" ref="a55152e648a19d47b1477a732a30f5950" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OGRGenSQLResultsLayer::ResetReading </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reset feature reading to start on the first feature. This affects <a class="el" href="classOGRGenSQLResultsLayer.html#a017e409c228f5182bd71bb0053206496">GetNextFeature()</a>.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#ab0383004bf637171648a9d03a80f15a4">OGR_L_ResetReading()</a>. </p>

<p>Implements <a class="el" href="classOGRLayer.html#aad0f2cd7f0587584b8f382c6a913583c">OGRLayer</a>.</p>

<p>References <a class="el" href="classOGRLayer.html#aad0f2cd7f0587584b8f382c6a913583c">OGRLayer::ResetReading()</a>, <a class="el" href="ogrlayer_8cpp_source.html#l00269">OGRLayer::SetAttributeFilter()</a>, and <a class="el" href="ogrlayer_8cpp_source.html#l00613">OGRLayer::SetSpatialFilter()</a>.</p>

</div>
</div>
<a class="anchor" id="ab083e809dadb0aa6467cccd5a4dda625"></a><!-- doxytag: member="OGRGenSQLResultsLayer::SetNextByIndex" ref="ab083e809dadb0aa6467cccd5a4dda625" args="(long nIndex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRErr OGRGenSQLResultsLayer::SetNextByIndex </td>
          <td>(</td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>nIndex</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></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="classOGRGenSQLResultsLayer.html#a017e409c228f5182bd71bb0053206496">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="classOGRGenSQLResultsLayer.html#a017e409c228f5182bd71bb0053206496">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="classOGRGenSQLResultsLayer.html#ab083e809dadb0aa6467cccd5a4dda625">SetNextByIndex()</a> efficiently implemented. In all other cases the default implementation which calls <a class="el" href="classOGRGenSQLResultsLayer.html#a55152e648a19d47b1477a732a30f5950">ResetReading()</a> and then calls <a class="el" href="classOGRGenSQLResultsLayer.html#a017e409c228f5182bd71bb0053206496">GetNextFeature()</a> nIndex times is used. To determine if fast seeking is available on the current layer use the <a class="el" href="classOGRGenSQLResultsLayer.html#a2feae7697e868fb6862c8f2b9ed1c7e8">TestCapability()</a> method with a value of OLCFastSetNextByIndex.</p>
<p>This method is the same as the C function OGR_L_SetNextByIndex().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>nIndex</em>&nbsp;</td><td>the index indicating how many steps into the result set to seek.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></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>References <a class="el" href="ogrlayer_8cpp_source.html#l00355">OGRLayer::SetNextByIndex()</a>.</p>

</div>
</div>
<a class="anchor" id="a2feae7697e868fb6862c8f2b9ed1c7e8"></a><!-- doxytag: member="OGRGenSQLResultsLayer::TestCapability" ref="a2feae7697e868fb6862c8f2b9ed1c7e8" args="(const char *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int OGRGenSQLResultsLayer::TestCapability </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>pszCap</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></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="classOGRGenSQLResultsLayer.html#a6c318023a60caf1b681e6519c2e33ba3">GetFeature()</a> method is implemented in an optimized way for this layer, as opposed to the default implementation using <a class="el" href="classOGRGenSQLResultsLayer.html#a55152e648a19d47b1477a732a30f5950">ResetReading()</a> and <a class="el" href="classOGRGenSQLResultsLayer.html#a017e409c228f5182bd71bb0053206496">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="classOGRLayer.html#aaa1e32016f481596a55e1d988a15a067">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="classOGRLayer.html#a681139bfd585b74d7218e51a32144283">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 it's 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="classOGRLayer.html#a74c796d4ce712e9a78df6042eeb8a91a">OGRLayer::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="classOGRLayer.html#a3be658ddb5b33d1ed95c31286774bbd2">OGRLayer::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="classOGRGenSQLResultsLayer.html#ab083e809dadb0aa6467cccd5a4dda625">SetNextByIndex()</a> call efficiently, otherwise FALSE.</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">OGR_L_TestCapability()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pszCap</em>&nbsp;</td><td>the name of the capability to test.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></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>References <a class="el" href="classOGRLayer.html#aeedbda1a62f9b89b8e5f24332cf22286">OGRLayer::TestCapability()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="ogr__gensql_8h_source.html">ogr_gensql.h</a></li>
<li>ogr_gensql.cpp</li>
</ul>
</div>
<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.6.2-20100208.
</body>
</html>