# C1.WPF.Maps.ShapeReader.Read

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Maps_ShapeReader_Read_" data-uid="C1.WPF.Maps.ShapeReader.Read*">Read Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Maps_ShapeReader_Read_" data-uid="C1.WPF.Maps.ShapeReader.Read*"></a>
<h4 id="C1_WPF_Maps_ShapeReader_Read_System_IO_Stream_" data-uid="C1.WPF.Maps.ShapeReader.Read(System.IO.Stream)">Read(Stream)</h4>
<div class="markdown level1 summary"><p>Read shape file data from stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Dictionary&lt;VectorItemBase, C1ShapeAttributes&gt; Read(Stream stream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Read(stream As Stream) As Dictionary(Of VectorItemBase, C1ShapeAttributes)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>Stream that contains ShapeFile data.</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.dictionary-2">Dictionary</a>&lt;<a class="xref" href="C1.WPF.Maps.VectorItemBase.html">VectorItemBase</a>, <a class="xref" href="C1.WPF.Maps.C1ShapeAttributes.html">C1ShapeAttributes</a>&gt;</td>
      <td><p>Dictionary of vector objects and shape attribute objects for C1VectorLayer.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Maps_ShapeReader_Read_" data-uid="C1.WPF.Maps.ShapeReader.Read*"></a>
<h4 id="C1_WPF_Maps_ShapeReader_Read_System_IO_Stream_System_IO_Stream_" data-uid="C1.WPF.Maps.ShapeReader.Read(System.IO.Stream,System.IO.Stream)">Read(Stream, Stream)</h4>
<div class="markdown level1 summary"><p>Read shape file and dbf datas from stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Dictionary&lt;VectorItemBase, C1ShapeAttributes&gt; Read(Stream stream, Stream dbfStream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Read(stream As Stream, dbfStream As Stream) As Dictionary(Of VectorItemBase, C1ShapeAttributes)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>Stream that contains ShapeFile data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">dbfStream</span></td>
      <td><p>Stream that contains DBF data.</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.dictionary-2">Dictionary</a>&lt;<a class="xref" href="C1.WPF.Maps.VectorItemBase.html">VectorItemBase</a>, <a class="xref" href="C1.WPF.Maps.C1ShapeAttributes.html">C1ShapeAttributes</a>&gt;</td>
      <td><p>Dictionary of vector objects and shape attribute objects for C1VectorLayer.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Maps_ShapeReader_Read_" data-uid="C1.WPF.Maps.ShapeReader.Read*"></a>
<h4 id="C1_WPF_Maps_ShapeReader_Read_System_Byte___" data-uid="C1.WPF.Maps.ShapeReader.Read(System.Byte[])">Read(byte[])</h4>
<div class="markdown level1 summary"><p>Read shape file data from byte array.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Dictionary&lt;VectorItemBase, C1ShapeAttributes&gt; Read(byte[] content)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Read(content As Byte()) As Dictionary(Of VectorItemBase, C1ShapeAttributes)</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.byte">byte</a>[]</td>
      <td><span class="parametername">content</span></td>
      <td><p>Byte array that contains ShapeFile data.</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.dictionary-2">Dictionary</a>&lt;<a class="xref" href="C1.WPF.Maps.VectorItemBase.html">VectorItemBase</a>, <a class="xref" href="C1.WPF.Maps.C1ShapeAttributes.html">C1ShapeAttributes</a>&gt;</td>
      <td><p>dictionary of vector objects and shape attribute objects for C1VectorLayer.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Maps_ShapeReader_Read_" data-uid="C1.WPF.Maps.ShapeReader.Read*"></a>
<h4 id="C1_WPF_Maps_ShapeReader_Read_System_Byte___System_Byte___" data-uid="C1.WPF.Maps.ShapeReader.Read(System.Byte[],System.Byte[])">Read(byte[], byte[])</h4>
<div class="markdown level1 summary"><p>Read shape file and dbf datas from byte array.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Dictionary&lt;VectorItemBase, C1ShapeAttributes&gt; Read(byte[] content, byte[] dbfContent)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Read(content As Byte(), dbfContent As Byte()) As Dictionary(Of VectorItemBase, C1ShapeAttributes)</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.byte">byte</a>[]</td>
      <td><span class="parametername">content</span></td>
      <td><p>Byte array that contains ShapeFile data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</td>
      <td><span class="parametername">dbfContent</span></td>
      <td><p>Byte array that contains DBF data.</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.dictionary-2">Dictionary</a>&lt;<a class="xref" href="C1.WPF.Maps.VectorItemBase.html">VectorItemBase</a>, <a class="xref" href="C1.WPF.Maps.C1ShapeAttributes.html">C1ShapeAttributes</a>&gt;</td>
      <td><p>dictionary of vector objects and shape attribute objects for C1VectorLayer.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
