Skip to content

Commit c61c76b

Browse files
authored
Merge pull request #20722 from nikolapeja6/spatial-9
Specifying language for code blocks
2 parents 3e2a1d5 + 01c41bf commit c61c76b

8 files changed

Lines changed: 14 additions & 14 deletions

‎docs/t-sql/spatial-geography/stmpolyfromtext-geography-data-type.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ STMPolyFromText ( 'multipolygon_tagged_text' , SRID )
5353
## Examples
5454
The following example uses `STMPolyFromText()` to create a `geography` instance.
5555

56-
```
56+
```sql
5757
DECLARE @g geography;
5858
SET @g = geography::STMPolyFromText('MULTIPOLYGON(((-122.358 47.653, -122.348 47.649, -122.358 47.658, -122.358 47.653)), ((-122.341 47.656, -122.341 47.661, -122.351 47.661, -122.341 47.656)))', 4326);
5959
SELECT @g.ToString();

‎docs/t-sql/spatial-geography/stmpolyfromwkb-geography-data-type.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ STMPolyFromWKB ( 'WKB_multipolygon' , SRID )
5050
## Examples
5151
The following example uses `STMPolyFromWKB()` to create a `geography` instance.
5252

53-
```
53+
```sql
5454
DECLARE @g geography;
5555
SET @g = geography::STMPolyFromWKB(0x01060000000200000001030000000100000004000000F4FDD478E9965EC0DD24068195D3474083C0CAA145965EC0508D976E12D34740F4FDD478E9965EC04E62105839D44740F4FDD478E9965EC0DD24068195D3474001030000000100000004000000E7FBA9F1D2955EC08716D9CEF7D34740E7FBA9F1D2955EC0F853E3A59BD447405839B4C876965EC0F853E3A59BD44740E7FBA9F1D2955EC08716D9CEF7D34740, 4326);
5656
SELECT @g.ToString();

‎docs/t-sql/spatial-geography/stnumcurves-geography-data-type.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,20 @@ ms.author: mlandzic
5050
### A. Using STNumCurves() on a CircularString instance
5151
The following example shows how to get the number of curves in a `CircularString` instance:
5252

53-
```
53+
```sql
5454
DECLARE @g geography;
5555
SET @g = geography::Parse('CIRCULARSTRING(-122.358 47.653, -122.348 47.649, -122.348 47.658, -122.358 47.658, -122.358 47.653)');
5656
SELECT @g.STNumCurves();
57-
```
57+
```
5858

5959
### B. Using STNumCurves() on a CompoundCurve instance
6060
The following example uses `STNumCurves()` to return the number of curves in a `CompoundCurve` instance.
6161

62-
```
62+
```sql
6363
DECLARE @g geography;
6464
SET @g = geography::Parse('COMPOUNDCURVE(CIRCULARSTRING(-122.358 47.653, -122.348 47.649, -122.348 47.658, -122.358 47.658, -122.358 47.653))');
6565
SELECT @g.STNumCurves();
66-
```
66+
```
6767

6868
## See Also
6969
[Spatial Data Types Overview](../../relational-databases/spatial/spatial-data-types-overview.md)

‎docs/t-sql/spatial-geography/stnumgeometries-geography-data-type.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ms.author: mlandzic
4444
## Examples
4545
The following example creates a `MultiPoint` instance and uses `STNumGeometries()` to find out how many **geometries** the instance contains.
4646

47-
```
47+
```sql
4848
DECLARE @g geography;
4949
SET @g = geography::STGeomFromText('MULTIPOINT((-122.360 47.656), (-122.343 47.656))', 4326);
5050
SELECT @g.STNumGeometries();

‎docs/t-sql/spatial-geography/stnumpoints-geography-data-type.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ms.author: mlandzic
4646
### A. Retrieving the total number of points in a LineString
4747
The following example creates a `LineString` instance and uses `STNumPoints()` to determine how many points were used in the description of the instance.
4848

49-
```
49+
```sql
5050
DECLARE @g geography;
5151
SET @g = geography::STGeomFromText('LINESTRING(-122.360 47.656, -122.343 47.656)', 4326);
5252
SELECT @g.STNumPoints();
@@ -55,7 +55,7 @@ SELECT @g.STNumPoints();
5555
### B. Retrieving the total number of points in a GeometryCollection
5656
The following example returns a sum of the points for all elements in the `GeometryCollection`.
5757

58-
```
58+
```sql
5959
DECLARE @g geography = 'GEOMETRYCOLLECTION(CIRCULARSTRING(-122.358 47.653, -122.348 47.649, -122.348 47.658, -122.358 47.658, -122.358 47.653)
6060
,CURVEPOLYGON(CIRCULARSTRING(-122.358 47.653, -122.348 47.649, -122.348 47.658, -122.358 47.658, -122.358 47.653)))';
6161
SELECT @g.STNumPoints();
@@ -64,10 +64,10 @@ SELECT @g.STNumPoints();
6464
### C. Returning the number of points in a CompoundCurve
6565
The following example returns the number of points in a CompoundCurve instance. The query returns 5 instead of 6 because STNumPoints() only counts the connecting point between the segments once.
6666

67-
```
67+
```sql
6868
DECLARE @g geography = 'COMPOUNDCURVE(CIRCULARSTRING(-122.358 47.653, -122.348 47.649, -122.348 47.658),( -122.348 47.658, -121.56 48.12, -122.358 47.653))'
6969
SELECT @g.STNumPoints();
70-
```
70+
```
7171

7272
## See Also
7373
[OGC Methods on Geography Instances](../../t-sql/spatial-geography/ogc-methods-on-geography-instances.md)

‎docs/t-sql/spatial-geography/stpointfromtext-geography-data-type.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ STPointFromText ( 'point_tagged_text' , SRID )
5353
## Examples
5454
The following example uses `STPointFromText()` to create a `geography` instance.
5555

56-
```
56+
```sql
5757
DECLARE @g geography;
5858
SET @g = geography::STPointFromText('POINT(-122.34900 47.65100)', 4326);
5959
SELECT @g.ToString();

‎docs/t-sql/spatial-geography/stpointfromwkb-geography-data-type.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ STPointFromWKB ( 'WKB_point' , SRID )
5353
## Examples
5454
The following example uses `STPointFromWKB()` to create a `geography` instance.
5555

56-
```
56+
```sql
5757
DECLARE @g geography;
5858
SET @g = geography::STPointFromWKB(0x010100000017D9CEF753D347407593180456965EC0, 4326);
5959
SELECT @g.ToString();

‎docs/t-sql/spatial-geography/stpointn-geography-data-type.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ms.author: mlandzic
5656
## Examples
5757
The following example creates a `LineString` instance and uses `STPointN()` to retrieve the second point in the description of the instance.
5858

59-
```
59+
```sql
6060
DECLARE @g geography;
6161
SET @g = geography::STGeomFromText('LINESTRING(-122.360 47.656, -122.343 47.656)', 4326);
6262
SELECT @g.STPointN(2).ToString();

0 commit comments

Comments
 (0)