geography.Reduce
spatial method Reduce (instance.Reduce(...))
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
.Reduce ( tolerance )
Work example
Use geography.Reduce to simplify coordinate detail for lower-resolution display or transfer.
Choose tolerance in spatial units and retain the source for precise analysis. Keep the geography type and SRID in the review.
Check your work Reduce returns a simplified geography; compare its point count and boundary with the source.
Practice SQL
Open in SQL FlowOpen the SQL for a walkthrough. Run the example in SQL Server to check its result.
SELECT p.shape.Reduce(25).STGeometryType() AS reduced_type, p.shape.Reduce(25).STNumPoints() AS reduced_point_count FROM (VALUES (geography::STGeomFromText('POLYGON((-122.358 47.653, -122.348 47.649, -122.348 47.658, -122.358 47.658, -122.358 47.653))', 4326))) AS p(shape);
Open Microsoft Learn for full syntax, permissions, and details for your version.