/
wms_time2_postgis.map
93 lines (76 loc) · 1.79 KB
/
wms_time2_postgis.map
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Test WMS TIME SUPPORT
#
# REQUIRES: INPUT=GDAL OUTPUT=PNG SUPPORTS=WMS
#
#
#
# Draw a layer by using time parameter set to null and a default time
# specified in the map
#
# RUN_PARMS: wms_time_default_value_postgis.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-132,4,-68,68&FORMAT=image/png; mode=24bit&WIDTH=300&HEIGHT=300&STYLES=&LAYERS=pattern4&Time=" > [RESULT_DEMIME]
#
MAP
NAME WMS_TIME_DEFAULT_VALUE
STATUS ON
SIZE 400 300
SYMBOLSET ./etc/symbols.sym
EXTENT -131 5 -68 68
UNITS DD
SHAPEPATH "./data"
IMAGECOLOR 255 255 255
FONTSET ./etc/fonts.txt
# Start of web interface definition
#
WEB
MINSCALEDENOM 2000000
MAXSCALEDENOM 50000000
IMAGEPATH "/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
METADATA
"WMS_TITLE" "Test WMS time support"
"WMS_ONLINERESOURCE" "http://localhost/path/to/mswms_time?"
"WMS_SRS" "EPSG:4326"
"OWS_SCHEMAS_LOCATION" "http://ogc.dmsolutions.ca"
"WMS_ACCESSCONTRAINTS" "none"
"WMS_FEES" "none"
"wms_timeformat" "YYYY-MM-DD HH,YYYY-MM-DD HH:MM:"
"ows_enable_request" "*"
END
END
QUERYMAP
# STYLE SELECTED
# STYLE NORMAL
COLOR 255 0 0
END
PROJECTION
"init=epsg:4326"
END
#
# Start of layer definitions
#
LAYER
NAME pattern4
METADATA
"DESCRIPTION" "time"
"wms_title" "time"
"wms_timeitem" "time"
"wms_timeextent" "2004-01-01/2004-02-01"
"wms_timedefault" "2004-01-01 15:10:00"
END
PROJECTION
"init=epsg:4326"
END
TYPE POINT
STATUS DEFAULT
DATA pattern4
INCLUDE "postgis.include"
DATA "the_geom from (select * from pattern4 order by gid) as foo using unique gid using srid=4326"
CLASS
STYLE
SYMBOL 2
SIZE 8
COLOR 255 0 0
END
END
END
END