RingN (geography Data Type)
Returns the specified ring of the
instance: geography 1 ≤ n ≤ NumRings().
expression between 1 and the number of rings in a int instance. polygon
SQL Server return type:
CLR return type:
If the value of the ring index
is less than 1, this method throws an n The ring index value must be greater than or equal to 1 and should be less than or equal to the number returned by ArgumentOutOfRangeException. NumRings().
This example creates a
Polygon instance with two rings and returns the second ring.
DECLARE @g geography;
SET @g = geography::STGeomFromText('POLYGON((-122.358 47.653, -122.348 47.649, -122.348 47.658, -122.358 47.658, -122.358 47.653), (-122.357 47.654, -122.357 47.657, -122.349 47.657, -122.349 47.650, -122.357 47.654))', 4326);
Did you find this helpful?
( 1500 characters remaining)
Thank you for your feedback