Skip to content

Commit

Permalink
Fix provider simplification and release of 4.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Mar 7, 2024
1 parent be7e86d commit 5c1b7fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## 4.2.6 - 2024-03-07

* Fix detection of simplification on the provider side

## 4.2.5 - 2024-03-07

* Improve checks for PostgreSQL layers
Expand Down
6 changes: 3 additions & 3 deletions lizmap/project_checker_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ def simplify_provider_side(project: QgsProject, fix=False) -> List[SourceLayer]:
if layer.geometryType() == QgsWkbTypes.PointGeometry:
continue

no_simplification = layer.simplifyMethod().simplifyHints() == QgsVectorSimplifyMethod.NoSimplification
force_local = layer.simplifyMethod().forceLocalOptimization()
if not force_local or no_simplification:
has_simplification = layer.simplifyMethod().simplifyHints() != QgsVectorSimplifyMethod.NoSimplification
provider_simplification = not layer.simplifyMethod().forceLocalOptimization()
if has_simplification and provider_simplification:
continue

results.append(SourceLayer(layer.name(), layer.id()))
Expand Down
Binary file modified lizmap/test/data/points_lines.gpkg
Binary file not shown.

0 comments on commit 5c1b7fc

Please sign in to comment.