Skip to content

Commit

Permalink
JPG2K datasets have been supported for a while now, let's not flag th…
Browse files Browse the repository at this point in the history
…ose as unsupported
  • Loading branch information
nirvn committed Sep 18, 2020
1 parent 82f3925 commit fc11b21
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions qfieldsync/core/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.<br>')
'ECW layers are not supported by QField.')
return None

@property
Expand Down

0 comments on commit fc11b21

Please sign in to comment.