Re: [gdal-dev] Buffering Right and Buffering Left Using Gdal/OGR

2014-12-30 Thread Jukka Rahkonen
Pratap Chelamilla amigooptima.in> writes: > > > Hi, > I am trying to buffer polyline to its right / left , Is there any way to buffer right/left using GDAL/OGR.OGRGeometry *bufGeometry = geometry->Buffer(buffer); > I have tried providing buffer value with positive and negative, but una

Re: [gdal-dev] Buffering Right and Buffering Left Using Gdal/OGR

2014-12-30 Thread Ari Jolma
Dear Pratap, You're really using GEOS with GDAL just as a middleware, so perhaps you'd better try GEOS or PostGIS lists. I don't think there is a simple solution to this problem, you might try perhaps to extend the line and make a polygon out of it and then do an intersection with the buffer(?

Re: [gdal-dev] Buffering Right and Buffering Left Using Gdal/OGR

2014-12-29 Thread Paul Meems
Hi Pratap, You need to use BufferParameters. Then you can set SingleSided to true. Here's some code we use in MapWinGIS: GEOSBufferParams_create(); GEOSBufferParams_setSingleSided(); GEOSBufferWithParams(); I'm not sure if you can use the above code, I'm not a C++ developer ;) But it should give

[gdal-dev] Buffering Right and Buffering Left Using Gdal/OGR

2014-12-28 Thread Pratap Chelamilla
*Hi,* *I am trying to buffer polyline to its right / left , Is there any way to buffer right/left using GDAL/OGR. OGRGeometry *bufGeometry = geometry->Buffer(buffer);* *I have tried providing buffer value with positive and negative, but unable to see any buffering around the polyline.Please