# GrapeCity.ActiveReports.Rendering.Components.Map.Data.ESRI.EsriDataDecoder.Decode

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Rendering_Components_Map_Data_ESRI_EsriDataDecoder_Decode_" data-uid="GrapeCity.ActiveReports.Rendering.Components.Map.Data.ESRI.EsriDataDecoder.Decode*">Decode Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_Components_Map_Data_ESRI_EsriDataDecoder_Decode_" data-uid="GrapeCity.ActiveReports.Rendering.Components.Map.Data.ESRI.EsriDataDecoder.Decode*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_Components_Map_Data_ESRI_EsriDataDecoder_Decode_System_String_" data-uid="GrapeCity.ActiveReports.Rendering.Components.Map.Data.ESRI.EsriDataDecoder.Decode(System.String)">Decode(string)</h4>
<div class="markdown level1 summary"><p>Decodes the data from esri data sources. Retrieves both spatial and geodataset data.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IEnumerable&lt;EsriRecord&gt; Decode(string filePath)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">filePath</span></td>
      <td><p>Esri file path.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Rendering.Components.Map.Data.ESRI.EsriRecord.html">EsriRecord</a>&gt;</td>
      <td><p>The collection of esri data source records.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Rendering_Components_Map_Data_ESRI_EsriDataDecoder_Decode_" data-uid="GrapeCity.ActiveReports.Rendering.Components.Map.Data.ESRI.EsriDataDecoder.Decode*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_Components_Map_Data_ESRI_EsriDataDecoder_Decode_System_String_System_Single_" data-uid="GrapeCity.ActiveReports.Rendering.Components.Map.Data.ESRI.EsriDataDecoder.Decode(System.String,System.Single)">Decode(string, float)</h4>
<div class="markdown level1 summary"><p>Decodes the data from esri data sources. Retrieves both spatial and geodataset data.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IEnumerable&lt;EsriRecord&gt; Decode(string filePath, float ratio)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">filePath</span></td>
      <td><p>Esri file path.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">ratio</span></td>
      <td><p>Simplification ratio</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Rendering.Components.Map.Data.ESRI.EsriRecord.html">EsriRecord</a>&gt;</td>
      <td><p>The collection of esri data source records.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Rendering_Components_Map_Data_ESRI_EsriDataDecoder_Decode_" data-uid="GrapeCity.ActiveReports.Rendering.Components.Map.Data.ESRI.EsriDataDecoder.Decode*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_Components_Map_Data_ESRI_EsriDataDecoder_Decode_System_String_System_Single_System_Action_System_Exception__" data-uid="GrapeCity.ActiveReports.Rendering.Components.Map.Data.ESRI.EsriDataDecoder.Decode(System.String,System.Single,System.Action{System.Exception})">Decode(string, float, Action&lt;Exception&gt;)</h4>
<div class="markdown level1 summary"><p>Overload for Decode(string filePath, float ratio)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IEnumerable&lt;EsriRecord&gt; Decode(string filePath, float ratio, Action&lt;Exception&gt; errorAction)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">filePath</span></td>
      <td><p>Esri file path.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">ratio</span></td>
      <td><p>Simplification ratio</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.exception">Exception</a>&gt;</td>
      <td><span class="parametername">errorAction</span></td>
      <td><p>Error callback handler function.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Rendering.Components.Map.Data.ESRI.EsriRecord.html">EsriRecord</a>&gt;</td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
