Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions workshop/content/docs/advanced/clusters.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ CLASS

!!! example

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

??? JavaScript "clusters.js"

Expand All @@ -55,4 +55,4 @@ CLASS
MAXDISTANCE 50
REGION "ellipse"
END
```
```
8 changes: 4 additions & 4 deletions workshop/content/docs/advanced/sld.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ This exercise will focus on the first use case.

!!! example

- Direct MapServer request: <http://localhost:5000/?map=/etc/mapserver/lines.map&mode=map&layer=roads>
- Local OpenLayers example: <http://localhost:5001/sld.html>
- GetCapabilities request: <http://localhost:5000/?map=/etc/mapserver/sld.map&REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3.0>
- 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>
- Direct MapServer request: <http://localhost:7000/?map=/etc/mapserver/lines.map&mode=map&layer=roads>
- Local OpenLayers example: <http://localhost:7001/sld.html>
- GetCapabilities request: <http://localhost:7000/?map=/etc/mapserver/sld.map&REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3.0>
- 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>

???+ SLD

Expand Down
6 changes: 3 additions & 3 deletions workshop/content/docs/advanced/symbols.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ END

!!! example

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

??? JavaScript "railways.js"

Expand Down Expand Up @@ -114,4 +114,4 @@ END
## Further Reading

- [Cartographical Symbol Construction with MapServer](https://mapserver.org/mapfile/symbology/construction.html)
- [MapServer Symbology Exchange](https://github.com/MapServer/MapServer/wiki/SymbologyExchangeVector)
- [MapServer Symbology Exchange](https://github.com/MapServer/MapServer/wiki/SymbologyExchangeVector)
8 changes: 4 additions & 4 deletions workshop/content/docs/inputs/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ Online example not available as no PostGIS installation on the server

!!! example "Exercise Links"

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

??? JavaScript "postgis.js"

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

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

```js
Expand All @@ -106,4 +106,4 @@ Online example not available as no PostGIS installation on the server
params: { 'LAYERS': 'water,NEWLAYERNAME', 'STYLES': '' },
ratio: 1
}),
```
```
6 changes: 3 additions & 3 deletions workshop/content/docs/inputs/raster.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ A [COMPOSITE](https://mapserver.org/mapfile/composite.html) block is used on the

!!! example

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

??? JavaScript "raster.js"

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

1. Try different settings for layer `OPACITY` to see its effect on the output in `raster.map`.
2. Change the `COLOR` of the first `CLASS` in `terrain.include` to highlight which pixels have values in this range.
Cyan (`COLOR 0 255 255`) is a good colour for highlighting.
Cyan (`COLOR 0 255 255`) is a good colour for highlighting.
4 changes: 2 additions & 2 deletions workshop/content/docs/inputs/vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ than a huge GeoTIFF file.

!!! example

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

??? JavaScript "stars.js"

Expand Down
2 changes: 1 addition & 1 deletion workshop/content/docs/introduction/commandline.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF
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.
All web requests can be recreated and tested on the command line, this makes it a handy debugging tool.

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

```bash
mapserv "QUERY_STRING=map=/etc/mapserver/countries.map&mode=map"
Expand Down
12 changes: 6 additions & 6 deletions workshop/content/docs/introduction/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ MapServer runs on the Apache web server - see the [Apache page](../advanced/apac

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

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
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
located at `workshop\exercises\docker-compose.yml`:

```yaml
mapserver:
image: camptocamp/mapserver:8.4-gdal3.10
container_name: mapserver
ports:
- 5000:80
- 5002:80
environment:
MAPSERVER_CONFIG_FILE: "/etc/mapserver/mapserver.conf"
volumes:
Expand All @@ -37,7 +37,7 @@ A second container that serves the JavaScript example pages is also run using Do
image: node:lts-slim
container_name: node
ports:
- 5001:5001
- 5001:7001
working_dir: /home/node/app
volumes:
- ./app:/home/node/app
Expand All @@ -55,8 +55,8 @@ A second container that serves the JavaScript example pages is also run using Do
# start docker in detached mode
docker compose up -d
# the following URLs should now be available
# http://localhost:5000
# http://localhost:5001
# http://localhost:7000
# http://localhost:7001

# stop docker
docker compose down
Expand All @@ -73,4 +73,4 @@ A second container that serves the JavaScript example pages is also run using Do
```bash
# to remove a container named db
docker rm db
```
```
8 changes: 4 additions & 4 deletions workshop/content/docs/introduction/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ setup provided to you is actually working. The configuration file for Docker Com
docker compose up
```

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

# Displaying your First Map

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


!!! note
Expand All @@ -72,7 +72,7 @@ setup provided to you is actually working. The configuration file for Docker Com
```bash
docker compose up -d
docker container ls # verify that the mapserver container is running
# visit http://localhost:5000 in your browser
# visit http://localhost:7000 in your browser
docker logs --follow mapserver # view logs
docker compose stop
```
Expand Down
2 changes: 1 addition & 1 deletion workshop/content/docs/introduction/openlayers.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A useful introduction to OpenLayers can be found [here](https://openlayers.org/w
## HTML example pages

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

The HTML files used in the workshop are located in `exercises/app`.
The JavaScript files can be found in `exercises/app/js`. These files can be edited, and changes viewed in the browser.
Expand Down
6 changes: 3 additions & 3 deletions workshop/content/docs/mapfile/labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ GEOMTRANSFORM (centerline(densify([shape], 0.1)))

!!! example

- Direct MapServer request: <http://localhost:5000/?map=/etc/mapserver/lakes.map&mode=map&layer=lakes&layer=lake-labels>
- Local OpenLayers example: <http://localhost:5001/lakes.html>
- Direct MapServer request: <http://localhost:7000/?map=/etc/mapserver/lakes.map&mode=map&layer=lakes&layer=lake-labels>
- Local OpenLayers example: <http://localhost:7001/lakes.html>

??? JavaScript "lakes.js"

Expand Down Expand Up @@ -76,4 +76,4 @@ GEOMTRANSFORM (centerline(densify([shape], 0.1)))

# workaround for https://github.com/MapServer/MapServer/issues/7058

-->
-->
4 changes: 2 additions & 2 deletions workshop/content/docs/mapfile/lines.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ END

!!! example

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

!!! tip

Expand Down
10 changes: 5 additions & 5 deletions workshop/content/docs/mapfile/points.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ In the Mapfile itself we then reference this file and use any of the font aliase
In the example below we're using a
cinema character from Google's [Material Symbols](https://fonts.google.com/icons).
We use HTML entity number of the symbol we want in the [CHARACTER](https://mapserver.org/mapfile/symbol.html#mapfile-symbol-character) keyword.
A list of these codes and their associated symbols can be seen at [http://localhost:5001/fonts.html](http://localhost:5001/fonts.html).
A list of these codes and their associated symbols can be seen at [http://localhost:7001/fonts.html](http://localhost:7001/fonts.html).

```scala
FONTSET "data/fonts/fontset.txt"
Expand All @@ -65,8 +65,8 @@ END

!!! example

- Direct MapServer request: <http://localhost:5000/?map=/etc/mapserver/points.map&mode=map&layer=pois>
- Local OpenLayers example: <http://localhost:5001/points.html>
- Direct MapServer request: <http://localhost:7000/?map=/etc/mapserver/points.map&mode=map&layer=pois>
- Local OpenLayers example: <http://localhost:7001/points.html>

??? JavaScript "points.js"

Expand All @@ -84,7 +84,7 @@ END

1. Edit the `workshop/exercises/app/js/points.js` to show the OpenStreetMap base layer. You need to set the `visible: false` to `visible: true`.
2. Change the default `CLASS` to use larger points in a more visible colour.
3. Add another class to display another point type. Choose an appropriate symbol from the list at <http://localhost:5001/fonts.html>. Some example attribute types include `fast_food`, `monument`, and `post_box`. The source dataset is `workshop/exercises/mapfiles/data/osm/pois.fgb` - this can be opened in QGIS to view all available attributes and values.
3. Add another class to display another point type. Choose an appropriate symbol from the list at <http://localhost:7001/fonts.html>. Some example attribute types include `fast_food`, `monument`, and `post_box`. The source dataset is `workshop/exercises/mapfiles/data/osm/pois.fgb` - this can be opened in QGIS to view all available attributes and values.

<!--

Expand Down Expand Up @@ -119,4 +119,4 @@ If SVG symbols are not appearing, ensure they have a width and height set. You c
<path fill="currentColor" d="M7.743 21.8h3.485v22.4h5.229V25h5.229v19.2h5.228...
</svg>
```
-->
-->
4 changes: 2 additions & 2 deletions workshop/content/docs/mapfile/polygons.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ CLASS

!!! example

- Direct MapServer request: <http://localhost:5000/?map=/etc/mapserver/polygons.map&mode=map&layer=buildings>
- Local OpenLayers example: <http://localhost:5001/polygons.html>
- Direct MapServer request: <http://localhost:7000/?map=/etc/mapserver/polygons.map&mode=map&layer=buildings>
- Local OpenLayers example: <http://localhost:7001/polygons.html>

!!! tip

Expand Down
Loading