Table of Contents

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

result Result

The Result containing the row data.

geospatialColumnName string

The name of the column containing geometry or geography data.

isGeography bool

True 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.