[Qgis-user] feature.geometry().asPolyline()

Raymond Nijssen r.nijssen at terglobo.nl
Sun Apr 23 14:01:02 PDT 2017


use in that case:

feature.geometry().asMultiPolyline()


http://qgis.osgeo.org/api/classQgsGeometry.html#a34cd2f4773f99402fdeb4a9874804895



On 22-04-17 11:02, phi73 at gmx.de wrote:
> Hi
>
> i would like to add that i have found out, that all other are LineString
> but this
> one is MultiLineString
>
> see the screen
>
>
>
> thx
>
>
> On 22. Apr. 2017, 10:42 +0200, phi73 at gmx.de, wrote:
>> Hello
>>
>> i have several map supplier loaded to my QGIS and check them through.
>> Except one al bringing back the Polyline  with the command
>>
>> feature.geometry().asPolyline()
>>
>> But one just results in []
>>
>> Now i am struggling how to debug the best or what could be the reason
>> for ;-)
>>
>> thx
>> pat
>>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>

-- 
Terglobo
Fahrenheitstraat 1
5223 BJ 's-Hertogenbosch
06 25 31 49 83



More information about the Qgis-user mailing list