|
83 | 83 | ,"storageCrs" : "http://www.opengis.net/def/crs/OGC/1.3/CRS84" |
84 | 84 | {{ end }} |
85 | 85 | {{ end }} |
| 86 | + {{ if and $cfg.OgcAPI.FeaturesSearch $cfg.OgcAPI.FeaturesSearch.Collections }} |
| 87 | + {{ if $cfg.OgcAPI.FeaturesSearch.Collections.ContainsID $coll.ID }} |
| 88 | + {{ range $idxSearch, $collSearch := $cfg.OgcAPI.FeaturesSearch.Collections }} |
| 89 | + {{ if eq $collSearch.ID $coll.ID }} |
| 90 | + ,"version" : {{ $collSearch.Version }} |
| 91 | + ,"displayNameTemplate" : {{ mustToRawJson $collSearch.DisplayNameTemplate }} |
| 92 | + {{ end }} |
| 93 | + {{ end }} |
| 94 | + {{ end }} |
| 95 | + {{ end }} |
86 | 96 | ,"links" : [ |
87 | 97 | { |
88 | 98 | "rel" : "self", |
|
153 | 163 | {{ if and $cfg.OgcAPI.FeaturesSearch $cfg.OgcAPI.FeaturesSearch.Collections }} |
154 | 164 | {{ if $cfg.OgcAPI.FeaturesSearch.Collections.ContainsID $coll.ID }} |
155 | 165 | {{ range $idxSearch, $collSearch := $cfg.OgcAPI.FeaturesSearch.Collections }} |
156 | | - {{ if and (eq $collSearch.ID $coll.ID) ($collSearch.IsRemoteFeatureCollection $coll.ID) }} |
| 166 | + {{ if eq $collSearch.ID $coll.ID }} |
157 | 167 | {{/* collection reference is only required for remotely hosted collections */}} |
| 168 | + {{ if $collSearch.IsRemoteFeatureCollection $coll.ID }} |
158 | 169 | , |
159 | 170 | {{ range $o, $collRef := $coll.CollectionRefs -}} |
160 | 171 | {{ if $o }},{{ end }} |
161 | 172 | { |
162 | | - "rel": "canonical", |
| 173 | + "rel": "source", {{/* not an offical IANA link relation */}} |
163 | 174 | "type": "text/html", |
164 | | - "title": "{{ $collRef.CollectionID }}", |
165 | | - "href": "{{ $collRef.APIBaseURL }}/collections/{{ $collRef.CollectionID }}" |
| 175 | + "title": "Related OGC API Features collection '{{ $collRef.CollectionID }}' in HTML representation", |
| 176 | + "href": "{{ $collRef.APIBaseURL }}/collections/{{ $collRef.CollectionID }}?f=html" |
| 177 | + }, |
| 178 | + { |
| 179 | + "rel": "source", {{/* not an offical IANA link relation */}} |
| 180 | + "type": "application/json", |
| 181 | + "title": "Related OGC API Features collection '{{ $collRef.CollectionID }}' in JSON representation", |
| 182 | + "href": "{{ $collRef.APIBaseURL }}/collections/{{ $collRef.CollectionID }}?f=json" |
166 | 183 | } |
167 | 184 | {{- end }} |
168 | 185 | {{- end }} |
169 | 186 | {{- end }} |
| 187 | + {{- end }} |
170 | 188 | {{end}} |
171 | 189 | {{end}} |
172 | 190 | {{ if and $cfg.OgcAPI.Features $cfg.OgcAPI.Features.Collections }} |
|
0 commit comments