Skip to content

Pdok 18835/vervanging trex v2 clip info - #50

Merged
DvBree merged 6 commits into
PDOK-18835/vervanging-trex-v2-vertegelingfrom
PDOK-18835/vervanging-trex-v2-clip-info
Sep 25, 2026
Merged

DvBree merged 6 commits into
PDOK-18835/vervanging-trex-v2-vertegelingfrom
PDOK-18835/vervanging-trex-v2-clip-info

Conversation

@DvBree

@DvBree DvBree commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Description

This change makes texel clip-aware: you can now specify in which clip you want tiles to be generated. A "clip" is a tile in a tilematrix at a higher zoomlevel.

This solves the following issue. If you want to create tiles for a geopackage that is clipped (in the above sense) with a small buffer, then ordinarily texel snap + texel mvt also creates tiles that only lie in this buffer area. This change essentially prevents these undesired buffer tiles from being generated, by not encoding the corresponding geometries in the first place.

To appease the linting gods (function length/complexity), the main function was refactored to make it slightly less unwieldy.

Type of change

  • New feature
  • Refactoring

Checklist:

  • I've double-checked the code in this PR myself
  • I've left the code better than before (boy scout rule)
  • The code is readable, comments are added that explain hard or non-obvious parts.
  • I've expanded/improved the (unit) tests, when applicable
  • I've run (unit) tests that prove my solution works
  • There's no sensitive information like credentials in my PR

@DvBree
DvBree merged commit 3c67301 into PDOK-18835/vervanging-trex-v2-vertegeling Sep 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants