We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 50a6061 + df3ad6e commit dc0846fCopy full SHA for dc0846f
1 file changed
src/segger/data/tiling.py
@@ -101,11 +101,15 @@ def _query_tiles(
101
mitre_limit=margin / 2,
102
)
103
missing = buffered.is_empty.sum()
104
+ # handling tiles too small for buffer
105
if missing != 0:
- raise ValueError(
106
+ import warnings
107
+ warnings.warn(
108
f"Margin ({margin}) is too large, causing {missing} "
- f"tile(s) to disappear. Consider using a smaller margin."
109
+ f"tile(s) to disappear. These tiles will be removed from the query."
110
111
+ # Filter out the empty tiles
112
+ buffered = buffered[~buffered.is_empty]
113
tiles = buffered
114
115
# Spatial query
0 commit comments