[QGIS-Developer] LineString vs MultiLineString - QGIS2 vs QGIS 3
Matthias Kuhn
matthias at opengis.ch
Mon Jan 21 09:00:49 PST 2019
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.
Bests
On 1/21/19 5:58 PM, Paolo Cavallini wrote:
> Apparently there is a declaration of multi vs simple:
> https://www.gdal.org/drv_shapefile.html
> 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:
>> 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:
>>> 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
>>> QGIS-Developer at lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>
>> --
>> Matthias Kuhn
>> matthias at opengis.ch <mailto:matthias at opengis.ch>
>> +41 (0)76 435 67 63 <tel:+41764356763>
>> OPENGIS.ch Logo <http://www.opengis.ch>
>>
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
--
Matthias Kuhn
matthias at opengis.ch <mailto:matthias at opengis.ch>
+41 (0)76 435 67 63 <tel:+41764356763>
OPENGIS.ch Logo <http://www.opengis.ch>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190121/dae10eca/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 6671 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190121/dae10eca/attachment-0001.png>
More information about the QGIS-Developer
mailing list