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:
m
- meters (default if none specified)cm
- centimetersmm
- millimeterskm
- kilometersin
- inchesft
- feetyd
- yardsmi
- land milesnmi
- nautical miles
note
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 Format
Using center coordinates and radius... |
|
converts to polygon: |
|
WKT Format
Using WKT circle definition... |
|
converts to GeoJSON polygon: |
|
GeoJSON Format
Using GeoJSON circle definition... |
|
converts to GeoJSON polygon: |
|
Different Units
Using kilometers for large circles... |
|
converts to large polygon: |
|