Skip to content

Commit 67d457f

Browse files
committed
fixes
1 parent 395605f commit 67d457f

File tree

1 file changed

+25
-17
lines changed

1 file changed

+25
-17
lines changed

articles/stream-analytics/stream-analytics-geospatial-functions.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,20 @@ SELECT
3737
FROM input
3838
```
3939

40-
### Input Example
40+
### Input example
4141

4242
|latitude|longitude|
4343
|--------------|---------------|
4444
|3.0|-10.2|
4545
|-87.33|20.2321|
4646

47-
### Output Example
47+
### Output example
4848

4949
{"type" : "LineString", "coordinates" : [ [-10.2, 3.0], [10.0, 10.0], [10.5, 10.5] ]}
5050

5151
{"type" : "LineString", "coordinates" : [ [20.2321, -87.33], [10.0, 10.0], [10.5, 10.5] ]}
5252

53-
To learn more, visit the [CreateLineString](https://msdn.microsoft.com/en-us/azure/stream-analytics/reference/createlinestring) reference.
53+
To learn more, visit the [CreateLineString](https://msdn.microsoft.com/azure/stream-analytics/reference/createlinestring) reference.
5454

5555
## CreatePoint
5656

@@ -64,20 +64,20 @@ SELECT
6464
FROM input
6565
```
6666

67-
### Input Example
67+
### Input example
6868

6969
|latitude|longitude|
7070
|--------------|---------------|
7171
|3.0|-10.2|
7272
|-87.33|20.2321|
7373

74-
### Output Example
74+
### Output example
7575

7676
{"type" : "Point", "coordinates" : [-10.2, 3.0]}
7777

7878
{"type" : "Point", "coordinates" : [20.2321, -87.33]}
7979

80-
To learn more, visit the [CreatePoint](https://msdn.microsoft.com/en-us/azure/stream-analytics/reference/createpoint) reference.
80+
To learn more, visit the [CreatePoint](https://msdn.microsoft.com/azure/stream-analytics/reference/createpoint) reference.
8181

8282
## CreatePolygon
8383

@@ -91,20 +91,20 @@ SELECT
9191
FROM input
9292
```
9393

94-
### Input Example
94+
### Input example
9595

9696
|latitude|longitude|
9797
|--------------|---------------|
9898
|3.0|-10.2|
9999
|-87.33|20.2321|
100100

101-
### Output Example
101+
### Output example
102102

103103
{"type" : "Polygon", "coordinates" : [[ [-10.2, 3.0], [10.0, 10.0], [10.5, 10.5], [-10.2, 3.0] ]]}
104104

105105
{"type" : "Polygon", "coordinates" : [[ [20.2321, -87.33], [10.0, 10.0], [10.5, 10.5], [20.2321, -87.33] ]]}
106106

107-
To learn more, visit the [CreatePolygon](https://msdn.microsoft.com/en-us/azure/stream-analytics/reference/createpolygon) reference.
107+
To learn more, visit the [CreatePolygon](https://msdn.microsoft.com/azure/stream-analytics/reference/createpolygon) reference.
108108

109109

110110
## ST_DISTANCE
@@ -118,7 +118,7 @@ FROM Cars c
118118
JOIN Station s ON ST_DISTANCE(c.Location, s.Location) < 10 * 1000
119119
```
120120

121-
To learn more, visit the [ST_DISTANCE](https://msdn.microsoft.com/en-us/azure/stream-analytics/reference/st-distance) reference.
121+
To learn more, visit the [ST_DISTANCE](https://msdn.microsoft.com/azure/stream-analytics/reference/st-distance) reference.
122122

123123
## ST_OVERLAPS
124124
The `ST_OVERLAPS` function compares two polygons. If the polygons overlap, the function returns a 1. The function returns 0 if the polygons don't overlap.
@@ -139,7 +139,7 @@ FROM Cars c, Storm s
139139
JOIN Storm s ON ST_OVERLAPS(c.Location, s.Course)
140140
```
141141

142-
To learn more, visit the [ST_OVERLAPS](https://msdn.microsoft.com/en-us/azure/stream-analytics/reference/st-overlaps) reference.
142+
To learn more, visit the [ST_OVERLAPS](https://msdn.microsoft.com/azure/stream-analytics/reference/st-overlaps) reference.
143143

144144
## ST_INTERSECTS
145145
The `ST_INTERSECTS` function compares two LineString. If the LineString intersect, then the function returns 1. The function returns 0 if the LineString don't intersect.
@@ -152,20 +152,20 @@ SELECT
152152
FROM input
153153
```
154154

155-
### Input Example
155+
### Input example
156156

157157
|datacenterArea|stormArea|
158158
|--------------------|---------------|
159159
|{“type”:”LineString”, “coordinates”: [ [-10.0, 0.0], [0.0, 0.0], [10.0, 0.0] ]}|{“type”:”LineString”, “coordinates”: [ [0.0, 10.0], [0.0, 0.0], [0.0, -10.0] ]}|
160160
|{“type”:”LineString”, “coordinates”: [ [-10.0, 0.0], [0.0, 0.0], [10.0, 0.0] ]}|{“type”:”LineString”, “coordinates”: [ [-10.0, 10.0], [0.0, 10.0], [10.0, 10.0] ]}|
161161

162-
### Output Example
162+
### Output example
163163

164164
1
165165

166166
0
167167

168-
To learn more, visit the [ST_INTERSECTS](https://msdn.microsoft.com/en-us/azure/stream-analytics/reference/st-intersects) reference.
168+
To learn more, visit the [ST_INTERSECTS](https://msdn.microsoft.com/azure/stream-analytics/reference/st-intersects) reference.
169169

170170
## ST_WITHIN
171171
The `ST_WITHIN` function determines whether a point or polygon is within a polygon. If the polygon contains the point or polygon, the function will return 1. The function will return 0 if the point or polygon isn't located within the declared polygon.
@@ -178,17 +178,25 @@ SELECT
178178
FROM input
179179
```
180180

181-
### Input Example
181+
### Input example
182182

183183
|deliveryDestination|warehouse|
184184
|-------------------------|---------------|
185185
|{“type”:”Point”, “coordinates”: [76.6, 10.1]}|{“type”:”Polygon”, “coordinates”: [ [0.0, 0.0], [10.0, 0.0], [10.0, 10.0], [0.0, 10.0], [0.0, 0.0] ]}|
186186
|{“type”:”Point”, “coordinates”: [15.0, 15.0]}|{“type”:”Polygon”, “coordinates”: [ [10.0, 10.0], [20.0, 10.0], [20.0, 20.0], [10.0, 20.0], [10.0, 10.0] ]}|
187187

188-
### Output Example
188+
### Output example
189189

190190
0
191191

192192
1
193193

194-
To learn more, visit the [ST_WITHIN](https://msdn.microsoft.com/en-us/azure/stream-analytics/reference/st-within) reference.
194+
To learn more, visit the [ST_WITHIN](https://msdn.microsoft.com/azure/stream-analytics/reference/st-within) reference.
195+
196+
## Next steps
197+
198+
* [Introduction to Azure Stream Analytics](stream-analytics-introduction.md)
199+
* [Get started using Azure Stream Analytics](stream-analytics-real-time-fraud-detection.md)
200+
* [Scale Azure Stream Analytics jobs](stream-analytics-scale-jobs.md)
201+
* [Azure Stream Analytics Query Language Reference](https://msdn.microsoft.com/library/azure/dn834998.aspx)
202+
* [Azure Stream Analytics Management REST API Reference](https://msdn.microsoft.com/library/azure/dn835031.aspx)

0 commit comments

Comments
 (0)