<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>If I understand correctly, the page states that each *feature*
      can be multi- or singletype, whereas the question here was why the
      whole *layer* is detected as multitype.</p>
    <p>Bests<br>
    </p>
    <div class="moz-cite-prefix">On 1/21/19 5:58 PM, Paolo Cavallini
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:844d9e86-91fa-c8a1-e097-d786dec5f0b5@faunalia.it">
      <pre class="moz-quote-pre" wrap="">Apparently there is a declaration of multi vs simple:
<a class="moz-txt-link-freetext" href="https://www.gdal.org/drv_shapefile.html">https://www.gdal.org/drv_shapefile.html</a>
Shapefile of type SHPT_ARC, the corresponding layer will be reported as
of type wkbLineString, but depending on the number of parts of each
geometry, the actual type of the geometry for each feature can be either
OGRLineString or OGRMultiLineString
cheers

On 21/01/19 17:43, Matthias Kuhn wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Hi Matteo,

In shapefiles, there is no LineString or Polygon, all line layers are
MultiLineString and polygon layers MultiPolygon.

Only points come in multi and non-multi versions.

Cheers

Matthias


On 1/21/19 5:31 PM, matteo wrote:
</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">Hi devs,

in QGIS 3 a shapefile is recognized as MultiLineString, while in QGIS 2
the same file is recognized as LineString. What could be the reason?

Moreover: is there and option to force to read a shapefile as LineString?

Cheers and thanks

Matteo
_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>

</pre>
        </blockquote>
        <pre class="moz-quote-pre" wrap="">-- 
Matthias Kuhn
<a class="moz-txt-link-abbreviated" href="mailto:matthias@opengis.ch">matthias@opengis.ch</a> <a class="moz-txt-link-rfc2396E" href="mailto:matthias@opengis.ch"><mailto:matthias@opengis.ch></a>
+41 (0)76 435 67 63 <tel:+41764356763>
OPENGIS.ch Logo <a class="moz-txt-link-rfc2396E" href="http://www.opengis.ch"><http://www.opengis.ch></a>

_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>

</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
</pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div class="moz-signature">
        <title></title>
        <div class="moz-signature"> <span style="text-align: left;
            color: #000000; font-family: 'Verdana', sans-serif;
            font-size: 10pt">Matthias Kuhn</span><br>
          <a href="mailto:matthias@opengis.ch" target="_blank"> <span
              style="text-align: left; color: #000000; font-family:
              'Verdana', sans-serif; font-size: 8pt">matthias@opengis.ch</span>
          </a><br>
          <span style="text-align: left; color: #000000; font-family:
            'Verdana', sans-serif; font-size: 8pt"><a
              href="tel:+41764356763">+41 (0)76 435 67 63</a></span><br>
          <div> <a href="http://www.opengis.ch"> <img
                moz-do-not-send="false"
                src="cid:part3.687C91A9.8FC24972@opengis.ch"
                alt="OPENGIS.ch Logo" width="200" height="80"></a> </div>
        </div>
      </div>
    </div>
  </body>
</html>