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
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(?
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
*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