03-02-2018 12:13 AM
Hi
I created a WFS service using Webmap 2018 (clean build), saved it in a workspace in AdminPortal and then assigned to a Consumer Portal instance. The WFS features are not rendering on the map.
I can observe the following errors in console:
My questions are:
This is what Consumer Portal requests:
The same WFS service seems to display fine in AdminPortal and Geospatial Portal.
Cheers
Yuan
Solved! Go to Solution.
03-05-2018 05:23 AM
Hi Yuan,
I was able to reproduce this issue. It looks like Consumer Portal doesn't crop the standard WFS parameters that were supplied in the map definition. When I register the WFS in AdminPortal without the parameters such as request=GetCapabilities&... then it displays properly in Consumer.
I think this shall be treated as a bug thus I will report it.
Regards,
Jan
03-05-2018 11:23 AM
Thanks Jan. I see you have created a ticket in the system!
Cheers
Yuan
03-21-2018 05:43 AM
I noticed that there is no client caching used for the transferred vector data. Why use a tiling solution without client-side caching?
07-01-2018 12:34 PM
I also apreciate that there's no client side caching. I supose that it's some missed functionality on oficial release. Can we expect this client side caching in incoming Service pack?? Better if it is done also on server ,but this seems only to be done on MapEnterprise.
07-01-2018 01:39 PM
I also apreciate that there's no client side caching. I supose that it's some missed functionality on oficial release. Can we expect this client side caching in incoming Service pack?? Better if it is done also on server ,but this seems only to be done on MapEnterprise.
07-02-2018 01:01 PM
Below seems to work for me for client side caching - assuming you have control of the WMS/WFS config.
Consumer Portal – enable browser caching of vector tiles
A client side browser cache of vector (WFS) tiles and/or WMS tiles can be enabled.
Initial request from every user (browser) for each tile will still go to the WFS service for dynamic generation. i.e. no performance improvement for first request of each tile.
Once returned to the browser, the tile can be cached for an administrator defined period. That means if the same location is re-visited using the same browser within that administrator defined period – including restarts of browser -, the content will be available in the local browser cache. Handling of the cache is up to the browser / OS / device and end user settings.
Following is example for configuring WFS for caching. WMS is similar.
<EndpointConfiguration>
<endpoint name="soap" messageAnalyzer="soap" defaultLanguage="english" />
<endpoint name="get" messageAnalyzer="get" defaultLanguage="english" />
<endpoint name="post" messageAnalyzer="post" defaultLanguage="english" />
<endpoint name="soappl" messageAnalyzer="soap" defaultLanguage="polish" />
<endpoint name="getpl" messageAnalyzer="get" defaultLanguage="polish" />
<endpoint name="postpl" messageAnalyzer="post" defaultLanguage="polish" />
</EndpointConfiguration>
<EndpointConfiguration>
<endpoint name="soap" messageAnalyzer="soap" defaultLanguage="english" />
<endpoint name="get" messageAnalyzer="get" defaultLanguage="english" cacheControl="Public" cacheDuration="2.00:01:01" />
<endpoint name="post" messageAnalyzer="post" defaultLanguage="english" />
<endpoint name="soappl" messageAnalyzer="soap" defaultLanguage="polish" />
<endpoint name="getpl" messageAnalyzer="get" defaultLanguage="polish" cacheControl="Public" cacheDuration="2.00:01:01" />
<endpoint name="postpl" messageAnalyzer="post" defaultLanguage="polish" />
</EndpointConfiguration>
Ref: GeoMedia WebMap Administrator Guide > Tools for Creating and Managing GeoMedia WebMap Service Instances > Advanced Configuration of Web Services > Configuring Common Sections, Endpoints Configuration
https://hexagongeospatial.fluidtopics.net/reader/jFUgMwV8rLquX7vj86E_6A/As~DCIpPbvh3zqKIhQna4g
I would love to see some sort of server side cache as well - still formulating appropriate idea for idea board. e.g. 50% of clients area is ocean so only want to cache that 1-3 levels, 80% of land area is farm or national park so only want to cache that 1-5 levels. Then want to define urban areas to cache completely.
One interium option could be using 3rd party caching proxy - I've been toying with the idea of trying squid-cache but have not had the time to run it up. However would also want to write some sort of script to call the WMS / WFS tiles - and at present I don't know how the tiles are defined for our coordinate system.
07-03-2018 08:27 AM
Hi Shaun,
Thanks for the tip on how to enable caching on the WFS services. I believe I have enabled this correctly but I'm still seeing HTTP calls to the WFS when panning around data in Consumer Portal.
Are you able to expand on how this type of caching works. My knowledge of VectorTiles is limited, I understand there are a set of tiles per map scale so once the browser has requested all the tiles covering my example data at a particular map scale should I be able to pan around the data with no repeat requests to the WFS?
Thanks,
Colin
07-03-2018 01:01 PM
All I know is in the info I posted - product centre pointed me towards the help topic a while ago when I asked about it.