Method GetFeature
- Namespace
- YndigoBlue.Velocity.Utils
- Assembly
- YndigoBlue.Velocity.dll
GetFeature(Result, string, bool)
Converts a Result row to a GeoJSON Feature with geometry and attributes.
public static Feature GetFeature(this Result result, string geospatialColumnName, bool isGeography = false)
Parameters
resultResultThe Result containing the row data.
geospatialColumnNamestringThe name of the column containing geometry or geography data.
isGeographyboolTrue if the column contains geography data (spherical); false for geometry (planar).
Returns
- Feature
A Feature object with the geometry and all other fields as attributes.
Remarks
This method extracts spatial data from a result row and creates a GeoJSON-compatible Feature. All columns except the geospatial column become feature attributes.