diff --git a/mapserver/README.md b/mapserver/README.md index 7361c7f4a16ccdd6fa4854c5ed4fcdf4007097d9..93aa368e162f7323863c1f5b73e2fe47ea3dc36e 100644 --- a/mapserver/README.md +++ b/mapserver/README.md @@ -1,15 +1,34 @@ # MapServer +## Build + +```bash +docker build -t gitlab.ssec.wisc.edu:5555/cspp_geo/cspp-geo-web-viewer/mapserver:latest mapserver/ +``` + ## Usage ```bash -docker run -p 8888:80 -d --rm --name cspp-geo-mapserver -v cspp-geo-abi-l1b-geotiffs:/data gitlab.ssec.wisc.edu:5555/cspp_geo/cspp-geo-web-viewer/mapserver:latest +docker run -p 8888:80 -d --rm --name cspp-geo-mapserver --network cspp-geo-rabbit -v cspp-geo-abi-l1b-geotiffs:/data gitlab.ssec.wisc.edu:5555/cspp_geo/cspp-geo-web-viewer/mapserver:latest ``` Then the main mapserv CGI script can be accessed with: http://localhost:8888/cgi-bin/mapserv +where MapServer parameters can be appended to the end (after a `?`). However, +an easier to access API is available: + +```bash +http://localhost:8888/wms/<satellite>/<instrument>/<sector>/<data_level>?... +``` + +An example URL of this including MapServer parameters is: + +```bash +http://localhost:8888/wms/g16/abi/radf/l1b?request=GetMap&service=WMS&version=1.1.1&srs=EPSG:930916&layers=true_color_test&bbox=-5000000,-5000000,5000000,5000000&format=image/png&WIDTH=1000&HEIGHT=1000&TIME=2020-01-21T16:00:16 +``` + ## Special Notes This image has had its installation of the PROJ library modified to include