GeoFeature Class
A feature: a geometry, its properties and its identifier, such as a country, a road or a city.
public sealed class GeoFeatureConstructors
| Name | Description |
|---|---|
| GeoFeature(GeoGeometry?, IReadOnlyDictionary<string, object?>?, string?) | Initializes a new instance of the GeoFeature class. |
GeoFeature(GeoGeometry?, IReadOnlyDictionary<string, object?>?, string?)
GeoFeature.csInitializes a new instance of the GeoFeature class.
public GeoFeature(GeoGeometry? geometry, IReadOnlyDictionary<string, object?>? properties = null, string? id = null)Parameters
geometryGeoGeometry?- The geometry, or
nullfor a feature without a location. propertiesIReadOnlyDictionary<string, object?>?- The properties, or
nullfor none. idstring?- The identifier, or
null.
Properties
| Name | Description |
|---|---|
| Geometry | Gets the geometry, or null for a feature without a location. |
| Id | Gets the identifier, or null. A numeric identifier, as GeoJSON allows, is written as text. |
| Properties | Gets the properties. The readers give a String, a Double, a Boolean or null; each format documents the other types it gives. The writers accept these types, the other numeric types, dates and times, and write the other values as their text. |
Geometry
GeoFeature.csGets the geometry, or null for a feature without a location.
public GeoGeometry? Geometry { get; }Property value
Properties
GeoFeature.csGets the properties. The readers give a String, a Double, a Boolean or null; each format documents the other types it gives. The writers accept these types, the other numeric types, dates and times, and write the other values as their text.
public IReadOnlyDictionary<string, object?> Properties { get; }