Opened 6 years ago

Closed 6 years ago

#28960 closed New feature (fixed)

Implement GEOS.BufferWithStyle

Reported by: Stanislav Karpov Owned by: Stanislav Karpov
Component: GIS Version: dev
Severity: Normal Keywords: gis, geodjango, geos
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no



I couldn't find a method that allows to specify a style for a new polygon. For example, flat end caps. Other examples with images are available at:

But I found a similar method in GEOS:

extern GEOSGeometry GEOS_DLL *GEOSBufferWithStyle(const GEOSGeometry* g,
double width, int quadsegs, int endCapStyle, int joinStyle,
double mitreLimit);

Using flat end caps allows to significantly reduce the number of points in the polygon. For example, a segment of a straight line will only turn into a rectangle, not a polygon with rounded corners.

Change History (5)

comment:1 Changed 6 years ago by Stanislav Karpov

Owner: changed from nobody to Stanislav Karpov

comment:2 Changed 6 years ago by Sergey Fedoseev

Triage Stage: UnreviewedAccepted

comment:3 Changed 6 years ago by Tim Graham

Has patch: set
Patch needs improvement: set

PR (with comments for improvement)

comment:4 Changed 6 years ago by Stanislav Karpov

comment:5 Changed 6 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 6d794fb7:

Fixed #28960 -- Added GEOSGeometry.buffer_with_style().

Note: See TracTickets for help on using tickets.
Back to Top