goal is to have a quick local setup for mapserver, to test some things in ogcapi and index page (relatively new features on mapserver).
create a mapfile countries.map
MAP
NAME "countries"
STATUS ON
EXTENT -180 -90 180 90
SIZE 800 400
goal is to have a quick local setup for mapserver, to test some things in ogcapi and index page (relatively new features on mapserver).
create a mapfile countries.map
MAP
NAME "countries"
STATUS ON
EXTENT -180 -90 180 90
SIZE 800 400
| I had some challenges building https://github.com/swat-model/swatplus on ubuntu, | |
| apt-get provides an older version of cmake. | |
| So i started of with a docker image with a recent version of cmake, gfortran seems preinstalled. | |
| not sure why, but when running bash on the image, I had to install cmake first... | |
| local: | |
| docker run -it -v $(pwd):/work kitware/cmake:ci-debian12-x86_64-2025-03-31 bash | |
| # I tried markdown addin by Britva from https://appsource.microsoft.com/en-us/product/office/WA200002866, but it doesn't do tables | |
| # By default pandoc renders tables using pandoc markdown conventions, which breaks up cell content on multiple lines (breaking in the middle of a hyperlink, rendering invalid markdown) | |
| pandoc -s foo.docx -t markdown -o foo.md | |
| # Seems there is a number of table plugins that enable you to finetune the behaviour | |
| pandoc -s foo.docx -t markdown-simple_tables-multiline_tables-grid_tables -o foo.md | |
| # In many scenario's (seems related to the column width being more then a treshold) this approach breaks and pandoc |
| <html><body> | |
| <link rel="stylesheet" href="https://unpkg.com/leaflet@1.8.0/dist/leaflet.css" integrity="sha512-hoalWLoI8r4UszCkZ5kL8vayOGVae1oxXe/2A4AO6J9+580uKHDO3JdHb7NzwwzK5xr/Fs0W40kiNHxM9vyTtQ==" crossorigin=""/> | |
| <script src="https://unpkg.com/leaflet@1.8.0/dist/leaflet.js" integrity="sha512-BB3hKbKWOc9Ez/TAwyWxNXeoV9c1v6FIeYiBieIWkpLjauysF18NzgR1MBNBXf8/KABdlkX68nAhlwcDFLGPCQ==" crossorigin=""></script> | |
| <div id="map2" style="width:80%;height:400px"></div> | |
| <script> | |
| var map = L.map('map2', { | |
| center: [51.505, -0.09], | |
| zoom: 6 | |
| }); |
| <!-- | |
| Install: | |
| Copy this file into /layouts/shortcodes | |
| Usage: | |
| {{% mapml %}} | |
| <mapml-viewer projection="OSMTILE" zoom="0" lat="0.0" lon="0.0" controls style="width:100%;height:400px"> |
| # Goal of the script is export an existing site to hugo markdown | |
| # use httrack or some other tool to download the full website | |
| # then run this script to convert the local copy to markdown | |
| # verify that the header and footer are properly removed (by setting the split point) | |
| # copy the markdowns into the hugo content section | |
| import os | |
| from markdownify import markdownify as md |