guifi.net maps

Bob Mottram 40d6d5eef7 Note about removing style 6 months ago
daemons 7ddcf16861 Set working directory 6 months ago
data 14f2a64284 missing files! 6 years ago
fonts bc1e53c79b 9 years ago
img cd2f442101 Update marble image 6 months ago
GMap.map 4502fd2c8a Maximum features 6 months ago
Makefile 8d67bf9d5b Configuration of daemon 6 months ago
README.md 40d6d5eef7 Note about removing style 6 months ago
apache.example c96dc26daf Apache web server example 6 months ago
favicon.ico 08a5b38027 Bump to production version! 7 years ago
guifi_symbols.sym a6f2ae61e3 Add new status modes and colors. 5 years ago
guifimaps.sh 8d67bf9d5b Configuration of daemon 6 months ago
links.html 0e0ebc88e2 readme as markdown 6 months ago
nginx.example 80427acdb0 Marble plot 6 months ago
nodes.html 0e0ebc88e2 readme as markdown 6 months ago
refresh.php 420c99489d Tidying 6 months ago
robots.txt 08a5b38027 Bump to production version! 7 years ago
web.html 08a5b38027 Bump to production version! 7 years ago

README.md

guifimaps

This provides a map server for guifi.net

For more details about map servers see https://mapserver.org/ogc/wms_server.html

Installation

On a Debian based system:

sudo apt-get install gdal-bin build-essential php7.0 php7.0-xml wget gosu cgi-mapserver git gdal-bin php7.0-curl libgd2-xpm-dev spawn-fcgi fcgiwrap

Create a user:

groupadd guifimaps
useradd -c "Guifimaps system account" -d /etc/guifimaps -m -r -g guifimaps guifimaps

Then install:

sudo make install

Change your domain name:

sed -i 's|http://wms.guifi.net|http://yourdomain|g' /etc/guifimaps/GMap.map

Generate the map for the first time. This might take a while.

guifimaps

Example web server configurations for Apache and Nginx are provided.

Check the capabilities with:

http://yourdomain/?map=GMap.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities

Query the map with:

http://yourdomain/?map=GMap.map&layer=Nodes&mode=map

This will output a kml file. You might need to remove styling with:

sed -i '/styleUrl/d' ~/guifinet.kml

And the file can then be opened within Marble.