Class Feature
A GeoJSON feature.
Inheritance
System.Object
Feature
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Elements.GeoJSON
Assembly: Hypar.Elements.dll
Syntax
public class Feature
Constructors
Feature(Geometry, Dictionary<String, Object>)
Construct a feature.
Declaration
public Feature(Geometry geometry, Dictionary<string, object> properties)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geometry | |
System.Collections.Generic.Dictionary<System.String, System.Object> | properties |
Properties
BBox
The bounding box of the feature.
Declaration
[JsonProperty("bbox", NullValueHandling = NullValueHandling.Ignore)]
public IEnumerable<double> BBox { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Double> |
Geometry
The geometry of the feature.
Declaration
[JsonProperty("geometry")]
[JsonConverter(typeof(GeometryConverter))]
public Geometry Geometry { get; set; }
Property Value
Type | Description |
---|---|
Geometry |
Properties
All properties of the feature.
Declaration
[JsonProperty("properties", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary<string, object> Properties { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Object> |
Type
The type of the feature.
Declaration
[JsonProperty("type")]
public string Type { get; }
Property Value
Type | Description |
---|---|
System.String |