<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div>Hi Linda,</div>
<div> </div>
<div>my suggestions inline.</div>
</div>
<div name="messageSignatureSection"><br />
<div>Regards,<br />
Francesco</div>
</div>
<div name="messageReplySection">
<div>On 1 Aug 2025 at 12:11 +0200, Linda Karlovská via pygeoapi <<a href="mailto:pygeoapi@lists.osgeo.org">pygeoapi@lists.osgeo.org</a>>, wrote:<br />
 </div>
<blockquote style="margin: 5px 5px; padding-left: 10px; border-left-width: thin; border-left-style: solid; border-left-color: #1abc9c;">
<div>Hi everyone,</div>
<div> </div>
<div>I'm working with vector tiles on cadastral data using a custom tile matrix set (specifically one based on EPSG:5514 — see https://github.com/OpenGeoLabs/tiles-cz/blob/main/03-tile-matrix-set.md, it's the second TMS listed, though only in Czech).</div>
<div> </div>
<div>While exploring the pygeoapi code, I noticed that two standard tile matrix sets are currently hardcoded here:<br />
<a class="" href="https://github.com/geopython/pygeoapi/blob/master/pygeoapi/models/provider/base.py">https://github.com/geopython/pygeoapi/blob/master/pygeoapi/models/provider/base.py</a></div>
<div>As I understand it correctly, there's currently no built-in way in pygeoapi to register or load additional tile matrix sets dynamically.</div>
</blockquote>
<div><span class="spark-text-indent">    </span><span class="spark-text-indent">    </span>Can you open an issue for this feature? It would be useful as other OGC API - Tiles implementations support that</div>
<blockquote style="margin: 5px 5px; padding-left: 10px; border-left-width: thin; border-left-style: solid; border-left-color: #1abc9c;">
<div>To improve flexibility, I'd like to propose a small refactor and extension:</div>
<ol type="1">
<li>Move the two hardcoded TMSs into separate JSON files (e.g., <code>WorldCRS84Quad.json</code>) in a new folder such as <code>pygeoapi/models/provider/tilematrixsets/</code>.</li>
<li>Add functionality to allow users to define their own custom tile matrix sets by simply adding a JSON file to that directory (e.g., for my use case, <code>S-JTSKQuad.json</code>).</li>
</ol>
<div>Does this direction make sense from the perspective of the current architecture?</div>
</blockquote>
<div><span class="spark-text-indent">    </span><span class="spark-text-indent">    </span> I'd rather follow the pygeoapi plugin pattern to support custom injected tile matrixes </div>
<blockquote style="margin: 5px 5px; padding-left: 10px; border-left-width: thin; border-left-style: solid; border-left-color: #1abc9c;">
<div><br />
And are there any things I should keep in mind when implementing this change?</div>
</blockquote>
<div><span class="spark-text-indent">    </span><span class="spark-text-indent">    </span>I would use a pygeoapi plugin for your use case with a custom tile matrix</div>
<blockquote style="margin: 5px 5px; padding-left: 10px; border-left-width: thin; border-left-style: solid; border-left-color: #1abc9c;">
<div>Thanks a lot for your time and feedback!</div>
<div> </div>
<div>Best regards,<br />
Linda Karlovska</div>
<div>_______________________________________________<br />
pygeoapi mailing list<br />
<a href="mailto:pygeoapi@lists.osgeo.org">pygeoapi@lists.osgeo.org</a><br />
<a href="https://lists.osgeo.org/mailman/listinfo/pygeoapi">https://lists.osgeo.org/mailman/listinfo/pygeoapi</a><br />
 </div>
</blockquote>
</div>
</body>
</html>