Method GeographyFromText
- Namespace
- YndigoBlue.Velocity.Utils
- Assembly
- YndigoBlue.Velocity.dll
GeographyFromText(string)
Creates a spherical geography from Well-Known Text (WKT) representation.
public static Geography GeographyFromText(string wkt)
Parameters
wktstringThe Well-Known Text string representing the geography.
Returns
- Geography
A Geography object representing data on Earth's curved surface.
Remarks
This method creates geographies for ellipsoidal (spherical) coordinate systems, typically used for latitude/longitude data. Geography calculations account for Earth's curvature, providing accurate distances and areas for global-scale spatial operations.
GeographyFromText<T>(string)
Creates a strongly-typed spherical geography from Well-Known Text (WKT) representation.
public static T GeographyFromText<T>(string wkt) where T : Geometry
Parameters
wktstringThe Well-Known Text string representing the geography.
Returns
- T
A Geography's underlying geometry cast to the specified type.
Type Parameters
TThe specific geometry type to return (Point, LineString, Polygon, etc.).
Remarks
This generic method allows retrieving a specific geometry type from the WKT string, such as Point, LineString, or Polygon, while maintaining the geography's spherical calculation context.