kartoza / django-bims

https://testing.healthyrivers.kartoza.com
GNU Affero General Public License v3.0
11 stars 19 forks source link

Map layers render slow because we are using direct wms request #1368

Open NyakudyaA opened 5 years ago

NyakudyaA commented 5 years ago

Problem

In the map layer request, we are using direct wms request, we need to utilize the full capability of Geoserver caching so that map layers are rendered fast.

Example http://testing.healthyrivers.kartoza.com/bims_proxy/https://maps.kartoza.com/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&layers=kartoza:cba_national_mview&format=image/png&WIDTH=256&HEIGHT=256&CRS=EPSG:3857&STYLES=&BBOX=2661231.576776698,-3757032.814272985,2817774.610704739,-3600489.780344944

We should add the following to the request. tiled=true This will ensure that request is fetched from the cache and if not they will be fetched from wms but then cached.

https://maps.kartoza.com/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&layers=kartoza:cba_national_mview&format=image/png&WIDTH=256&HEIGHT=256&CRS=EPSG:3857&STYLES=&BBOX=2661231.576776698,-3757032.814272985,2817774.610704739,-3600489.780344944&tiled=true

https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#tilesorigin

cc @dimasciput @timlinux I think this will improve the user experience for rendering map layers in the front end

helendallas commented 1 year ago

@NyakudyaA Has this been finalised, if yes, please comment and close the ticket.