You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: advanced/apache/index.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1436,10 +1436,10 @@ <h1 id="mapserver-and-apache">MapServer and Apache</h1>
1436
1436
<p>This page is currently in a draft form.</p>
1437
1437
</div>
1438
1438
<h2id="overview">Overview</h2>
1439
-
<p>The Apache web server is used by the workshop Docker image. Since version 8.0 MapServer has a global config file.</p>
1440
1439
<p>At its heart MapServer is a command-line application that can be accessed through a web server.</p>
1440
+
<p>The Apache web server is used by the workshop Docker image.</p>
1441
1441
<p>Apache has a <ahref="https://github.com/MapServer/getting-started-with-mapserver/blob/main/docker/runtime/etc/apache2/conf-enabled/mapserver.conf">configuration file</a>.
1442
-
The Docker image uses a [start-up script(https://github.com/MapServer/getting-started-with-mapserver/blob/main/docker/runtime/usr/local/bin/start-server).</p>
1442
+
The Docker image uses a <ahref="https://github.com/MapServer/getting-started-with-mapserver/blob/main/docker/runtime/usr/local/bin/start-server">start-up script</a>.</p>
1443
1443
<p>MapServer uses the <ahref="https://httpd.apache.org/mod_fcgid/">mod_fcgid module</a>, which is an Apache module that provides FastCGI support.</p>
Copy file name to clipboardExpand all lines: credits/index.html
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1409,11 +1409,16 @@
1409
1409
1410
1410
<h1id="authors">Authors</h1>
1411
1411
<ul>
1412
-
<li><ahref="https://geographika.net/">Seth Girvin</a> (found on GitHub at <ahref="https://github.com/geographika">@geographika</a>). Please get in touch if you'd like a particular topic added to the workshop, or require any MapServer development.</li>
1412
+
<li><ahref="https://geographika.net/">Seth Girvin</a> (found on GitHub at <ahref="https://github.com/geographika">@geographika</a>,
1413
+
and Mastodon at <ahref="https://mastodon.social/@geographika">@geographika</a>).
1414
+
Please get in touch if you'd like a particular topic added to the workshop, or require any MapServer development.</li>
1413
1415
</ul>
1414
1416
<h1id="thanks">Thanks</h1>
1415
1417
<p>Thanks to the following for helping this workshop to be created and improved:</p>
1416
1418
<ul>
1419
+
<li>The workshop participants at <ahref="https://2025.europe.foss4g.org/">FOSS4G Europe 2025</a> in Mostar, for their enthusiasm and feedback.</li>
1420
+
<li><ahref="https://www.osgeo.org/member/even-rouault/">Even Rouault</a> and <ahref="https://www.osgeo.org/member/tom-kralidis/">Tom Kralidis</a> for
1421
+
assisting, and valuable comments and additions at FOSS4G Europe 2025.</li>
1417
1422
<li>The workshop participants at <ahref="https://2024.europe.foss4g.org/">FOSS4G Europe 2024</a> for their participation, feedback, and for having everything installed ready for a 9am start!</li>
1418
1423
<li><ahref="https://www.osgeo.org/member/michael-smith/">Michael Smith</a> for co-hosting the FOSS4G Europe 2024 workshop, and providing valuable tips and assistance.</li>
1419
1424
<li>Colleagues at <ahref="https://compass.ie/">Compass Informatics</a> for trialling the workshop and providing valuable feedback.</li>
<p>MapServer can connect to most geospatial databases. There are native MapServer drivers for <ahref="https://mapserver.org/input/vector/postgis.html">PostgreSQL/PostGIS</a>,
1599
1599
<ahref="https://mapserver.org/input/vector/oracle.html">Oracle</a>, and <ahref="https://mapserver.org/input/vector/mssql.html">Microsoft SQL Server</a>. Other databases
1600
1600
can be accessed through OGR, for example <ahref="https://mapserver.org/input/vector/mysql.html">MySQL</a>.</p>
1601
-
<p>In this exercise we'll be connecting to a PostGIS database to display water polygon features using a MapServer WMS.<ahref="https://postgis.net/">PostGIS</a> spatially enables the <ahref="https://www.postgresql.org/">PostgreSQL</a>
1602
-
databases. </p>
1601
+
<p>In this exercise we'll be connecting to a PostGIS database to display water polygon features using a MapServer WMS.
<p>To avoid having to install and setup a database we'll be using the <ahref="https://hub.docker.com/r/kartoza/postgis/">PostGIS Docker image</a> provided
1604
+
<p>To avoid having to install and set up a database we'll be using the <ahref="https://hub.docker.com/r/kartoza/postgis/">PostGIS Docker image</a> provided
1605
1605
by <ahref="https://kartoza.com/">Kartoza</a>.</p>
1606
1606
<divclass="admonition info">
1607
1607
<pclass="admonition-title">Info</p>
@@ -1640,7 +1640,7 @@ <h2 id="checking-the-database-connection-with-qgis">Checking the Database Connec
1640
1640
</ul>
1641
1641
</div>
1642
1642
<h2id="adding-data-to-the-database">Adding Data to The Database</h2>
1643
-
<p>We can use the OGR tool <ahref="https://gdal.org/programs/ogr2ogr.html">ogr2ogr</a> installed on the MapServer container to add datasets to the PostgreSQL database.</p>
1643
+
<p>We can use the GDAL CLI tool <ahref="https://gdal.org/en/stable/programs/gdal_vector_convert.html">gdal vector convert</a> installed on the MapServer container to add datasets to the PostgreSQL database.</p>
1644
1644
<divclass="language-bash highlight"><pre><span></span><code><spanid="__span-1-1"><aid="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><spanclass="c1"># connect to the MapServer Docker image which includes OGR tools for importing data</span>
</span><spanid="__span-1-3"><aid="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a><spanclass="c1"># navigate to the folder containing the OSM FlatGeobuf files</span>
@@ -1745,11 +1745,11 @@ <h2 id="code">Code</h2>
1745
1745
</details>
1746
1746
<h2id="exercises">Exercises</h2>
1747
1747
<ol>
1748
-
<li>Try and load another dataset into the database using the <code>ogr2ogr</code> approach above.</li>
1748
+
<li>Try to load another dataset into the database using the <code>gdal vector convert</code> approach above.</li>
1749
1749
<li>Now add a new layer to the Mapfile to display the layer. You can make a direct request to MapServer in the form:
Copy file name to clipboardExpand all lines: inputs/raster/index.html
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1617,9 +1617,9 @@
1617
1617
1618
1618
<h1id="raster-data">Raster Data</h1>
1619
1619
<h2id="overview">Overview</h2>
1620
-
<p>MapServer can serve both <ahref="https://mapserver.org/input/vector/index.html">vector</a> and <ahref="https://mapserver.org/input/raster.html">raster</a> data.</p>
1621
-
<p>The dataset used in this example is elevation data from the <ahref="https://geoportaal.maaamet.ee/eng/Spatial-Data/Elevation-Data-p308.html">Estonian Geoportal</a>,
1622
-
and data provided by the Estonian Land Board 2024. It covers Tartu center and is from map sheet 474659.</p>
1620
+
<p>MapServer can serve both <ahref="https://mapserver.org/input/vector/index.html">vector</a> and <ahref="https://mapserver.org/input/raster.html">raster</a> data.
1621
+
The dataset used in this example is elevation data from the <ahref="https://geoportaal.maaamet.ee/eng/Spatial-Data/Elevation-Data-p308.html">Estonian Geoportal</a>,
1622
+
provided by the Estonian Land Board (2024). It covers Tartu center and is from map sheet 474659.</p>
<p>When run through a web server, data is passed to the <code>mapserv</code> application, which generates output that is then sent back through the web server.
1428
-
All web requests can be recreated and tested on the command line, this makes it a handy debugging tool.</p>
1428
+
All web requests can be recreated and tested on the command line, making it a handy debugging tool.</p>
1429
1429
<p>To test a URL such as <ahref="http://localhost:7000/?map=/etc/mapserver/countries.map&mode=map">http://localhost:7000/?map=/etc/mapserver/countries.map&mode=map</a> run the following command:</p>
<p>This will output a PNG image to the command line - this will look like garbage!</p>
1433
1433
<p>We can save the output by redirecting it to a file using <code>></code>.
1434
1434
As the <code>mapserv</code> program returns responses for a web client it also returns HTTP headers. To create a valid image file we need to strip these
1435
-
header by using the <code>-nh</code> (no headers) switch.</p>
1435
+
headers by using the <code>-nh</code> (no headers) switch.</p>
0 commit comments