Skip to content

Commit

Permalink
Merge pull request #919 from opengisch/QF-3988-extent
Browse files Browse the repository at this point in the history
Do not exclude vector layers when estimating the extent of the project
  • Loading branch information
suricactus authored Mar 25, 2024
2 parents 950d568 + d6b65a3 commit 2a88347
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docker-qgis/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
layers_data_to_string,
open_qgis_project,
)
from qgis.core import QgsCoordinateTransform, QgsProject, QgsRectangle, QgsVectorLayer
from qgis.core import QgsCoordinateTransform, QgsProject, QgsRectangle

PGSERVICE_FILE_CONTENTS = os.environ.get("PGSERVICE_FILE_CONTENTS")

Expand Down Expand Up @@ -51,9 +51,6 @@ def _call_libqfieldsync_packager(
else:
vl_extent = QgsRectangle()
for layer in layers.values():
if isinstance(layer, QgsVectorLayer):
continue

layer_extent = layer.extent()

if layer_extent.isNull() or not layer_extent.isFinite():
Expand Down

0 comments on commit 2a88347

Please sign in to comment.