You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for geo_shape represented as Well-Known Text (WKT) (#3377)
* Add support for well known text (wkt) to geo bounding box queries
* Move geo_shape queries into Tests project
This commit moves the geo_shape queries into the Test project.
Missed in the Tests refactoring
* Add support for Z values to GeoCoordinate
* Add support for WKT geo shapes
This commit adds support for Well-Known Text (WKT) representations
of geo_shape. The extent of the implementation is only as far as is
required by the WKT support in Elasticsearch.
Deserialize from WKT to IGeoShape types. The format from which
the shape is deserialized is assigned to an internal format property
on the concrete implementations of GeoShape as the intention is
not to expose this as a property on the IGeoShape interface. The format
is assigned to the instance so that the IGeoShape instance is
serialized to the same format if indexed again.
GeoWKTReader is a simple tokenizer implementation
for the purposes of parsing only WKT concepts that are supported
by Elasticsearch.
GeoShapeConverter now implements WriteJson because the
original format of IGeoShape now needs to be taken into account
when serializing.
Add tests for roundtrip serialization of WKT.
Closes#3256
(cherry picked from commit f31b087)
Includes line ending sensitive unit test from 0d0afdb
0 commit comments