Skip to content

Commit

Permalink
Merge pull request #13 from lutraconsulting/fix_11
Browse files Browse the repository at this point in the history
Fix #11
  • Loading branch information
saberraz authored May 27, 2019
2 parents 4505a0c + 730ad40 commit 18d48ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tiles_xyz/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name=Tiles XYZ
qgisMinimumVersion=3.0
qgisMaximumVersion=3.6.99
description=Processing algorithm for generating raster tiles
version=0.3
version=0.4
author=Lutra Consulting
email=info@lutraconsulting.co.uk

Expand Down
3 changes: 2 additions & 1 deletion tiles_xyz/tiles_xyz_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ def _execute_sqlite(self, *commands):
conn.close()

def _init_zoom_layer(self, zoom):
self._zoom_ds = None
west_edge, south_edge, east_edge, north_edge = self.extent
first_tile = Tile(*deg2num(north_edge, west_edge, zoom), zoom)
last_tile = Tile(*deg2num(south_edge, east_edge, zoom), zoom)
Expand Down Expand Up @@ -482,7 +483,7 @@ def displayName(self):
return self.tr('Generate XYZ tiles (Directory)')

def processAlgorithm(self, parameters, context, feedback):
is_tms = self.parameterAsBoolean(parameters, self.TMS_CONVENTION, context)
is_tms = self.parameterAsBool(parameters, self.TMS_CONVENTION, context)
output_html = self.parameterAsString(parameters, self.OUTPUT_HTML, context)
output_dir = self.parameterAsString(parameters, self.OUTPUT_DIRECTORY, context)
if not output_dir:
Expand Down

0 comments on commit 18d48ce

Please sign in to comment.