Skip to content

Commit e7d5789

Browse files
committed
Font fixes and updates to posgis example
1 parent 3a90b2a commit e7d5789

File tree

8 files changed

+44
-6
lines changed

8 files changed

+44
-6
lines changed

workshop/content/docs/credits.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ title: Credits
1010

1111
Thanks to the following for helping this workshop to be created:
1212

13+
- Colleagues at [Compass Informatics](https://compass.ie/) for attending the workshop and providing valuable feedback
1314
- The [pygeoapi](https://pygeoapi.io/) team - this workshop is based on the technology and approach used in the excellent
1415
[Diving into pygeoapi workshop](https://dive.pygeoapi.io/).
1516
- [Stéphane Brunner](https://github.com/sbrunner) from [Camptocamp](https://www.camptocamp.com/)

workshop/content/docs/inputs/databases.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ databases.
1414
To avoid having to install and setup a database we'll be using the [PostGIS Docker image](https://hub.docker.com/r/kartoza/postgis/) provided
1515
by [Kartoza](https://kartoza.com/).
1616

17-
We will use a different Docker Compose file, which includes a PostGIS container for this exercise.
17+
!!! info
18+
19+
We will use a different Docker Compose file, which includes a PostGIS container for this exercise. We can stop the current Docker containers, and run the alternate Docker containers with the following commands:
20+
21+
```bash
22+
cd ./getting-started-with-mapserver/workshop/exercises
23+
docker compose down
24+
docker compose -f docker-db-compose.yml up -d
25+
```
1826

1927

2028
## Checking the Database Connection with QGIS
@@ -46,7 +54,7 @@ We can use the OGR tool [ogr2ogr](https://gdal.org/programs/ogr2ogr.html) instal
4654

4755
```bash
4856
# connect to the MapServer Docker image which includes OGR tools for importing data
49-
docker exec -it mapserver bash
57+
docker exec -it mapserver2 bash
5058
# navigate to the folder containing the OSM FlatGeobuf files
5159
cd /etc/mapserver/data/osm
5260
# import the water polygons dataset to the Postgres database in the Postgres Docker image

workshop/content/docs/inputs/raster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ A [COMPOSITE](https://mapserver.org/mapfile/composite.html) block is used on the
103103

104104
## Exercises
105105

106-
1. Try different settings for layer `OPACITY` to see its effect on the output.
106+
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.

workshop/content/docs/introduction/docker.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,32 @@ A second container that serves the JavaScript example pages is also run using Do
4545
- mynetwork
4646
command: >
4747
sh -c "npm install && npm start"
48+
```
49+
50+
## Stopping and Starting Docker
51+
52+
```bash
53+
54+
cd ./getting-started-with-mapserver/workshop/exercises
55+
# start docker in detached mode
56+
docker compose up -d
57+
# the following URLs should now be available
58+
# http://localhost:5000
59+
# http://localhost:5001
60+
61+
# stop docker
62+
docker compose down
63+
64+
# for help
65+
docker compose help
66+
# for a specific command
67+
docker compose up --help
68+
```
69+
70+
71+
## Removing a Container
72+
73+
```bash
74+
# to remove a container named db
75+
docker rm db
4876
```

workshop/content/docs/mapfile/labels.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ GEOMTRANSFORM (centerline(densify([shape], 0.1)))
5858

5959
## Exercises
6060

61-
1. Use a different font for the label by adding the following to the `LABEL` block: `FONT LiberationMono`.
61+
1. Use a different font for the label by adding the following to the `LABEL` block: `FONT MonsieurLaDoulaise` and increasing the `SIZE` to `28`.
6262
2. Comment out the `GEOMTRANSFORM (centerline([shape]))` and `ANGLE FOLLOW` lines (using `#`) to see its effect on the map.
6363

6464
<!--

workshop/exercises/docker-db-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
services:
3131
mapserver:
3232
image: camptocamp/mapserver:8.0
33-
container_name: mapserver
33+
container_name: mapserver2
3434
ports:
3535
- 5000:80
3636
environment:
@@ -43,7 +43,7 @@ services:
4343

4444
node:
4545
image: node:lts-slim
46-
container_name: node
46+
container_name: node2
4747
ports:
4848
- 5001:5001
4949
working_dir: /home/node/app
Binary file not shown.

workshop/exercises/mapfiles/data/fonts/fontset.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ MaterialIcons MaterialIcons-Regular.ttf
33
MaterialIconsRound MaterialIconsRound-Regular.otf
44
LiberationMono LiberationMono-Regular.ttf
55
LiberationSans LiberationSans-Regular.ttf
6+
MonsieurLaDoulaise MonsieurLaDoulaise-Regular.ttf

0 commit comments

Comments
 (0)