Skip to content

Commit

Permalink
[processing] url-encode path to tiles in XYZ algorithm (fix #32589)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy authored and nyalldawson committed Dec 17, 2019
1 parent 89cacd7 commit a0b392d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/TilesXYZ.py
Expand Up @@ -24,6 +24,7 @@
import os
import math
import re
import urllib.parse
from uuid import uuid4

import sqlite3
Expand Down Expand Up @@ -575,7 +576,7 @@ def processAlgorithm(self, parameters, context, feedback):
results = {'OUTPUT_DIRECTORY': output_dir}

if output_html:
output_dir_safe = output_dir.replace('\\', '/')
output_dir_safe = urllib.parse.quote(output_dir.replace('\\', '/'))
html_code = LEAFLET_TEMPLATE.format(
tilesetname="Leaflet Preview",
centerx=self.wgs_extent[0] + (self.wgs_extent[2] - self.wgs_extent[0]) / 2,
Expand Down

0 comments on commit a0b392d

Please sign in to comment.