geography.EnvelopeAngle
spatial method EnvelopeAngle (instance.EnvelopeAngle(...))
What changes
- Input
- spatial instance (and arguments)
- Output or change
- float
- Return type
- SQL Server return type: float CLR return type: SqlDouble
Syntax at a glance
EnvelopeAngle( )
Work example
Use geography.EnvelopeAngle to inspect the angular span of a geography envelope.
Use this geography property with its SRID and map extent. Keep the geography type and SRID in the review.
Check your work The result is the envelope's angular span in degrees, not a distance in metres.
Practice SQL
Open in SQL FlowOpen the SQL for a walkthrough. Run the example in SQL Server to check its result.
SELECT r.shape.EnvelopeAngle() AS envelope_angle_degrees FROM (VALUES (geography::STGeomFromText('LINESTRING(-122.360 47.656, -122.343 47.656)', 4326))) AS r(shape);
Open Microsoft Learn for full syntax, permissions, and details for your version.