title: OpenLayers with custom polygons: problems with ol.geom.LinearRing
body: <p>I´m converting a simple ASP.NET application from OpenLayers 2 to <strong>OpenLayers 3</strong>. </p>
  
  <p>This applications makes use of a custom-defined Vector Layer - i.e. a Vector object that I fill up with my custom multipolygons. I basically call a stored procedure and I fill a variable called "polyline", based on which I should be able to create my <strong>ol.geom.LinearRing</strong> object.</p>
  
  <p>The problem is that, by creating the LinearString object, I get the following error:</p>
  
  <blockquote>
    <p>AssertionError: Failure: unsupported stride: undefined</p>
  </blockquote>
  
  <p>here is my code: </p>
  
  <pre><code>for (var i in polyline)
  {
      var coord = polyline[i];
      var point = new ol.geom.Point([coord.x, coord.y]).transform("EPSG:4326", "EPSG:900913"); 
      sitePoints.push(point);
  }
  linearRing = new ol.geom.LinearRing(sitePoints);
  </code></pre>
  
  <p>I´ve also tried to explicitly specify the <strong>GeometryLayout</strong>, till now with no results.</p>
  
  <pre><code>linearRing = new ol.geom.LinearRing(sitePoints, ol.geom.GeometryLayout.XY);
  </code></pre>
  
  <p>By manually checking the code and surfing the web I´ve realized the problem might be in a bug in the <code>setCoordinates()</code> function of the <code>ol.js</code> library (I´m currently using <code>ol-debug.js</code> v.3.5.0). But I have no idea how to fix it / which workaround I could make us of.</p>
  
  <p>Any help would be warmly appreciated.</p>
  
  <p>g4lvuz</p>