On Tue, Oct 9, 2018 at 8:08 PM Torben Barsballe <tbarsba...@boundlessgeo.com>
wrote:

>
> 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
> <https://github.com/geoserver/geoserver/blob/445625cdad44e79c48682b0c9852e1e2586c018e/src/extension/vectortiles/src/main/java/org/geoserver/wms/geojson/GeoJsonBuilderFactory.java#L14>
> (Also, WFS GeoJSON output uses application/json). The actual mime type
> for GeoJSON <https://tools.ietf.org/html/rfc7946#section-12>
> 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.*
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to