Re: [Geoserver-users] Some features without id in mapbox vector tiles

2019-01-10 Thread Ari Jolma
As a side-note, I've been testing tilestrata-postgismvt (node/PostGIS ST_AsMVT solution) for this dataset too. It worked well from the beginning except for some problems(*), which were solved in practise by switching to tile resolution of 4096 that Geoserver uses instead of resolution of 256.

Re: [Geoserver-users] Some features without id in mapbox vector tiles

2019-01-10 Thread Andrea Aime
Thanks for checking, I've made a PR (for a change, it's a one liner!) https://github.com/geoserver/geoserver/pull/3315 Cheers Andrea On Thu, Jan 10, 2019 at 9:17 AM Ari Jolma wrote: > To close this issue. The link below was the solution. java-vector-tile > must be upgraded to version 1.3.4. >

Re: [Geoserver-users] Some features without id in mapbox vector tiles

2019-01-10 Thread Ari Jolma
To close this issue. The link below was the solution. java-vector-tile must be upgraded to version 1.3.4. Thanks Andrea, Ari Andrea Aime kirjoitti 9.1.2019 klo 19.14: Hi, if you are looking into it, I'd check both the MVT code in GeoServer, which is mostly generic and shared among MVT, Topo

Re: [Geoserver-users] Some features without id in mapbox vector tiles

2019-01-09 Thread Andrea Aime
Hi, if you are looking into it, I'd check both the MVT code in GeoServer, which is mostly generic and shared among MVT, TopoJSON and GeoJSON tiles (had a quick look, cannot see splitting of multipolygon over multiple features) and the actual MVT encoder, which is an external library: https://githu

Re: [Geoserver-users] Some features without id in mapbox vector tiles

2019-01-09 Thread Ari Jolma
Doh, MVT does support multipolygons. However, the vectortiles plugin does in this case split the multipolygons into single ring multipolygons. Maybe it is an issue of winding order of the rings - which MVT spec says in VERY importabt? I need to investigate. Ari Ari Jolma kirjoitti 9.1.2019 kl

Re: [Geoserver-users] Some features without id in mapbox vector tiles

2019-01-09 Thread Ari Jolma
Could the explanation be that while MVT vector tiles support only POLYGONs and because these are MULTIPOLYGONs, which occasionally split into multiple polygons, then the mvt_id is only occasionally set? The splitting is done by the vectortiles plugin. Ari Andrea Aime kirjoitti 8.1.2019 klo 13

Re: [Geoserver-users] Some features without id in mapbox vector tiles

2019-01-08 Thread Andrea Aime
Ah ok, so it's the latest. I'd open a bug report then, with a db dump (small, enough to reproduce the issue) Cheers Andrea On Tue, Jan 8, 2019 at 12:37 PM Ari Jolma wrote: > Hi Andrea, > > The snapshots are downloaded from http://geoserver.org/release/dev/ > December 26, filenames are > > geose

Re: [Geoserver-users] Some features without id in mapbox vector tiles

2019-01-08 Thread Ari Jolma
Hi Andrea, The snapshots are downloaded from http://geoserver.org/release/dev/ December 26, filenames are geoserver-2.15-SNAPSHOT-vectortiles-plugin.zip and geoserver-master-2018-12-26-bin.zip The issue is with using the vector tiles with MapBox JS, they work fine with OpenLayers. Best,

Re: [Geoserver-users] Some features without id in mapbox vector tiles

2019-01-08 Thread Andrea Aime
Hi Ari, I don't know honestly, but wondering about what snapshot you're using? Is it from the master branch? That's where most of the recent MVT changes landed, some of which were related to ids. Cheers Andrea On Thu, Jan 3, 2019 at 7:05 AM Ari Jolma wrote: > Hi, > > I'm generating mapbox vect

[Geoserver-users] Some features without id in mapbox vector tiles

2019-01-02 Thread Ari Jolma
Hi, I'm generating mapbox vector tiles from a multipolygon table with an integer PK id in PostGIS. The vectortiles plugin is a snapshot from 26-Dec-2018. The problem is that some features end up as multiple multipolygon features in the pbf file geoserver sends. See below, the tpteksti and t