From ff41ee6bd87b5868f36962b9d3ce38bc47202ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20M=C3=A9liani?= <m.meliani@neogeo-online.net> Date: Fri, 31 May 2013 10:54:26 +0200 Subject: [PATCH] Added a mapfile model to the documentation. --- docs/model.map | 83 ++++++++++++++++++++++++++++++++++++++++++ docs/mra_reference.rst | 7 ++++ 2 files changed, 90 insertions(+) create mode 100644 docs/model.map diff --git a/docs/model.map b/docs/model.map new file mode 100644 index 0000000..db9e8c4 --- /dev/null +++ b/docs/model.map @@ -0,0 +1,83 @@ +MAP + + NAME "model" + STATUS ON + IMAGETYPE "png" + RESOLUTION 96 + SIZE 600 600 + EXTENT -180 -90 180 90 + UNITS DD + + OUTPUTFORMAT + NAME "png" + MIMETYPE "image/png" + DRIVER "AGG/PNG" + EXTENSION "png" + IMAGEMODE RGBA + TRANSPARENT TRUE + END + + OUTPUTFORMAT + NAME "png8" + MIMETYPE "image/png; mode=8bit" + DRIVER "AGG/PNG8" + EXTENSION "png" + IMAGEMODE RGB + TRANSPARENT FALSE + FORMATOPTION "QUANTIZE_FORCE=on" + FORMATOPTION "QUANTIZE_COLORS=256" + FORMATOPTION "GAMMA=0.75" + END + + OUTPUTFORMAT + NAME "jpeg" + MIMETYPE "image/jpeg" + DRIVER "AGG/JPEG" + EXTENSION "jpg" + IMAGEMODE RGB + TRANSPARENT FALSE + FORMATOPTION "GAMMA=0.75" + END + + PROJECTION + "init=epsg:4326" + END + + LEGEND + KEYSIZE 20 10 + KEYSPACING 5 5 + LABEL + SIZE MEDIUM + OFFSET 0 0 + SHADOWSIZE 1 1 + TYPE BITMAP + END + STATUS OFF + END + + WEB + + TEMPLATE "foo" + + METADATA + ows_title "model" + ows_abstract "This is a model" + ows_onlineresource "" + ows_service_onlineresource "" + ows_schemas_location "http://schemas.opengeospatial.net" + ows_server_version "1.3.0" + ows_encoding "UTF-8" + ows_srs "EPSG:4326" + + # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # + # `mra' meta contains all the information that MapserverRestAPI # + # needs to work properly. # + # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # + + "mra" "{coveragestores: {}, datastores: {}, layergroups: {}, workspaces: {default: {title: default}}}" + + END + + END + +END \ No newline at end of file diff --git a/docs/mra_reference.rst b/docs/mra_reference.rst index 774178b..fd049f5 100644 --- a/docs/mra_reference.rst +++ b/docs/mra_reference.rst @@ -72,6 +72,12 @@ See `Mapfile specification`_ for more information about the Mapfile. Operations ---------- +For current version of MapServer Rest API, manipulate a ``mapfile`` is not implemented. +And so, you can't create, modify or delete a mapfile. +Please use the `mapfile model`_ and just give us some time to implement this operations. + +.. _Mapfile model: https://github.com/neogeo-technologies/mra/blob/develop/docs/model.map + ``/maps.<format>`` ^^^^^^^^^^^^^^^^^^ @@ -89,6 +95,7 @@ Operations | DELETE | | 405 | | +--------+---------------------------------+-------------+--------------------+ + *Exceptions:* * *TODO: POST for a mapfile already exist: 409 Conflict* -- GitLab