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
20e40776
Commit
20e40776
authored
11 years ago
by
Maël Méliani
Browse files
Options
Downloads
Patches
Plain Diff
Removed /tests/ api and updated test file. Also removed model.map.
parent
ddb2d2e1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/model.map
+0
-83
0 additions, 83 deletions
docs/model.map
src/server.py
+0
-8
0 additions, 8 deletions
src/server.py
tests/testScenario.py
+0
-1
0 additions, 1 deletion
tests/testScenario.py
with
0 additions
and
92 deletions
docs/model.map
deleted
100644 → 0
+
0
−
83
View file @
ddb2d2e1
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
This diff is collapsed.
Click to expand it.
src/server.py
+
0
−
8
View file @
20e40776
...
@@ -51,14 +51,6 @@ class index(object):
...
@@ -51,14 +51,6 @@ class index(object):
def
GET
(
self
,
format
):
def
GET
(
self
,
format
):
return
"
This is MRA.
"
return
"
This is MRA.
"
class
tests
(
object
):
def
PUT
(
self
,
name
,
format
):
spath
=
tools
.
safe_path_join
(
get_config
(
'
storage
'
)[
'
mapfiles
'
],
"
%s.map
"
%
get_config
(
"
testing
"
)[
"
model
"
])
tpath
=
tools
.
safe_path_join
(
get_config
(
'
storage
'
)[
'
mapfiles
'
],
"
%s.map
"
%
name
)
open
(
tpath
,
"
w
"
).
write
(
open
(
spath
).
read
())
webapp
.
Created
(
"
%s/maps/%s%s
"
%
(
web
.
ctx
.
home
,
name
,
format
or
""
))
class
mapfiles
(
object
):
class
mapfiles
(
object
):
@HTTPCompatible
()
@HTTPCompatible
()
def
GET
(
self
,
format
):
def
GET
(
self
,
format
):
...
...
This diff is collapsed.
Click to expand it.
tests/testScenario.py
+
0
−
1
View file @
20e40776
...
@@ -365,7 +365,6 @@ def test_scenario():
...
@@ -365,7 +365,6 @@ def test_scenario():
map_name
=
"
tests
"
map_name
=
"
tests
"
# Clean the test file, now we are sure it is empty.
# Clean the test file, now we are sure it is empty.
# APIRequest("PUT", target + "/tests/" + map_name)
APIRequest
(
"
DELETE
"
,
target
+
"
/maps/
"
+
map_name
)
APIRequest
(
"
DELETE
"
,
target
+
"
/maps/
"
+
map_name
)
APIRequest
(
"
POST
"
,
target
+
"
/maps
"
,
{
"
mapfile
"
:{
"
name
"
:
map_name
}})
APIRequest
(
"
POST
"
,
target
+
"
/maps
"
,
{
"
mapfile
"
:{
"
name
"
:
map_name
}})
...
...
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