[Mapbender-users] [Mapbender slowly loading casued by many WMS services]

Astrid Emde (WhereGroup) astrid.emde at wheregroup.com
Tue Nov 22 04:45:36 PST 2022


Hello Marcin,

Am 2022-11-22 10:46, schrieb Marcin Niemyjski:
> Hello,
> 
>  I've recently come back to my Mapbender project which is in high
> development level, and I got 2 questions. Please check geoportal
> first, link: https://www.eo4ua.org
> 
>  My questions:
> 
>  -> As you can see at first Mapbender freezes/stops/needs time to load
> content. I believe it is connected to quantity of WMS layers (or
> quantity of layers in mapfiles) of which capabilities have to be
> downloaded. Is there any way of overcoming this process to enable
> faster loading of mapbender at start? Any recommendations?

When Mapbender loads an application the information is taken from the 
database.

Maybe it is really conneted to your WMS with many layers.

1. You could disable some WMS for testing and check the performance
2. Please make sure that in the Application -> Base Data tab the 
checkbox "Persistent map state" is disabled too


>  -> The second problem is that my goal is to continuously serve daily
> Setinel-2 updates over Ukrainian territory. I have a python that
> updates mapfiles and I will use app/console mapbender:wms:reload:url *
> ** to reload daily updated WMS, but the problem is that the WMS
> Instance settings change back to default, namely after reloading every
> layer in the mapfile is active and selected, and I want every layer to
> be active and only the first layer to be selected. I need the process
> to be atomatic.

There is no app/console command for this.

But you could run an update on the table mb_wms_wmsinstancelayer in the 
Mapbender Database.


The value for column id should stay the same for all layers that do not 
change the name. So you can set all layers to false except the layer 
named latest.

The layer names and corresponding wmslayersourceids are in table 
mb_wms_wmslayersource.

Hope that helps.

Thanks for providing this appplication for Ukraine.

Astrid


>  Best,
>  Marcin
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapbender_users

-- 
Mit freundlichen Grüßen

Astrid Emde
GIS-Consultant

---------------------------------------------
Where2B Konferenz 2022
15. Dezember 2022 in Bonn und Online
where2b-conference.com
---------------------------------------------

   Astrid Emde
   WhereGroup GmbH
   Eifelstraße 7
   53119 Bonn
   Germany

   Tel: +49(0)228 90 90 38 - 22
   Fax: +49(0)228 90 90 38 - 11

   astrid.emde at wheregroup.com
   www.wheregroup.com

   Meinen PGP Public-Key können Sie unter pgp.mit.edu herunterladen:
   
https://keys.openpgp.org/vks/v1/by-fingerprint/01F8152D36FC07C25EADDE86C5084ACC1C287CCB
   Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen

   Folgen Sie der WhereGroup auf twitter:
   http://twitter.com/WhereGroup_com

   Geschäftsführer:
   Olaf Knopp, Peter Stamm
   Amtsgericht Bonn, HRB 9885
-------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x1C287CCB.asc
Type: application/pgp-keys
Size: 1574 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20221122/c4541b51/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20221122/c4541b51/attachment.sig>


More information about the Mapbender_users mailing list