Skip to content
Permalink
Browse files

[processing] url-encode path to tiles in XYZ algorithm (fix #32589)

  • Loading branch information
alexbruy authored and nyalldawson committed Dec 17, 2019
1 parent 89cacd7 commit a0b392da12864a00c845a135ec84907af5ff0f05
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/processing/algs/qgis/TilesXYZ.py
@@ -24,6 +24,7 @@
import os
import math
import re
import urllib.parse
from uuid import uuid4

import sqlite3
@@ -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,

0 comments on commit a0b392d

Please sign in to comment.
You can’t perform that action at this time.