geography.STCurveToLine
spatial method STCurveToLine (instance.STCurveToLine(...))
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
.STCurveToLine()
Work example
Use geography.STCurveToLine to convert curve segments to straight segments.
Set tolerance for the target scale and retain the source when curve fidelity matters. Keep the geography type and SRID in the review.
Check your work The CircularString is approximated as a LineString with a sequence of vertices.
Practice SQL
Open in SQL FlowOpen the SQL for a walkthrough. Run the example in SQL Server to check its result.
SELECT c.shape.STCurveToLine().STGeometryType() AS linear_type, c.shape.STCurveToLine().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.