Skip to content

Commit 1e98745

Browse files
authored
Merge pull request #2 from tomkralidis/tk-updates
change OAFeat terminology and MapServer port
2 parents c513c7e + 259a501 commit 1e98745

33 files changed

+117
-119
lines changed

workshop/content/docs/advanced/clusters.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ CLASS
3131

3232
!!! example
3333

34-
- MapServer request: <http://localhost:5000/?map=/etc/mapserver/clusters.map&mode=map&layer=trees>
35-
- OpenLayers example: <http://localhost:5001/clusters.html>
34+
- MapServer request: <http://localhost:7000/?map=/etc/mapserver/clusters.map&mode=map&layer=trees>
35+
- OpenLayers example: <http://localhost:7001/clusters.html>
3636

3737
??? JavaScript "clusters.js"
3838

@@ -55,4 +55,4 @@ CLASS
5555
MAXDISTANCE 50
5656
REGION "ellipse"
5757
END
58-
```
58+
```

workshop/content/docs/advanced/sld.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ This exercise will focus on the first use case.
2424

2525
!!! example
2626

27-
- Direct MapServer request: <http://localhost:5000/?map=/etc/mapserver/lines.map&mode=map&layer=roads>
28-
- Local OpenLayers example: <http://localhost:5001/sld.html>
29-
- GetCapabilities request: <http://localhost:5000/?map=/etc/mapserver/sld.map&REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3.0>
30-
- Request to generate SLD from a Mapfile: <http://localhost:5000/?map=/etc/mapserver/sld.map&REQUEST=GetStyles&SERVICE=WMS&LAYERS=countries&VERSION=1.3.0&sld=http://node:5001/data/sld.xml>
27+
- Direct MapServer request: <http://localhost:7000/?map=/etc/mapserver/lines.map&mode=map&layer=roads>
28+
- Local OpenLayers example: <http://localhost:7001/sld.html>
29+
- GetCapabilities request: <http://localhost:7000/?map=/etc/mapserver/sld.map&REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3.0>
30+
- Request to generate SLD from a Mapfile: <http://localhost:7000/?map=/etc/mapserver/sld.map&REQUEST=GetStyles&SERVICE=WMS&LAYERS=countries&VERSION=1.3.0&sld=http://node:7001/data/sld.xml>
3131

3232
???+ SLD
3333

workshop/content/docs/advanced/symbols.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ END
8181

8282
!!! example
8383

84-
- Direct MapServer request: <http://localhost:5000/?map=/etc/mapserver/railways.map&mode=map&layer=roads>
85-
- Local OpenLayers example: <http://localhost:5001/railways.html>
84+
- Direct MapServer request: <http://localhost:7000/?map=/etc/mapserver/railways.map&mode=map&layer=roads>
85+
- Local OpenLayers example: <http://localhost:7001/railways.html>
8686

8787
??? JavaScript "railways.js"
8888

@@ -114,4 +114,4 @@ END
114114
## Further Reading
115115

116116
- [Cartographical Symbol Construction with MapServer](https://mapserver.org/mapfile/symbology/construction.html)
117-
- [MapServer Symbology Exchange](https://github.com/MapServer/MapServer/wiki/SymbologyExchangeVector)
117+
- [MapServer Symbology Exchange](https://github.com/MapServer/MapServer/wiki/SymbologyExchangeVector)

workshop/content/docs/inputs/databases.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ Online example not available as no PostGIS installation on the server
7878

7979
!!! example "Exercise Links"
8080

81-
- MapServer request: <http://localhost:5000/?map=/etc/mapserver/postgis.map&mode=map&layer=water>
82-
- OpenLayers example: <http://localhost:5001/postgis.html>
81+
- MapServer request: <http://localhost:7000/?map=/etc/mapserver/postgis.map&mode=map&layer=water>
82+
- OpenLayers example: <http://localhost:7001/postgis.html>
8383

8484
??? JavaScript "postgis.js"
8585

@@ -97,7 +97,7 @@ Online example not available as no PostGIS installation on the server
9797

9898
1. Try and load another dataset into the database using the `ogr2ogr` approach above.
9999
2. Now add a new layer to the Mapfile to display the layer. You can make a direct request to MapServer in the form:
100-
<http://localhost:5000/?map=/etc/mapserver/postgis.map&mode=map&layers=water%20NEWLAYERNAME>.
100+
<http://localhost:7000/?map=/etc/mapserver/postgis.map&mode=map&layers=water%20NEWLAYERNAME>.
101101
3. Now update the JS file so the layer is visible as part of the interactive map, through WMS:
102102

103103
```js
@@ -106,4 +106,4 @@ Online example not available as no PostGIS installation on the server
106106
params: { 'LAYERS': 'water,NEWLAYERNAME', 'STYLES': '' },
107107
ratio: 1
108108
}),
109-
```
109+
```

workshop/content/docs/inputs/raster.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ A [COMPOSITE](https://mapserver.org/mapfile/composite.html) block is used on the
8686

8787
!!! example
8888

89-
- MapServer request: <http://localhost:5000/?map=/etc/mapserver/raster.map&mode=map&layer=dtm>
90-
- OpenLayers example: <http://localhost:5001/raster.html>
89+
- MapServer request: <http://localhost:7000/?map=/etc/mapserver/raster.map&mode=map&layer=dtm>
90+
- OpenLayers example: <http://localhost:7001/raster.html>
9191

9292
??? JavaScript "raster.js"
9393

@@ -105,4 +105,4 @@ A [COMPOSITE](https://mapserver.org/mapfile/composite.html) block is used on the
105105

106106
1. Try different settings for layer `OPACITY` to see its effect on the output in `raster.map`.
107107
2. Change the `COLOR` of the first `CLASS` in `terrain.include` to highlight which pixels have values in this range.
108-
Cyan (`COLOR 0 255 255`) is a good colour for highlighting.
108+
Cyan (`COLOR 0 255 255`) is a good colour for highlighting.

workshop/content/docs/inputs/vector.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ than a huge GeoTIFF file.
3838

3939
!!! example
4040

41-
- MapServer request: <http://localhost:5000/?map=/etc/mapserver/stars.map&mode=map&layer=constellations>
42-
- OpenLayers example: <http://localhost:5001/stars.html>
41+
- MapServer request: <http://localhost:7000/?map=/etc/mapserver/stars.map&mode=map&layer=constellations>
42+
- OpenLayers example: <http://localhost:7001/stars.html>
4343

4444
??? JavaScript "stars.js"
4545

workshop/content/docs/introduction/commandline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF
2121
When run through a web server, data is passed to the `mapserv` application, which generates output that is then sent back through the web server.
2222
All web requests can be recreated and tested on the command line, this makes it a handy debugging tool.
2323

24-
To test a URL such as <http://localhost:5000/?map=/etc/mapserver/countries.map&mode=map> run the following command:
24+
To test a URL such as <http://localhost:7000/?map=/etc/mapserver/countries.map&mode=map> run the following command:
2525

2626
```bash
2727
mapserv "QUERY_STRING=map=/etc/mapserver/countries.map&mode=map"

workshop/content/docs/introduction/docker.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ MapServer runs on the Apache web server - see the [Apache page](../advanced/apac
1010

1111
It uses the Apache [mod_fcgid module](https://httpd.apache.org/mod_fcgid/), module that provides FastCGI support.
1212

13-
MapServer runs on port 80 on the Docker container, which is mapped to port 5000 on the local machine, as can be seen in the Docker compose file
13+
MapServer runs on port 80 on the Docker container, which is mapped to port 5002 on the local machine, as can be seen in the Docker compose file
1414
located at `workshop\exercises\docker-compose.yml`:
1515

1616
```yaml
1717
mapserver:
1818
image: camptocamp/mapserver:8.4-gdal3.10
1919
container_name: mapserver
2020
ports:
21-
- 5000:80
21+
- 5002:80
2222
environment:
2323
MAPSERVER_CONFIG_FILE: "/etc/mapserver/mapserver.conf"
2424
volumes:
@@ -37,7 +37,7 @@ A second container that serves the JavaScript example pages is also run using Do
3737
image: node:lts-slim
3838
container_name: node
3939
ports:
40-
- 5001:5001
40+
- 5001:7001
4141
working_dir: /home/node/app
4242
volumes:
4343
- ./app:/home/node/app
@@ -55,8 +55,8 @@ A second container that serves the JavaScript example pages is also run using Do
5555
# start docker in detached mode
5656
docker compose up -d
5757
# the following URLs should now be available
58-
# http://localhost:5000
59-
# http://localhost:5001
58+
# http://localhost:7000
59+
# http://localhost:7001
6060

6161
# stop docker
6262
docker compose down
@@ -73,4 +73,4 @@ A second container that serves the JavaScript example pages is also run using Do
7373
```bash
7474
# to remove a container named db
7575
docker rm db
76-
```
76+
```

workshop/content/docs/introduction/introduction.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ setup provided to you is actually working. The configuration file for Docker Com
5656
docker compose up
5757
```
5858

59-
2. Open <http://localhost:5000> in your browser, you should see an error message!
59+
2. Open <http://localhost:7000> in your browser, you should see an error message!
6060
3. Close by pressing `CTRL-C`
6161

6262
# Displaying your First Map
6363

64-
- Ensure that you have MapServer setup and running at <http://localhost:5000>.
65-
- Now try opening the following MapServer URL in your browser - <http://localhost:5000/?map=/etc/mapserver/countries.map&mode=map>
64+
- Ensure that you have MapServer setup and running at <http://localhost:7000>.
65+
- Now try opening the following MapServer URL in your browser - <http://localhost:7000/?map=/etc/mapserver/countries.map&mode=map>
6666

6767

6868
!!! note
@@ -72,7 +72,7 @@ setup provided to you is actually working. The configuration file for Docker Com
7272
```bash
7373
docker compose up -d
7474
docker container ls # verify that the mapserver container is running
75-
# visit http://localhost:5000 in your browser
75+
# visit http://localhost:7000 in your browser
7676
docker logs --follow mapserver # view logs
7777
docker compose stop
7878
```

workshop/content/docs/introduction/openlayers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A useful introduction to OpenLayers can be found [here](https://openlayers.org/w
1515
## HTML example pages
1616

1717
The HTML pages are served using a Docker container, and when the containers are
18-
running an index page for all workshop exercises is available at <http://localhost:5001/>.
18+
running an index page for all workshop exercises is available at <http://localhost:7001/>.
1919

2020
The HTML files used in the workshop are located in `exercises/app`.
2121
The JavaScript files can be found in `exercises/app/js`. These files can be edited, and changes viewed in the browser.

0 commit comments

Comments
 (0)