<html><body><p>Hi everyone,</p><p><br></p>
<p>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).</p><p><br></p>
<p>While exploring the pygeoapi code, I noticed that two standard tile matrix sets are currently hardcoded here:<br><a href="https://github.com/geopython/pygeoapi/blob/master/pygeoapi/models/provider/base.py" class rel="noopener">https://github.com/geopython/pygeoapi/blob/master/pygeoapi/models/provider/base.py</a></p>
<p>As I understand it correctly, there's currently no built-in way in pygeoapi to register or load additional tile matrix sets dynamically.</p>
<p>To improve flexibility, I'd like to propose a small refactor and extension:</p>
<ol><li>
<p>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>.</p>
</li><li>
<p>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>).</p></li></ol><p>
Does this direction make sense from the perspective of the current architecture?<br>And are there any things I should keep in mind when implementing this change?</p><p><br></p>
<p>Thanks a lot for your time and feedback!</p><p><br></p>
<p>Best regards,<br>
Linda Karlovska</p></body></html>