Skip to content

Commit

Permalink
Fix uploading styled rasters which cannot be converted to fsl
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 13, 2024
1 parent 95aec15 commit 88523f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions felt/core/layer_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,9 @@ def export_raster_layer(
"""
dest_file = self.generate_file_name('.tif')

fsl_style = self.representative_layer_style(layer)
converted_style = self.representative_layer_style(layer)
upload_raster_as_styled = (force_upload_raster_as_styled or
not fsl_style)
not converted_style.fsl)
layer_export_result, error_message = self.run_raster_writer(
layer,
file_name=dest_file,
Expand All @@ -556,5 +556,5 @@ def export_raster_layer(
result=layer_export_result,
error_message=error_message,
qgis_style_xml=self._get_original_style_xml(layer),
style=fsl_style
style=converted_style
)

0 comments on commit 88523f5

Please sign in to comment.