Skip to content

Commit

Permalink
Use correct version of retrieveSpriteAsBase64 based on QGIS version (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lazaa32 authored Jan 28, 2025
1 parent f696c1f commit 699813b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gl2qgis/gl2qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,11 @@ def parse_fill_layer(json_layer, context):
sprite_size = QSize()
sprite_property = ""
sprite_size_property = ""
sprite = core_converter.retrieveSpriteAsBase64(json_fill_patern, context)
if int(Qgis.QGIS_VERSION_INT) >= 34000:
sprite = core_converter.retrieveSpriteAsBase64(json_fill_patern, context)
else:
sprite = core_converter.retrieveSpriteAsBase64(json_fill_patern, context, sprite_size, sprite_property,
sprite_size_property)

if sprite:
# when fill-pattern exists, set and insert QgsRasterFillSymbolLayer
Expand Down

0 comments on commit 699813b

Please sign in to comment.