Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing file extension causes AttributeError in 'TilingThread' #121

Open
cvgh9 opened this issue Mar 24, 2023 · 0 comments
Open

Missing file extension causes AttributeError in 'TilingThread' #121

cvgh9 opened this issue Mar 24, 2023 · 0 comments
Labels

Comments

@cvgh9
Copy link

cvgh9 commented Mar 24, 2023

QGIS version: 3.22.4-Białowieża
OS: Ubuntu 22.04.2 LTS
Python version: 3.10.3
QTiles version: 1.7.2

Entering an output filename using the browser does not add the file extension. If not entered manually an Attribute error occurs in TilingThread.py at line 131: if self.mode == 'DIR':. Without a file extension mode is not set in line 80 - 87 for non-directory options.

if self.output.isDir():
    self.mode = 'DIR'
elif self.output.suffix().lower() == "zip":
    self.mode = 'ZIP'
elif self.output.suffix().lower() == "ngrc":
    self.mode = 'NGM'
elif self.output.suffix().lower() == 'mbtiles':
    self.mode = 'MBTILES'

Possibly the cause of #12

Does not occur on Windows 10, the file manager adds the file extension automatically.

@simgislab simgislab added the bug label Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants