Circle
Synopsis
Converts circle shape definitions to approximate polygons.
Schema
circle:
error_distance: <numeric>
field: <ident>
shape_type: <shape>
description: <text>
if: <script>
ignore_failure: <boolean>
ignore_missing: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
target_field: <ident>
Configuration
Field | Required | Default | Description |
---|---|---|---|
error_distance | Y | The difference between the polygon's center to the sides and the circle's radius. This is measured in meters with geo_shape , but unitless for shape | |
field | Y | Field containing the circle to be converted. A WKT string or a GeoJSON map | |
shape_type | Y | Field mapping type to use for conversion: geo_shape or shape | |
description | N | - | Explanatory text |
if | N | - | Condition to run |
ignore_failure | N | false | See Handling Failures |
ignore_missing | N | ||
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
target_field | N | - | Field to assign the converted shape to. If omitted, the circle is converted in place |
Details
The radius can be specified in the following units: cm
ft
in
km
m
(default) mi
mm
nmi
yd
The processor automatically calculates the optimal number of points to use when approximating the circle as a polygon based on the radius
and error_distance
parameters. The number of points is capped at 1000 for performance.
attention
Circles containing poles cannot be converted.
Examples
Custom
Center coordinates and radius... |
|
are converted to a polygon: |
|
WKT
WKT circle definition... |
|
is converted to a GeoJSON polygon: |
|
GeoJSON
GeoJSON circle definition... |
|
is converted to a GeoJSON polygon: |
|