[Qgis-user] Fwd: different buffer distance for each side
Pedro Venâncio
pedrongvenancio at gmail.com
Mon Dec 19 15:39:10 PST 2016
Hi Azzurra,
Are you sure that you aren't using Offset Curve (ST_OffsetCurve) operation,
instead of Singe Side Buffer (ST_SingleSidedBuffer) operation?
By the way, Offset Curve operation is broken in QGIS 2.18.x. If you want,
you can overwrite
../python/plugins/processing/algs/gdal/ogr2ogronesidebuffer.py file by the
one attached to this email.
This problem was already fixed in master by Alexander Bruy, using a
different approach than mine, spliting the operations. I think this change
should be backported Alexander, what you think? Or should I make a pull
request to QGIS 2.18.x with this change on ogr2ogronesidebuffer?
Best regards,
Pedro Venâncio
2016-12-19 21:44 GMT+00:00 Azzurra Lentini <azzurralentini at gmail.com>:
> Thanks Nyall.
>
> I dont know why but GDAL SINGLE SIDED BUFFER it doesnt work really well.
> The result of this buffer is a line and not a polygone (the line is the
> same of the input file!!)
>
> I just put my input file and 150 m for the distance buffer for the left
> side.
> Thanks,
> A.L.
>
>
> 2016-12-19 20:19 GMT+01:00 Nyall Dawson <nyall.dawson at gmail.com>:
>
>>
>>
>> On 20 Dec 2016 05:06, "Azzurra Lentini" <azzurralentini at gmail.com> wrote:
>>
>> Dear all I have a layer shapefile lines with around 30 lines.
>>
>> I need a buffer of one of these lines with 2 different values of buffer
>> distance: 150 m on the left and 30 m on the right.
>>
>> Which kind of buffer option can I use??
>>
>> I know only single sided buffers but with this option I need to repeat
>> the buffer for every side.
>>
>>
>> Buffer the left and right sides separately using single sided buffer,
>> then merge the resulting output and dissolve them based on a unique
>> identifier.
>>
>> Nyall
>>
>>
>>
>>
>> Thanks to all, A.L:
>>
>> --
>> Dr. Hydrogeologist
>> AZZURRA LENTINI
>> Expert of evaluation environmental hazards
>> GIS application
>> Haity Mobile Tel: 0050946057393 <+509%2046%2005%207393>
>> ++++++++++++++++++++++++++
>> Italy Mobile Tel.: **(39) 338 24 40 676
>> ++++++++++++++++++++++++++
>> SKYPE azzurrahydro
>> ++++++++++++++++++++++++++
>> azzurralentini at gmail.com
>> ++++++++++++++++++++++++++
>> *Par respect pour l'environnement,*
>>
>> *n'imprimez ce mail qu'en cas d'absolue nécessité*
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>>
>
>
> --
> Dr. Hydrogeologist
> AZZURRA LENTINI
> Expert of evaluation environmental hazards
> GIS application
> Haity Mobile Tel: 0050946057393 <+509%2046%2005%207393>
> ++++++++++++++++++++++++++
> Italy Mobile Tel.: **(39) 338 24 40 676
> ++++++++++++++++++++++++++
> SKYPE azzurrahydro
> ++++++++++++++++++++++++++
> azzurralentini at gmail.com
> ++++++++++++++++++++++++++
> *Par respect pour l'environnement,*
>
> *n'imprimez ce mail qu'en cas d'absolue nécessité*
>
>
>
>
>
>
>
>
>
> --
> Dr. Hydrogeologist
> AZZURRA LENTINI
> Expert of evaluation environmental hazards
> GIS application
> Haity Mobile Tel: 0050946057393 <+509%2046%2005%207393>
> ++++++++++++++++++++++++++
> Italy Mobile Tel.: **(39) 338 24 40 676
> ++++++++++++++++++++++++++
> SKYPE azzurrahydro
> ++++++++++++++++++++++++++
> azzurralentini at gmail.com
> ++++++++++++++++++++++++++
> *Par respect pour l'environnement,*
>
> *n'imprimez ce mail qu'en cas d'absolue nécessité*
>
>
>
>
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20161219/e01e32d8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ogr2ogronesidebuffer.py
Type: text/x-python
Size: 6586 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20161219/e01e32d8/attachment.py>
More information about the Qgis-user
mailing list