[Geoserver-users] Vector Tile very slow rendering

Hello all,

I am using Geoserver 2.16.1 with Vector Tile extension.
I was able to publish a multipoint ShapeFile as a vector tile and see it in
my OpenLayers 6 application.
However, the service is very slow.
I am using the application/vnd.mapbox-vector-tile format as suggested in
https://docs.geoserver.org/stable/en/user/extensions/vectortiles/tutorial.html.
The layer contains millions of points, and as the extent I am viewing is
large the points get very long to display on the map.
Their projection is 900913 and the view of my map is 3857, so I guess this
is fine as there should be no reprojection going on slowing down the
process.
I tried to seed the cache going to speed up everything.
I went into Tile Caching -> Tile Layers -> <My_layer> and clicking the
"Seed/Truncate" link.
Then, I chose:
- Type of operation: Seed - generate missing tiles
- grid set: EPSG:900913
- format: application/vnd.mapbox-vector-tile
- scale: 0 to 14.
and pressed submit.
After less than 5 minutes, apparently the process ended successfully, but
under disk usage I still se N/A.
So I guess that no cache has been seeded, right?
What am I doing wrong? Is it not the best choice to use vector tile for my
dataset?

Thanks in advance.

Umberto

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

You should first enable disk quota. If you see n/a, seeding will do nothing.
When you enable quota, "n/a" will change to 0.0 KB

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

Thanks for the hint!

I enabled it and it now shows 16.55 MB.
I emptied and seeded it again to see if the number was correct and it is
right.

However, the performance of the map is still very poor.

I imagine it has to do with the great number of points to show at low
scales.
Is there a way to control how the tiles are generated (like, selecting an
algorithm to reduce the number of points at low scales or similar?).
The only thing I could found was talking about using tippecanoe software fir
this, but I was wondering if Geoserver has something for it.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

Would WebGLPoints be a reasonable solution for this?
https://openlayers.org/en/latest/examples/filter-points-webgl.html?q=style

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

Well, I cannot really advise something connected with webGL but there might
be some further workaround with GWC.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

You may wish to filter the number of points using rules when you zoomed out so your vector tiles are not so large.
One of the reasons to do vector tiles is to take control of these kind of performance considerations.

ยทยทยท

Jody Garnett

this is definitely what I wanna do, but how can I do it? I could not find
much in GWC documentation. Do you mean using SLD perhaps?

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

Another option is to use WPS PointStacker function to clusterize markers.
More information here:
https://geoserver.geo-solutions.it/edu/en/wps/rendering_tx.html

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

Yes, you need to use your SLD connected to the layer in order to filter
out features, using Min- and MaxScaleDenominators or filters.

Styling in SLD obviously does not matter in this case.

Greetings,

Johannes

this is definitely what I wanna do, but how can I do it? I could not find
much in GWC documentation. Do you mean using SLD perhaps?

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users