Skip to content

Commit 14885d4

Browse files
committed
edited
1 parent 5745280 commit 14885d4

File tree

2 files changed

+71
-61
lines changed

2 files changed

+71
-61
lines changed

.openpublishing.redirection.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7399,15 +7399,25 @@
73997399
"redirect_document_id": false
74007400
},
74017401
{
7402-
"source_path_from_root": "/articles/azure-maps/mobility-service-data-structure.md ",
7402+
"source_path_from_root": "/articles/azure-maps/mobility-service-data-structure.md",
74037403
"redirect_url": "/azure/azure-maps",
74047404
"redirect_document_id": false
74057405
},
74067406
{
7407-
"source_path_from_root": "/articles/azure-maps/power-bi-visual-getting-started.md ",
7407+
"source_path_from_root": "/articles/azure-maps/power-bi-visual-getting-started.md",
74087408
"redirect_url": "/azure/azure-maps/power-bi-visual-get-started",
74097409
"redirect_document_id": false
74107410
},
7411+
{
7412+
"source_path_from_root": "/articles/azure-maps/tutorial-creator-wfs.md",
7413+
"redirect_url": "/azure/azure-maps/how-to-creator-wfs",
7414+
"redirect_document_id": false
7415+
},
7416+
{
7417+
"source_path_from_root": "/articles/azure-maps/tutorial-creator-feature-stateset.md",
7418+
"redirect_url": "/azure/azure-maps/how-to-creator-feature-stateset",
7419+
"redirect_document_id": false
7420+
},
74117421
{
74127422
"source_path_from_root": "/articles/azure-portal/resource-group-portal-linked-resources.md",
74137423
"redirect_url": "/azure/azure-portal/azure-portal-dashboards",

articles/azure-maps/how-to-creator-wfs.md

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -34,79 +34,79 @@ To query all collections in your dataset, create a new **HTTP GET Request**:
3434

3535
Enter the following URL to [WFS API]. The request should look like the following URL:
3636

37-
```http
38-
https://us.atlas.microsoft.com/wfs/datasets/{datasetId}/collections?subscription-key={Your-Azure-Maps-Subscription-key}&api-version=2.0
39-
```
37+
```http
38+
https://us.atlas.microsoft.com/wfs/datasets/{datasetId}/collections?subscription-key={Your-Azure-Maps-Subscription-key}&api-version=2.0
39+
```
4040

4141
The response body is returned in GeoJSON format and contains all collections in the dataset. For simplicity, the example here only shows the `unit` collection. To see an example that contains all collections, see [WFS Describe Collections API]. To learn more about any collection, you can select any of the URLs inside the `links` element.
4242

43-
```json
43+
```json
44+
{
45+
"collections": [
4446
{
45-
"collections": [
46-
{
47-
"name": "unit",
48-
"description": "A physical and non-overlapping area which might be occupied and traversed by a navigating agent. Can be a hallway, a room, a courtyard, etc. It is surrounded by physical obstruction (wall), unless the is_open_area attribute is equal to true, and one must add openings where the obstruction shouldn't be there. If is_open_area attribute is equal to true, all the sides are assumed open to the surroundings and walls are to be added where needed. Walls for open areas are represented as a line_element or area_element with is_obstruction equal to true.",
49-
"links": [
50-
{
51-
"href": "https://atlas.microsoft.com/wfs/datasets/{datasetId}/collections/unit/definition?api-version=1.0",
52-
"rel": "describedBy",
53-
"title": "Metadata catalogue for unit"
54-
},
55-
{
56-
"href": "https://atlas.microsoft.com/wfs/datasets/{datasetId}/collections/unit/items?api-version=1.0",
57-
"rel": "data",
58-
"title": "unit"
59-
}
60-
{
61-
"href": "https://atlas.microsoft.com/wfs/datasets/{datasetId}/collections/unit?api-version=1.0",
62-
"rel": "self",
63-
"title": "Metadata catalogue for unit"
64-
}
65-
]
66-
},
67-
```
47+
"name": "unit",
48+
"description": "A physical and non-overlapping area which might be occupied and traversed by a navigating agent. Can be a hallway, a room, a courtyard, etc. It is surrounded by physical obstruction (wall), unless the is_open_area attribute is equal to true, and one must add openings where the obstruction shouldn't be there. If is_open_area attribute is equal to true, all the sides are assumed open to the surroundings and walls are to be added where needed. Walls for open areas are represented as a line_element or area_element with is_obstruction equal to true.",
49+
"links": [
50+
{
51+
"href": "https://atlas.microsoft.com/wfs/datasets/{datasetId}/collections/unit/definition?api-version=1.0",
52+
"rel": "describedBy",
53+
"title": "Metadata catalogue for unit"
54+
},
55+
{
56+
"href": "https://atlas.microsoft.com/wfs/datasets/{datasetId}/collections/unit/items?api-version=1.0",
57+
"rel": "data",
58+
"title": "unit"
59+
}
60+
{
61+
"href": "https://atlas.microsoft.com/wfs/datasets/{datasetId}/collections/unit?api-version=1.0",
62+
"rel": "self",
63+
"title": "Metadata catalogue for unit"
64+
}
65+
]
66+
},
67+
```
6868

6969
## Query for unit feature collection
7070

7171
In this section, you'll query [WFS API] for the `unit` feature collection.
7272

7373
To query the unit collection in your dataset, create a new **HTTP GET Request**:
7474

75-
```http
76-
https://us.atlas.microsoft.com/wfs/datasets/{datasetId}/collections/unit/items?subscription-key={Your-Azure-Maps-Subscription-key}&api-version=2.0
77-
```
75+
```http
76+
https://us.atlas.microsoft.com/wfs/datasets/{datasetId}/collections/unit/items?subscription-key={Your-Azure-Maps-Subscription-key}&api-version=2.0
77+
```
7878

7979
After the response returns, copy the feature `id` for one of the `unit` features. In the following example, the feature `id` is "UNIT26". You'll use "UNIT26" as your feature `id` when you [Update a feature state].
8080

81-
```json
82-
{
83-
"type": "FeatureCollection",
84-
"features": [
85-
{
86-
"type": "Feature",
87-
"geometry": {
88-
"type": "Polygon",
89-
"coordinates": ["..."]
90-
},
91-
"properties": {
92-
"original_id": "b7410920-8cb0-490b-ab23-b489fd35aed0",
93-
"category_id": "CTG8",
94-
"is_open_area": true,
95-
"navigable_by": [
96-
"pedestrian"
97-
],
98-
"route_through_behavior": "allowed",
99-
"level_id": "LVL14",
100-
"occupants": [],
101-
"address_id": "DIR1",
102-
"name": "157"
103-
},
104-
"id": "UNIT26",
105-
"featureType": ""
106-
}, {"..."}
107-
]
108-
}
109-
```
81+
```json
82+
{
83+
"type": "FeatureCollection",
84+
"features": [
85+
{
86+
"type": "Feature",
87+
"geometry": {
88+
"type": "Polygon",
89+
"coordinates": ["..."]
90+
},
91+
"properties": {
92+
"original_id": "b7410920-8cb0-490b-ab23-b489fd35aed0",
93+
"category_id": "CTG8",
94+
"is_open_area": true,
95+
"navigable_by": [
96+
"pedestrian"
97+
],
98+
"route_through_behavior": "allowed",
99+
"level_id": "LVL14",
100+
"occupants": [],
101+
"address_id": "DIR1",
102+
"name": "157"
103+
},
104+
"id": "UNIT26",
105+
"featureType": ""
106+
}, {"..."}
107+
]
108+
}
109+
```
110110

111111
## Next steps
112112

0 commit comments

Comments
 (0)