SQL Flow Field Guide

geography.CurveToLineWithTolerance

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

spatial method CurveToLineWithTolerance (instance.CurveToLineWithTolerance(...))

What changes

Input
spatial instance (and arguments)
Output or change
geography
Return type
SQL Server return type: geography CLR return type: SqlGeography

Syntax at a glance

.CurveToLineWithTolerance( tolerance, relative )

Work example

Use geography.CurveToLineWithTolerance to linearize curved segments for a consumer that needs straight edges.

Choose tolerance for the output scale and preserve the original for precise work. Keep the geography type and SRID in the review.

Check your work A CircularString becomes a LineString; the 0.1 metre tolerance controls its approximation.

Practice SQL

Open in SQL Flow

Open the SQL for a walkthrough. Run the example in SQL Server to check its result.

SELECT c.shape.CurveToLineWithTolerance(0.1, 0).STGeometryType() AS linear_type, c.shape.CurveToLineWithTolerance(0.1, 0).STNumPoints() AS vertex_count FROM (VALUES (geography::Parse('CIRCULARSTRING(-122.358 47.653, -122.348 47.649, -122.348 47.658, -122.358 47.658, -122.358 47.653)'))) AS c(shape);

Open Microsoft Learn for full syntax, permissions, and details for your version.