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
12 changes: 7 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
workshop/content/site
.vs/
# /notes.txt
workshop/exercises/postgis-data
notes.ignore
workshop/content/site
.vs/
# /notes.txt
workshop/exercises/postgis-data
notes.ignore
/workshop/exercises/mapfiles/tmp/*
!/workshop/exercises/mapfiles/tmp/.gitkeep
4 changes: 2 additions & 2 deletions docker/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ docker pull geographika/mapserver-workshop:latest
# docker stop mapserver-workshop
# docker rm mapserver-workshop
docker run -it --name mapserver-workshop geographika/mapserver-workshop:latest bash
docker start mapserver-workshop
docker exec -it mapserver-workshop bash
# mapserv -v
# docker start mapserver-workshop
# docker exec -it mapserver-workshop bash
```

## Build the Demo Image
Expand Down
8 changes: 8 additions & 0 deletions workshop/content/docs/advanced/direction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


```bash
docker exec -it mapserver /bin/bash
map2img -m direction.map -o direction.png

map2img -m direction.map -e -1133569.01 6841714.56 -1133466.97 6841780.95 -l "raster flow" -o direction.png
```
2 changes: 1 addition & 1 deletion workshop/content/docs/advanced/gdalg.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
MapServer can dynamically run a [GDAL Vector Pipeline](https://gdal.org/en/latest/programs/gdal_vector_pipeline.html), and render its output -
all through a simple Mapfile.

In this workshop we'll use the Tartu roads dataset used in the [Line Styling](../mapfile/lines.md) exercise, dynamically
In this workshop we'll use the Tartu roads dataset used in the [Line Styling](/mapfile/lines/) exercise, dynamically
buffer it using GDAL, and display the result in OpenLayers using a MapServer WMS.

This is a simple example of a pipeline, but additional steps can be chained together to create more complex workflows.
Expand Down
2 changes: 1 addition & 1 deletion workshop/content/docs/advanced/other-projections.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const wmsLayer = new ImageLayer({

!!! note

OpenLayers does not natively support WCS. In this example we use the same approach as in the [Web Coverage Services (WCS)](../outputs/wcs.md) tutorial for testing the WCS protocol.
OpenLayers does not natively support WCS. In this example we use the same approach as in the [Web Coverage Services (WCS)](/outputs/wcs/) tutorial for testing the WCS protocol.
Images are requested as PNGs using the [ImageWMS](https://openlayers.org/en/latest/apidoc/module-ol_source_ImageWMS-ImageWMS.html) class and a custom
[imageLoadFunction](https://openlayers.org/en/latest/apidoc/module-ol_Image.html#~LoadFunction),
as displaying GeoTIFFs directly in OpenLayers is not supported without additional libraries.
Expand Down
16 changes: 16 additions & 0 deletions workshop/content/docs/advanced/raster-pipeline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# GDAL Raster Pipeline

!!! warning

This page is currently in a draft form.


```
gdal raster info data/raster/clipped.tif

gdal raster info data/raster/clipped.gdalg.json


gdal raster pipeline ! read /etc/mapserver/data/raster/clipped.tif ! color-map --color-map /etc/mapserver/data/raster/color-map-percentage.txt ! blend --operator=hsv-value --overlay [ read /etc/mapserver/data/raster/clipped.tif ! hillshade -z 30 ] ! write /etc/mapserver/data/raster/tmp.tif --overwrite

```
2 changes: 1 addition & 1 deletion workshop/content/docs/advanced/symbols.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ In this exercise we'll look at how [SYMBOL](https://mapserver.org/mapfile/symbol

## Vector Symbols

We've looked at `ELLIPSE`, and `TRUETYPE` symbols in the [Points Styling](../mapfile/points.md) exercise. In this example
We've looked at `ELLIPSE`, and `TRUETYPE` symbols in the [Points Styling](/mapfile/points/) exercise. In this example
we'll be looking at [Vector Symbols](https://mapserver.org/mapfile/symbology/construction.html#symbols-of-type-vector-and-ellipse) - which
use vector drawings to define the shape of a symbol.

Expand Down
98 changes: 98 additions & 0 deletions workshop/content/docs/assets/images/clipped.gdalg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added workshop/content/docs/assets/images/filters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions workshop/content/docs/assets/images/roads.gdalg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions workshop/content/docs/mapfile/config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# MapServer Configuration File

## Overview


Set this in the config file
MS_ONLINERESOURCE "/"


Include the one used by the workshop

Any changes in the CONFIG file you need to restart the web server:

```bash
docker restart mapserver
```
Loading