[pygeoapi] image based map tile providers

Travis Kirstine traviskirstine at gmail.com
Wed May 4 07:42:54 PDT 2022


Thank you for the information.  I'll review the provider tile.py class

Regards






On Wed, 4 May 2022 at 03:28, Just van den Broecke <justb4 at gmail.com> wrote:

> Hi Travis,
>
> You are right: the current implementation only supports Vector tiles,
> with sources from either a stored file-hierarchy or from a remote URL.
> Like Tom said the Provider type needs to be MVT.
> You may be lucky that some tile requests may work, but I suspect not as
> the MVT Provider (data URL) implementation is geared towards the
> "MapBox" protocol. The documentation needs amending.
>
> The OGC spec [1], still in draft, distinguishes among "tiles", actually
> Vector Tiles and "map tiles", actually raster tiles (as the follow-up
> from WMTS). Each has its own URL/API-pattern. If you are into Python a
> new pygeoapi Provider for "map tiles" may be added. There is already an
> Abstract Base Class Provider tile.py. We can support you in  that effort.
>
> [1] http://docs.ogc.org/DRAFTS/20-057.html
>
> Best,
>
> Just van den Broecke
>
> On 03/05/2022 21:50, Tom Kralidis wrote:
> > Hi Travis: can you try with name: MVT in your provider setup?
> >
> > Thanks
> >
> > ..Tom
> >
> >> On May 3, 2022, at 11:55, Travis Kirstine <traviskirstine at gmail.com>
> >> wrote:
> >>
> >> 
> >> Are image map tile providers supported?
> >>
> >> It appears that MVT works but not image based services.  In the docs
> >> it indicates that "- type: tile" is allowed but this will throw a
> >> invalid plugin error:
> >>
> >>   File
> >>
> "/home/ubuntu/pygeoapi/lib/python3.8/site-packages/pygeoapi-0.13.dev0-py3.8.egg/pygeoapi/plugin.py",
>
> >> line 94, in load_plugin
> >>     raise InvalidPluginError(msg)
> >> pygeoapi.plugin.InvalidPluginError: Plugin tile not found
> >>
> >> My basic config:
> >>
> >>     mycollection:
> >>         type: collection
> >>         # collection info ......................
> >>         providers:
> >>             - type: tile
> >>               name: image
> >>               data: https://tile.openstreetmap.org/{z}/{x}/{y}.png
> >> <https://tile.openstreetmap.org/{z}/{x}/{y}.png>
> >>               options:
> >>                   zoom:
> >>                       min: 0
> >>                       max: 21
> >>                   schemes:
> >>                       - WebMercatorQuad
> >>               format:
> >>                   name: png
> >>                   mimetype: image/png
> >>
> >> _______________________________________________
> >> pygeoapi mailing list
> >> pygeoapi at lists.osgeo.org
> >> https://lists.osgeo.org/mailman/listinfo/pygeoapi
> >
> > _______________________________________________
> > pygeoapi mailing list
> > pygeoapi at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/pygeoapi
>
> _______________________________________________
> pygeoapi mailing list
> pygeoapi at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pygeoapi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pygeoapi/attachments/20220504/31e5a339/attachment.htm>


More information about the pygeoapi mailing list