Class GeoShapeAttribute
Maps a property as a geo_shape field
Inheritance
Implements
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class GeoShapeAttribute : OpenSearchDocValuesPropertyAttributeBase, IPropertyMapping, IGeoShapeProperty, IDocValuesProperty, ICoreProperty, IProperty, IFieldMapping
Constructors
| Edit this page View SourceGeoShapeAttribute()
Declaration
public GeoShapeAttribute()
Properties
| Edit this page View SourceCoerce
Should the data be coerced into becoming a valid geo shape (for instance closing a polygon)
Declaration
public bool Coerce { get; set; }
Property Value
Type | Description |
---|---|
bool |
IgnoreMalformed
If true
, malformed geojson shapes are ignored. If false (default),
malformed geojson shapes throw an exception and reject the whole document.
Declaration
public bool IgnoreMalformed { get; set; }
Property Value
Type | Description |
---|---|
bool |
IgnoreZValue
If true (default) three dimension points will be accepted (stored in source) but only latitude and longitude values will be indexed; the third dimension is ignored. If false, geo-points containing any more than latitude and longitude (two dimensions) values throw an exception and reject the whole document.
Declaration
public bool IgnoreZValue { get; set; }
Property Value
Type | Description |
---|---|
bool |
Orientation
Defines how to interpret vertex order for polygons and multipolygons. Defaults to CounterClockWise
Declaration
public GeoOrientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
GeoOrientation |
Strategy
Defines the approach for how to represent shapes at indexing and search time. It also influences the capabilities available so it is recommended to let OpenSearch set this parameter automatically.
Declaration
public GeoStrategy Strategy { get; set; }
Property Value
Type | Description |
---|---|
GeoStrategy |