@@ -217,20 +217,6 @@ bool Layer::parse(json11::Json& doc, ServicesConfiguration* services) {
217217 return false ;
218218 }
219219
220- // On a forcément le TMS natif de la donnée pour le WMTS
221- TileMatrixSetInfos* infos_tms_natif = new TileMatrixSetInfos (pyramid->get_tms ());
222-
223- infos_tms_natif->set_bottom_top (pyramid->get_lowest_level ()->get_id (), pyramid->get_highest_level ()->get_id ());
224-
225- for (Level* l : pyramid->get_ordered_levels (false )) {
226- infos_tms_natif->limits .push_back (l->get_tile_limits ());
227- }
228-
229- available_tilematrixsets.push_back (infos_tms_natif);
230-
231- // On a forcément le CRS natif de la donnée pour le WMS
232- available_crss.push_back ( pyramid->get_tms ()->get_crs () );
233-
234220 /* ********************* Gestion de l'étendue des données */
235221
236222 if (doc[" bbox" ].is_object ()) {
@@ -255,6 +241,20 @@ bool Layer::parse(json11::Json& doc, ServicesConfiguration* services) {
255241 calculate_bboxes ();
256242 }
257243
244+ // On a forcément le TMS natif de la donnée pour le WMTS
245+ TileMatrixSetInfos* infos_tms_natif = new TileMatrixSetInfos (pyramid->get_tms ());
246+
247+ infos_tms_natif->set_bottom_top (pyramid->get_lowest_level ()->get_id (), pyramid->get_highest_level ()->get_id ());
248+
249+ for (Level* l : pyramid->get_ordered_levels (false )) {
250+ infos_tms_natif->limits .push_back (l->get_tile_limits ());
251+ }
252+
253+ available_tilematrixsets.push_back (infos_tms_natif);
254+
255+ // On a forcément le CRS natif de la donnée pour le WMS
256+ available_crss.push_back ( pyramid->get_tms ()->get_crs () );
257+
258258
259259 // Services autorisés a priori
260260 if (doc[" wms" ].is_object () && doc[" wms" ][" enabled" ].is_bool ()) {
0 commit comments