From fc11b212781daff30fb7053968c0e7e2dadf76a3 Mon Sep 17 00:00:00 2001 From: nirvn Date: Fri, 18 Sep 2020 16:36:57 +0700 Subject: [PATCH] JPG2K datasets have been supported for a while now, let's not flag those as unsupported --- qfieldsync/core/layer.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/qfieldsync/core/layer.py b/qfieldsync/core/layer.py index ef79685e..104e8a95 100644 --- a/qfieldsync/core/layer.py +++ b/qfieldsync/core/layer.py @@ -166,11 +166,8 @@ def available_actions(self): @property def is_supported(self): - # jpeg 2000 - if self.layer.source().endswith(('jp2', 'jpx')): - return False # ecw raster - elif self.layer.source().endswith('ecw'): + if self.layer.source().endswith('ecw'): return False else: return True @@ -189,13 +186,9 @@ def is_geometry_locked(self, is_geometry_locked): @property def warning(self): - if self.layer.source().endswith(('jp2', 'jpx')): - return QCoreApplication.translate('DataSourceWarning', - 'JPEG2000 layers are not supported by QField.' - ) if self.layer.source().endswith('ecw'): return QCoreApplication.translate('DataSourceWarning', - 'ECW layers are not supported by QField.
') + 'ECW layers are not supported by QField.') return None @property