Hi everyone 😄
I recently started toying with wms extensions of Geotools
(https://docs.geotools.org/latest/userguide/extension/wms/wms.html) and
wondered, why it takes so much time to read the capabilities of a WMS server:
WebMapServer wms = new WebMapServer(url); // - takes seconds(!) to complete
I thought it is the server, which is slow, but QGIS reads the capabilities from
the same server nearly instantly. It seems it boils down to the piece of code
in WMSGetCapabilitiesResponse.java:
object = DocumentFactory.getInstance(inputStream, hints, Level.WARNING);
I did the same from the test code:
return (WMSCapabilities)
DocumentFactory.getInstance(getClass().getResourceAsStream("/wms_basemapde.xml"),
null, Level.WARNING);
... and whoa the line takes whole 3 seconds to complete on my "super modern
notebook". It is basically the time Windows used to start after fresh install...
Any idea, what's going on there and how to avoid this delay?
With best regards and merry christmas / new year ;)
Viatcheslav Sysoltsev
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users