[Geoserver-devel] Mapbox vector tiles have an official MIME type, the vector tiles module is not a match

Hi,
we’re playing a bit with vector tiles and I got a report that the VT module is not using the MVT
official mime type.
Checked, indeed it’s registered at https://www.iana.org/assignments/media-types/media-types.xhtml
as “application/vnd.mapbox-vector-tile”, while the current mime exposed by GeoServer is
“application/x-protobuf;type=mapbox-vector”.

The easiest thing is to treat this as a fix and just replace the old with the new. It will require
a few changes in both GeoWebCache and GeoServer.

However, it’s a backwards incompatible change… is it bad thought? Wondering:

  • How many systems are in production today serving vector tiles from GeoServer? (I’m guessing not many, judging from the amount of questions on the user list, but does anyone have a clue?)
  • Are the clients actually caring for the mime type, would they be broken by a change in the mime type?
    I’m guessing that a slightly"better" approach would be to change the format so that it still
    accepts the old format if requested, but does not advertise it (this would break only clients going through the
    capabilities document, which, in combination with vector tiles usage, might seem less likely than normal).

If I did the latter, and only on master, would anyone be concerned?

Cheers
Andrea

···

== GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Long story short:
- mbstyles is a community extension
- we are talking about master

I would go ahead with the change since this is required to work in
real world environments, IMHO.

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
Con riferimento alla normativa sul trattamento dei dati personali
(Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati
“GDPR”), si precisa che ogni circostanza inerente alla presente email
(il suo contenuto, gli eventuali allegati, etc.) è un dato la cui
conoscenza è riservata al/i solo/i destinatario/i indicati dallo
scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a
cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato
se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential
or otherwise protected from disclosure. We remind that - as provided
by European Regulation 2016/679 “GDPR” - copying, dissemination or use
of this e-mail or the information herein by anyone other than the
intended recipient is prohibited. If you have received this email by
mistake, please notify us immediately by telephone or e-mail.

On Tue, Oct 9, 2018 at 3:03 PM Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi,
we're playing a bit with vector tiles and I got a report that the VT module is not using the MVT
official mime type.
Checked, indeed it's registered at https://www.iana.org/assignments/media-types/media-types.xhtml
as "application/vnd.mapbox-vector-tile", while the current mime exposed by GeoServer is
"application/x-protobuf;type=mapbox-vector".

The easiest thing is to treat this as a fix and just replace the old with the new. It will require
a few changes in both GeoWebCache and GeoServer.

However, it's a backwards incompatible change... is it bad thought? Wondering:

How many systems are in production today serving vector tiles from GeoServer? (I'm guessing not many, judging from the amount of questions on the user list, but does anyone have a clue?)
Are the clients actually caring for the mime type, would they be broken by a change in the mime type?

I'm guessing that a slightly"better" approach would be to change the format so that it still
accepts the old format if requested, but does not advertise it (this would break only clients going through the
capabilities document, which, in combination with vector tiles usage, might seem less likely than normal).

If I did the latter, and only on master, would anyone be concerned?

Cheers
Andrea

== GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

It’s an officially supported module since two years ago (main reason for this mail).

Cheers
Andrea

···

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

On master it is still part of community:
https://build.geoserver.org/geoserver/master/community-latest/geoserver-2.15-SNAPSHOT-mbstyle-plugin.zip

and some goes for 2.14:
https://build.geoserver.org/geoserver/2.14.x/community-latest/geoserver-2.14-SNAPSHOT-mbstyle-plugin.zip

maybe there is a mismatch somewhere or I am missing something.

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
Con riferimento alla normativa sul trattamento dei dati personali
(Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati
“GDPR”), si precisa che ogni circostanza inerente alla presente email
(il suo contenuto, gli eventuali allegati, etc.) è un dato la cui
conoscenza è riservata al/i solo/i destinatario/i indicati dallo
scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a
cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato
se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential
or otherwise protected from disclosure. We remind that - as provided
by European Regulation 2016/679 “GDPR” - copying, dissemination or use
of this e-mail or the information herein by anyone other than the
intended recipient is prohibited. If you have received this email by
mistake, please notify us immediately by telephone or e-mail.
On Tue, Oct 9, 2018 at 3:42 PM Andrea Aime <andrea.aime@anonymised.com> wrote:

On Tue, Oct 9, 2018 at 3:30 PM Simone Giannecchini <simone.giannecchini@anonymised.com..1268...> wrote:

Long story short:
- mbstyles is a community extension

It's an officially supported module since two years ago (main reason for this mail).

Cheers
Andrea

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Hi Simone,
here is the GSIP used for graduation:
https://github.com/geoserver/geoserver/wiki/GSIP-138

the module in the code:
https://github.com/geoserver/geoserver/tree/master/src/extension/vectortiles

and check the “vector tiles” module in the 2.14.0 release for example:
http://geoserver.org/release/stable/

The mbstyle module is the “MapBox Style” module, adding support for MapBox GL styles
to be used in GeoServer (same styles to be used in a vector tiles client, as a standard compliant
fallback for when the client in question cannot do MVT).

Cheers
Andrea

···

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

My bad :slight_smile:

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
Con riferimento alla normativa sul trattamento dei dati personali
(Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati
“GDPR”), si precisa che ogni circostanza inerente alla presente email
(il suo contenuto, gli eventuali allegati, etc.) è un dato la cui
conoscenza è riservata al/i solo/i destinatario/i indicati dallo
scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a
cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato
se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential
or otherwise protected from disclosure. We remind that - as provided
by European Regulation 2016/679 “GDPR” - copying, dissemination or use
of this e-mail or the information herein by anyone other than the
intended recipient is prohibited. If you have received this email by
mistake, please notify us immediately by telephone or e-mail.

On Tue, Oct 9, 2018 at 4:48 PM Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi Simone,
here is the GSIP used for graduation:
https://github.com/geoserver/geoserver/wiki/GSIP-138
the module in the code:
https://github.com/geoserver/geoserver/tree/master/src/extension/vectortiles
and check the "vector tiles" module in the 2.14.0 release for example:
http://geoserver.org/release/stable/

The mbstyle module is the "MapBox Style" module, adding support for MapBox GL styles
to be used in GeoServer (same styles to be used in a vector tiles client, as a standard compliant
fallback for when the client in question cannot do MVT).

Cheers
Andrea

On Tue, Oct 9, 2018 at 4:40 PM Simone Giannecchini <simone.giannecchini@anonymised.com..1268...> wrote:

On master it is still part of community:
https://build.geoserver.org/geoserver/master/community-latest/geoserver-2.15-SNAPSHOT-mbstyle-plugin.zip

and some goes for 2.14:
https://build.geoserver.org/geoserver/2.14.x/community-latest/geoserver-2.14-SNAPSHOT-mbstyle-plugin.zip

maybe there is a mismatch somewhere or I am missing something.

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
Con riferimento alla normativa sul trattamento dei dati personali
(Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati
“GDPR”), si precisa che ogni circostanza inerente alla presente email
(il suo contenuto, gli eventuali allegati, etc.) è un dato la cui
conoscenza è riservata al/i solo/i destinatario/i indicati dallo
scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a
cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato
se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential
or otherwise protected from disclosure. We remind that - as provided
by European Regulation 2016/679 “GDPR” - copying, dissemination or use
of this e-mail or the information herein by anyone other than the
intended recipient is prohibited. If you have received this email by
mistake, please notify us immediately by telephone or e-mail.
On Tue, Oct 9, 2018 at 3:42 PM Andrea Aime <andrea.aime@anonymised.com> wrote:
>
> On Tue, Oct 9, 2018 at 3:30 PM Simone Giannecchini <simone.giannecchini@anonymised.com> wrote:
>>
>> Long story short:
>> - mbstyles is a community extension
>
>
> It's an officially supported module since two years ago (main reason for this mail).
>
> Cheers
> Andrea
>
> ==
>
> GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

--

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Looks like in this case the MapBox Mime type was registered some time after the MapBox Vector tile module was created, and the old mime type was never updated.

  • How many systems are in production today serving vector tiles from GeoServer? (I’m guessing not many, judging from the amount of questions on the user list, but does anyone have a clue?)

I don’t have a good answer on how many production systems are serving vector tiles, but I have seen quite a few “demo” apps with geoserver serving vector tiles (some of which are in the realm of “technically a demo but effectively being used in production”).

  • Are the clients actually caring for the mime type, would they be broken by a change in the mime type?

I don’t have a good answer for this one. That said, the GS WMS query string uses the mime type (notably &format=application/x-protobuf;type=mapbox-vector) would need changing; this may be hardcoded in some clients (It is manually set in OpenLayers as part of the tile URL, so thats fine at least)

I’m guessing that a slightly"better" approach would be to change the format so that it still
accepts the old format if requested, but does not advertise it (this would break only clients going through the
capabilities document, which, in combination with vector tiles usage, might seem less likely than normal).

I like this approach quite a bit better. If I recall correctly, its not that difficult to do this in geoserver, although its been a while since I last tried aliasing mime types so I could be misremembering.

As a bit of an aside, poking around a little it looks like this isn’t the only mime type that geoserver does not abide by:
For GeoJSON tiles we use application/json;type=geojson (Also, WFS GeoJSON output uses application/json). The actual mime type for GeoJSON is application/geo+json. (This is another one that has changed / been registered relatively recently - August 2016).

Cheers,

Torben

On Tue, Oct 9, 2018 at 7:52 AM Simone Giannecchini <simone.giannecchini@anonymised.com> wrote:

My bad :slight_smile:

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Con riferimento alla normativa sul trattamento dei dati personali
(Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati
“GDPR”), si precisa che ogni circostanza inerente alla presente email
(il suo contenuto, gli eventuali allegati, etc.) è un dato la cui
conoscenza è riservata al/i solo/i destinatario/i indicati dallo
scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a
cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato
se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential
or otherwise protected from disclosure. We remind that - as provided
by European Regulation 2016/679 “GDPR” - copying, dissemination or use
of this e-mail or the information herein by anyone other than the
intended recipient is prohibited. If you have received this email by
mistake, please notify us immediately by telephone or e-mail.

On Tue, Oct 9, 2018 at 4:48 PM Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi Simone,
here is the GSIP used for graduation:
https://github.com/geoserver/geoserver/wiki/GSIP-138
the module in the code:
https://github.com/geoserver/geoserver/tree/master/src/extension/vectortiles
and check the “vector tiles” module in the 2.14.0 release for example:
http://geoserver.org/release/stable/

The mbstyle module is the “MapBox Style” module, adding support for MapBox GL styles
to be used in GeoServer (same styles to be used in a vector tiles client, as a standard compliant
fallback for when the client in question cannot do MVT).

Cheers
Andrea

On Tue, Oct 9, 2018 at 4:40 PM Simone Giannecchini <simone.giannecchini@anonymised.com.1268…> wrote:

On master it is still part of community:
https://build.geoserver.org/geoserver/master/community-latest/geoserver-2.15-SNAPSHOT-mbstyle-plugin.zip

and some goes for 2.14:
https://build.geoserver.org/geoserver/2.14.x/community-latest/geoserver-2.14-SNAPSHOT-mbstyle-plugin.zip

maybe there is a mismatch somewhere or I am missing something.

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Con riferimento alla normativa sul trattamento dei dati personali
(Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati
“GDPR”), si precisa che ogni circostanza inerente alla presente email
(il suo contenuto, gli eventuali allegati, etc.) è un dato la cui
conoscenza è riservata al/i solo/i destinatario/i indicati dallo
scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a
cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato
se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential
or otherwise protected from disclosure. We remind that - as provided
by European Regulation 2016/679 “GDPR” - copying, dissemination or use
of this e-mail or the information herein by anyone other than the
intended recipient is prohibited. If you have received this email by
mistake, please notify us immediately by telephone or e-mail.
On Tue, Oct 9, 2018 at 3:42 PM Andrea Aime <andrea.aime@anonymised.com> wrote:

On Tue, Oct 9, 2018 at 3:30 PM Simone Giannecchini <simone.giannecchini@anonymised.com> wrote:

Long story short:

  • mbstyles is a community extension

It’s an officially supported module since two years ago (main reason for this mail).

Cheers
Andrea

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Looks like in this case the MapBox Mime type was registered some time after the MapBox Vector tile module was created, and the old mime type was never updated.

  • How many systems are in production today serving vector tiles from GeoServer? (I’m guessing not many, judging from the amount of questions on the user list, but does anyone have a clue?)

I don’t have a good answer on how many production systems are serving vector tiles, but I have seen quite a few “demo” apps with geoserver serving vector tiles (some of which are in the realm of “technically a demo but effectively being used in production”).

Thought so.

  • Are the clients actually caring for the mime type, would they be broken by a change in the mime type?

I don’t have a good answer for this one. That said, the GS WMS query string uses the mime type (notably &format=application/x-protobuf;type=mapbox-vector) would need changing; this may be hardcoded in some clients (It is manually set in OpenLayers as part of the tile URL, so thats fine at least)

Yes.

I’m guessing that a slightly"better" approach would be to change the format so that it still
accepts the old format if requested, but does not advertise it (this would break only clients going through the
capabilities document, which, in combination with vector tiles usage, might seem less likely than normal).

I like this approach quite a bit better. If I recall correctly, its not that difficult to do this in geoserver, although its been a while since I last tried aliasing mime types so I could be misremembering.

I’ll work in this direction and prepare a couple of PRs

As a bit of an aside, poking around a little it looks like this isn’t the only mime type that geoserver does not abide by:

For GeoJSON tiles we use application/json;type=geojson (Also, WFS GeoJSON output uses application/json). The actual mime type for GeoJSON is application/geo+json. (This is another one that has changed / been registered relatively recently - August 2016).

Yes indeed, the WFS3 module has a GeoJSON output format subclass with that mime type indeed (and a few extras
that are WFS3 specific, but that could be of general utility too, like paging links):

https://github.com/geoserver/geoserver/blob/e492eee64248d343fe9d6a2bb4c5811b3a9339db/src/community/wfs3/src/main/java/org/geoserver/wfs3/response/RFCGeoJSONFeaturesResponse.java

I don’t have short term plans to bring it out of the module, but if anyone else is interested, I’d welcome the change.

Cheers
Andrea

···

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Here we go:

For the GeoServer side I’ve tried to use the old mime type when doing a request, while only the new mime type is enabled,
it still works and returns a HIT, so it’s still using the cache (I was making a WMTS request).
For the config UI I played a small trick in order to maintain backwards compatibility: if GWC or a layer was configured
to use the legacy format, it will still appear in the UI as a cached format, but allowing the configurator an option to
switch to the new one.
Once the old one is removed from the configuration, it won’t show up in the UI anymore.
Hopefully this will allow a smoother migration for the hosts that were configured with the old format, and seemed to be
better than the other two obvious options (not showing the old format at all, as if there was no cache for it,
or showing it always). Unfortunately the whole GWC UI formats thing is driven by property files, so cannot add
logic into it (like “enable the old format only if this config flag is enabled”).

Cheers
Andrea

···

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.