Skip to content
Snippets Groups Projects
Commit ff41ee6b authored by Maël Méliani's avatar Maël Méliani
Browse files

Added a mapfile model to the documentation.

parent bdaa3fb6
No related branches found
No related tags found
No related merge requests found
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
......@@ -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*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment