#28960: Implement GEOS.BufferWithStyle
-------------------------------------+-------------------------------------
Reporter: Stanislav | Owner: nobody
Karpov |
Type: New | Status: assigned
feature |
Component: GIS | Version: master
Severity: Normal | Keywords: gis, geodjango,
Triage Stage: | geos
Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hello.
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:
http://www.postgis.net/docs/ST_Buffer.html
But I found a similar method in GEOS:
{{{
# https://github.com/OSGeo/geos/blob/master/capi/geos_c.h.in#L1442
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/28960>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/048.fec3aa1fdef2d78a7011fb86fe827a40%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.