|
95 | 95 | (F_HTML, 'text/html'), |
96 | 96 | (F_JSONLD, 'application/ld+json'), |
97 | 97 | (F_JSON, 'application/json'), |
98 | | - (F_JSONFG, 'application/vnd.geo+json'), |
| 98 | + (F_JSONFG, 'application/geo+json'), |
99 | 99 | (F_JPEG, 'image/jpeg'), |
100 | 100 | (F_MVT, 'application/vnd.mapbox-vector-tile'), |
101 | 101 | (F_NETCDF, 'application/x-netcdf'), |
@@ -1128,6 +1128,12 @@ def describe_collections(api: API, request: APIRequest, |
1128 | 1128 | 'title': l10n.translate('Items as GeoJSON', request.locale), # noqa |
1129 | 1129 | 'href': f'{api.get_collections_url()}/{k}/items?f={F_JSON}' # noqa |
1130 | 1130 | }) |
| 1131 | + collection['links'].append({ |
| 1132 | + 'type': FORMAT_TYPES[F_JSONFG], |
| 1133 | + 'rel': 'items', |
| 1134 | + 'title': l10n.translate('Items as JSON-FG', request.locale), # noqa |
| 1135 | + 'href': f'{api.get_collections_url()}/{k}/items?f={F_JSONFG}' # noqa |
| 1136 | + }) |
1131 | 1137 | collection['links'].append({ |
1132 | 1138 | 'type': FORMAT_TYPES[F_JSONLD], |
1133 | 1139 | 'rel': 'items', |
@@ -1334,6 +1340,12 @@ def describe_collections(api: API, request: APIRequest, |
1334 | 1340 | 'title': l10n.translate('This document as JSON', request.locale), # noqa |
1335 | 1341 | 'href': f'{api.get_collections_url()}?f={F_JSON}' |
1336 | 1342 | }) |
| 1343 | + fcm['links'].append({ |
| 1344 | + 'type': FORMAT_TYPES[F_JSONFG], |
| 1345 | + 'rel': request.get_linkrel(F_JSONFG), |
| 1346 | + 'title': l10n.translate('This document as JSON-FG', request.locale), # noqa |
| 1347 | + 'href': f'{api.get_collections_url()}?f={F_JSONFG}' |
| 1348 | + }) |
1337 | 1349 | fcm['links'].append({ |
1338 | 1350 | 'type': FORMAT_TYPES[F_JSONLD], |
1339 | 1351 | 'rel': request.get_linkrel(F_JSONLD), |
|
0 commit comments