1.默认buffer
geos::geom::LineSegment line = geos::geom::LineSegment(0,0,10,0);
std::unique_ptr<geos::geom::LineString> lineString = factory->createLineString({line.p0, line.p1});
std::unique_ptr<geos::geom::Geometry> geom = lineString->buffer(2);
2.quadrantSegments逐渐增大,端头逐渐变圆
quadrantSegments=0
geos::geom::LineSegment line = geos::geom::LineSegment(0,0,10,0);
std::unique_ptr<geos::geom::LineString> lineString = factory->createLineString({line.p0, line.p1});
std::unique_ptr<geos::geom::Geometry> geom = lineString->buffer(2,0);
quadrantSegments=2
geos::geom::LineSegment line = geos::geom::LineSegment(0,0,10,0);
std::unique_ptr<geos::geom::LineString> lineString = factory->createLineString({line.p0, line.p1});
std::unique_ptr<geos::geom::Geometry> geom = lineString->buffer(2,0);
quadrantSegments=3
geos::geom::LineSegment line = geos::geom::LineSegment(0,0,10,0);
std::unique_ptr<geos::geom::LineString> lineString = factory->createLineString({line.p0, line.p1});
std::unique_ptr<geos::geom::Geometry> geom = lineString->buffer(2,0);
quadrantSegments=10
geos::geom::LineSegment line = geos::geom::LineSegment(0,0,10,0);
std::unique_ptr<geos::geom::LineString> lineString = factory->createLineString({line.p0, line.p1});
std::unique_ptr<geos::geom::Geometry> geom = lineString->buffer(2,0);
3.endCapStyle变化
endCapStyle=2
endCapStyle=3