Skip to content

Commit 249c842

Browse files
committed
Minor fixes following workshop
1 parent ade6696 commit 249c842

File tree

5 files changed

+26
-6
lines changed

5 files changed

+26
-6
lines changed

workshop/content/docs/advanced/sld.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Styled Layer Descriptor (SLD) in MapServer
22

3+
!!! warning
4+
5+
This page is currently in a draft form.
6+
37
## Overview
48

59
Styled Layer Descriptor (SLD) is an OGC standard used for describing styles. SLD files are written in XML.

workshop/content/docs/inputs/vector.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ CONNECTION "/vsicurl/https://raw.githubusercontent.com/ofrohn/d3-celestial/maste
5555
## Exercises
5656

5757
1. Try adding a new dataset to the `stars.map`, for example `mw.json` which is at the same location as the other datasets:
58-
59-
```scala
58+
59+
```scala
6060
LAYER
6161
TYPE POLYGON
6262
NAME "milkyway"

workshop/content/docs/outputs/ogcfeatures.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,21 @@ new VectorLayer({
121121

122122
1. Modify the `workshop\exercises\mapfiles\railways.map` to enable the OGC Features API. You will need to add a new entry to the `MAPS` section in `workshop\exercises\mapfiles\mapserver.conf` and restart the Docker container to be able to browse the OGC Features API interface.
123123

124+
```scala
125+
MAPS
126+
...
127+
RAILWAYS "/etc/mapserver/railways.map"
128+
END
129+
```
130+
131+
You also need to add the following to `WEB` `METADATA` so MapServer can correctly construct the URLs: `"oga_onlineresource" "/railways/ogcapi"`
132+
124133
!!! tip
125134

126-
You need to add `TEMPLATE "void"` to each of the layers you want to make available through the OGC Features API.
127-
[TEMPLATE](https://mapserver.org/mapfile/layer.html#mapfile-layer-template) is a left-over from when HTML templates were used to return features, and allows the layer to be queried.
135+
You need to add `TEMPLATE "void"` to each of the layers you want to make available through the OGC Features API.
136+
[TEMPLATE](https://mapserver.org/mapfile/layer.html#mapfile-layer-template) is a left-over from when HTML templates were used to return features, and allows the layer to be queried.
137+
138+
Once setup correctly you should be able to browse the OGC Features API at <http://localhost:5000/railways/ogcapi/>.
128139

129140
## Possible Errors
130141

workshop/exercises/mapfiles/railways.map

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ MAP
2929
WEB
3030
METADATA
3131
"ows_enable_request" "*"
32-
"ows_srs" "EPSG:4326 EPSG:3857"
32+
"ows_srs" "EPSG:4326 EPSG:3857"
3333
END
3434
END
3535
LAYER
@@ -78,6 +78,11 @@ MAP
7878
NAME "stops"
7979
STATUS OFF
8080
TYPE POINT
81+
TEMPLATE "void"
82+
METADATA
83+
"gml_include_items" "all"
84+
"gml_featureid" "osm_id"
85+
END
8186
CONNECTIONTYPE FLATGEOBUF
8287
DATA "data/osm/transport.fgb"
8388
CLASSITEM "fclass"

workshop/exercises/mapfiles/wfs.map

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ MAP
3030
PROJECTION
3131
"init=epsg:4326"
3232
END
33-
EXTENT -180.0 -90.0 180.0 90
33+
EXTENT -180.0 -90.0 180.0 90
3434
STATUS OFF
3535
METADATA
3636
"gml_featureid" "ne_id"

0 commit comments

Comments
 (0)