Closed
Description
Feature Request
Add ability to easily index shape values defined like:
{
"type": "Circle",
"coordinates": [ 100.0, 0.0 ],
"radius": 0.5,
"properties": { "radius_units": "km" }
}
Feature Proposal
Introduce a circle
processor that converts all instances of
a circle
json definition into a geojson polygon
or linestring
.
POST /_ingest/pipeline/_simulate
{
"pipeline": {
"processors": [{
"circle": {
"field": "my_circle"
}
}
]
},
"docs" : [
{ "_source":{ "my_circle": "CIRCLE (101.3 1.2 10.0)"}}
]
}
should transform the circle into a polygon:
{
"docs" : [
{
"doc" : {
"_index" : "_index",
"_type" : "_doc",
"_id" : "_id",
"_source" : {
"my_circle" : "polygon ((101.30008964538574 1.2, 101.30008961414808 1.1999976336422478, 101.30008952045685 1.1999952689336488
....