Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Mapserver REST API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Miscellaneous
Mapserver REST API
Commits
f0fc002c
Commit
f0fc002c
authored
11 years ago
by
Maël Méliani
Browse files
Options
Downloads
Patches
Plain Diff
Updated document: install.rst
parent
fc203901
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/install.rst
+34
-39
34 additions, 39 deletions
docs/install.rst
with
34 additions
and
39 deletions
docs/install.rst
+
34
−
39
View file @
f0fc002c
...
...
@@ -9,19 +9,22 @@ Prerequisites
**MapServer Rest API** needs the following components:
* Python with following packages:
* web.py
* pyyaml
* GDAL (>= 1.9.x with Python support)
* MapServer (>= 6.x with MapScript-Python support)
* Python with following packages:
* web.py
* pyyaml
* GDAL/OGR (>= 1.9.x with Python support)
* MapServer (>= 6.x with MapScript-Python support)
Download
========
Get the newest source code by downloading the archive at `download`_ page.
Then extract the archive in a directory of your choice. Or checkout the Git in some place.
.. _download: http://
.. _download: http
s
://
github.com/neogeo-technologies/mra
Installation
============
...
...
@@ -45,7 +48,7 @@ Just create a virtual directory and the following aliases: ::
You must reload Apache to make the change take effect.
Check the
ALIAS
is working:
Check the
alias
is working:
http://localhost/mra
...
...
@@ -56,78 +59,70 @@ All settings are done in the ``mra/src/mra/mra.yaml`` file, which should be rath
If you have checked out the svn repository, just rename the ``mra.yaml.sample`` in ``mra.yaml``.
That way, your own configuration won't be discarded by a further update.
*
``
storage
``:
*
**
storage
**
*
``
mapfiles
``
*
**
mapfiles
**
Path to the directory containing your mapfiles, which can be located anywhere on your disk.
The MapServerRestAPI will scan this directory recursively to find all the mapfiles.
``mapfiles: "/path/to/your/mapfiles/directory"``
* ``resources``
* **resources**
Path to the directory containing your data, which can be located anywhere on your disk.
``resources: "/path/to/your/data/directory"``
* **mapserver**
* ``mapserver``:
* ``url``
* **url**
URL that should be used to access your mapserver.
``url: "http://127.0.0.1/cgi-bin/mapserv?"``
* ``wms_version``, ``wfs_version``, ``wcs_version``
* **wms_version**, **wfs_version**, **wcs_version**
Default version to use for WMS, WFS and WCS.
* **debug**
* ``debug``
* ``web_debug`` [True|False]
* **web_debug** [True | False]
web_debug allows for easy debuging in the the browser, should be deactivated in production.
*
``
raise_all
``
[True
|
False]
*
**
raise_all
**
[True
|
False]
Exceptions are transformed into web errors.
(404, ...)
Exceptions are transformed into web errors.
This can be prevented by setting raise_all to True.
* **logging**
*
``logging``
*
**format**
* ``format``
Format of the debug log. Here is a typical message:
F
ormat
of the debug log. Here is a typical
message
:
``f
ormat
: "%(asctime)s %(levelname)7s: (%(funcName)s:%(lineno)s) %(
message
)s"``
``format: "%(asctime)s %(levelname)7s: (%(funcName)s:%(lineno)s) %(message)s"``
* **file**
Path to the log file, which can be located anywhere on your disk.
*
``file``
``file
: "./mra.log"
``
Path to the log file, which can be located anywhere on your disk.
* **level** [DEBUG | INFO | WARNING | ERROR]
``file: "./mra.log"``
* ``level`` [DEBUG|INFO|WARNING|ERROR]
Level of debugging output.
* ``web_logs`` [False|True]
To add the logs to the generated output of the webapp by setting web_logs.
Level of debugging output.
* **web_logs** [False | True]
To add the logs to the generated output of the webapp.
Finally check MapServer Rest API is working correctly:
``http://localhost/mra/maps.xml``
Finally check MapServer Rest API is working correctly:
http://localhost/mra/maps
Enjoy!
======
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment