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 you some pointer were to look. Cheers, Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users. www.mapwindow.nl *The English presentations of the MapWindow GIS Conference 2014 are online. <http://www.slideshare.net/mapwindow>* 2014-12-29 7:12 GMT+01:00 Pratap Chelamilla < [email protected]>: > > > *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 provideus solution to solve > this problem. * > > > -- > Regards, > Pratap. > > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
