Giter Club home page Giter Club logo

mapserver-docker's Introduction

mapserver-docker

Docker image for mapserver 7.0.7

(OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE)

Installation

From dockerhub

docker pull jjrom/mapserver

Build from source

Launch the following command and go for a coffee break

docker build -t jjrom/mapserver:1.0 -t jjrom/mapserver:latest .

Start container

Using docker-compose (edit config.env to change default environment values)

MAPSERVER_MAP_DIRECTORY=./map DATA_DIRECTORY=./data docker-compose up -d

Using docker

docker run -d -p 8282:80 -v `pwd`/map:/map jjrom/mapserver

Access container via http

Open the following URL:

http://localhost:8282/wms

The response should be

No query information to decode. QUERY_STRING is set, but empty.

Or with real data (assuming you mount the local map directory)

http://localhost:8282/wms/generic?layers=GTOPO30_SAMPLE%20airports&mode=map&map_imagetype=png&mapext=14.9688+-10.0312+65.0312+40.0312&imgext=14.9688+-10.0312+65.0312+40.0312&map_size=800+800&imgx=400&imgy=400&imgxy=800+800

http://localhost:8282/wms/geojson?layers=countries%20geojson&mode=map&map_imagetype=png&mapext=-90+-180+90+180&width=800&height=800

http://localhost:8282/wms/geojson?service=wms&request=GetMap&version=1.3.0&layers=countries,geojson&format=image/png&crs=epsg:3857&bbox=-20026376.39,-20048966.10,20026376.39,25048966.10&width=800&height=800

http://localhost:8282/wms/tamn?service=wms&request=GetMap&version=1.3.0&layers=all&format=image/png&crs=epsg:3857&bbox=-20026376.39,-20048966.10,20026376.39,25048966.10&width=800&height=800&column=wkt&gid=1

Post mapfile

curl -X POST --data-binary -H "Authorization: Bearer SetYourTokenHere" -d@./map/generic.map localhost:8282/map/12345.map

Delete mapfile

curl -X DELETE -H "Authorization: Bearer SetYourTokenHere" localhost:8282/map/12345.map

mapserver-docker's People

Contributors

jjrom avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.