[Qgis-user] Buffer segments to approximate

Ludovic Granjon ludovic.granjon at wanadoo.fr
Tue Nov 19 10:09:47 PST 2013


Dear Andreas, Horst
Thanks a lot for your answers, it's perfect.
Maybe it could be interesting to insert this kind of things in the 
documentation ?
Ludovic

Le 19/11/2013 17:29, Horst Düster a écrit :
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Ludovic
>
> The number of segments depends on the exactness of the results you
> expect. If you create a circle buffer around a point with radius of 1
> the area of the circle will running against PI with increasing number of
> segments. Now you have to decide how many digits of PI are expected as
> exact.
>
>
> mPoint = QgsGeometry().fromPoint(QgsPoint(0,0))
> for i in range(100):
>      circle = mPoint.buffer(1,i+1)
>      print str(i)+"  "+str(circle.area())
>
>
> All the best
> Horst
>
>   
>
> Dr. Horst Düster
> Kappasys
> Alte Bernstrasse 13
> CH-4500 Solothurn
>
> Tel.: +41 (0) 32 514 00 40
> Mobil: +41 (0) 76 408 51 06
> eMail: horst.duester at kappasys.ch
> skype: horstduester
> Twitter: moazagotl
> Web: www.kappasys.ch
>
> qgiscloud.com - The easiest way to publish your maps
>
> Am 19.11.2013 17:07, schrieb Andreas Neumann:
>> Hi,
>>
>> Buffers for points are round. There are also round corners for
> line/polygon buffers, depending on the linecap styles and line join
> styles. QGIS and simple features can only display straight lines. The
> number of the segements to approximate means the higher the number, the
> more vertices you will have for a circle approximation.
>> See also http://postgis.net/docs/manual-2.1/ST_Buffer.html as an
> explanation for buffer styles and segments.
>> Andreas
>>
>> Am 2013-11-19 14:57, schrieb ludo:
>>> Hi all
>>>
>>> Is there anyone could tell me what is "segments to approximate" in the
>>> buffer tool ?
>>>
>>> I know that if I increase this value, there's more nodes on my buffer
>>> but I don't know what is it exactly and how we can choose this value.
>>>
>>> Thanks
>>>
>>> Regards
>>>
>>> Ludovic
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJSi5HwAAoJENxaj+NbOI6Sn+wIALBPHd0u2rGP+y4wlgP7OUBp
> 6qVhZNXQiklvaXS4iPQL0Q1MBAb1ywVmeXHsCPu7N4wD9LphoBlHpS0MgaeAN7xp
> ujM1ertLny1dxkDLSJB+OefJgQs2irAMEO5j0n6Kg+r2UBRsMkbTH8SO/lFKEy79
> C6NbOCUQ6wp9s/FLk1EzyjN8RbDxhyLGvnRIc6PasJ8W/PCO8KgwMyDu6iVSSd5C
> 6nZOkCbX/Hxlqu0ZrSoU4PGIXP56ZgJd0yCxkKDRfJc6FdAzBJK1VnIroiZNtwxi
> AI1R7Sz8jD6SGg+tIo9SNz4IgbWUGocRMwfbihDjxfl0TNPs6LQ6nRALbBM0CCo=
> =g/0H
> -----END PGP SIGNATURE-----
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20131119/3ad20f0e/attachment.html>


More information about the Qgis-user mailing list