Jason Fehr created IMPALA-15270:
-----------------------------------

             Summary: Implement Geospatial ST_Buffer Function Using Boost
                 Key: IMPALA-15270
                 URL: https://issues.apache.org/jira/browse/IMPALA-15270
             Project: IMPALA
          Issue Type: Improvement
    Affects Versions: Impala 5.0.0
            Reporter: Jason Fehr
            Assignee: Jason Fehr


Move the implementation of the ST_Buffer geospatial function from Java to 
Boost's buffer() geospatial function.  Also add a third and fourth parameter to 
the function:

*Parameter 3:*  use_spheroid -- boolean indicating if the return should use the 
spheroidal buffer polygon for more accurate representation over the Earth

*Parameter 4:*  buffer_style -- string containing space-separated key-value 
pairs that control the returned buffer polygon.  The following keys are allowed:
    - quad_segs=# : Number of line segments utilized to approximate a quarter 
circle (default is 8).
    - endcap=round|flat: End cap style (default is round). butt is an accepted 
synonym for flat.
    - join=round|mitre: Join style (default is round). miter is an accepted 
synonym for mitre.
    - mitre_limit=#.# : mitre ratio limit and it only affects mitred join 
style. miter_limit is an accepted synonym for mitre_limit.
    - side=both|left|right : Defaults to both. Setting left or right enables a 
single-sided buffer operation on the geometry, with the buffered side aligned 
according to the direction of the line. This functionality is specific to 
LINESTRING geometry and has no impact on POINT or POLYGON geometries.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to