File tree Expand file tree Collapse file tree 3 files changed +64
-10
lines changed
Expand file tree Collapse file tree 3 files changed +64
-10
lines changed Original file line number Diff line number Diff line change @@ -816,7 +816,7 @@ def get_admin(cfg: dict) -> dict:
816816 'description' : 'Adds resource to configuration' ,
817817 'content' : {
818818 'application/json' : {
819- 'example' : {'new-collection' : cfg ['resources' ][res_eg_key ]},
819+ 'example' : {'new-collection' : cfg ['resources' ][res_eg_key ]}, # noqa
820820 'schema' : schema_dict ['properties' ]['resources' ]['patternProperties' ]['^.*$' ] # noqa
821821 }
822822 },
Original file line number Diff line number Diff line change 6161 }
6262 },
6363 "resources" : {
64- "hello-world" : {
65- "type" : " process" ,
66- "processor" : {
67- "name" : " HelloWorld"
64+
65+ "obs" : {
66+ "type" : " collection" ,
67+ "title" : " Observations" ,
68+ "description" : " My cool observations" ,
69+ "keywords" : [
70+ " observations" ,
71+ " monitoring"
72+ ],
73+ "linked-data" : {
74+ "context" : [
75+ {
76+ "datetime" : " https://schema.org/DateTime"
77+ },
78+ {
79+ "vocab" : " https://example.com/vocab#" ,
80+ "stn_id" : " vocab:stn_id" ,
81+ "value" : " vocab:value"
6882 }
83+ ]
84+ },
85+ "links" : [
86+ {
87+ "type" : " text/csv" ,
88+ "rel" : " canonical" ,
89+ "title" : " data" ,
90+ "href" : " https://github.com/mapserver/mapserver/blob/branch-7-0/msautotest/wxs/data/obs.csv" ,
91+ "hreflang" : " en-US"
92+ },
93+ {
94+ "type" : " text/csv" ,
95+ "rel" : " alternate" ,
96+ "title" : " data" ,
97+ "href" : " https://raw.githubusercontent.com/mapserver/mapserver/branch-7-0/msautotest/wxs/data/obs.csv" ,
98+ "hreflang" : " en-US"
99+ }
100+ ],
101+ "extents" : {
102+ "spatial" : {
103+ "bbox" : [
104+ -180 ,
105+ -90 ,
106+ 180 ,
107+ 90
108+ ],
109+ "crs" : " http://www.opengis.net/def/crs/OGC/1.3/CRS84"
110+ },
111+ "temporal" : {
112+ "begin" : " 2000-10-30T18:24:39+00:00" ,
113+ "end" : " 2007-10-30T08:57:29+00:00"
69114 }
115+ },
116+ "providers" : [
117+ {
118+ "type" : " feature" ,
119+ "name" : " CSV" ,
120+ "data" : " tests/data/obs.csv" ,
121+ "id_field" : " id" ,
122+ "geometry" : {
123+ "x_field" : " long" ,
124+ "y_field" : " lat"
125+ }
126+ }
127+ ]
128+ }
70129 }
71130 }
72131
Original file line number Diff line number Diff line change @@ -136,8 +136,3 @@ resources:
136136 geometry :
137137 x_field : long
138138 y_field : lat
139- hello-world :
140- type : process
141- processor :
142- name : HelloWorld
143-
You can’t perform that action at this time.
0 commit comments