# C1.FlexMap.KmlReader.Read

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_FlexMap_KmlReader_Read_" data-uid="C1.FlexMap.KmlReader.Read*">Read Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_FlexMap_KmlReader_Read_" data-uid="C1.FlexMap.KmlReader.Read*"></a>
<h4 id="C1_FlexMap_KmlReader_Read_System_IO_Stream_" data-uid="C1.FlexMap.KmlReader.Read(System.IO.Stream)">Read(Stream)</h4>
<div class="markdown level1 summary"><p>Reads spatial data from kml 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 IEnumerable&lt;GeoGeometryRecord&gt; Read(Stream stream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Read(stream As Stream) As IEnumerable(Of GeoGeometryRecord)</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 KML 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.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="C1.FlexMap.GeoGeometryRecord.html">GeoGeometryRecord</a>&gt;</td>
      <td><p>The collection of geometry records.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_FlexMap_KmlReader_Read_System_IO_Stream__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The record data contains the following attributes.</p>
<ul><li>name: the item name.</li><li>style-fillcolor: the fill color style with format "aabbggrr".</li><li>style-strokecolor: the stroke color style with format "aabbggrr".</li><li>&lt;SimpleField-Name&gt;: the attribute defined in &lt;SimpleField&gt; node.</li></ul>
</div>
</div>
