Skip to content

Commit

Permalink
Versão 4.11.12: Corrige Generate Systematic Grid Related to Layer
Browse files Browse the repository at this point in the history
  • Loading branch information
phborba committed Sep 25, 2023
1 parent ef62ff1 commit 7ec861d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CHANGELOG


## 4.11.11 - dev
## 4.11.12 - dev

Novas Funcionalidades:

Expand All @@ -23,6 +23,7 @@ Correção de bug:
- Corrige bug no processo de verificar atributo unicode;
- Corrige bug no processo de identificar pontas soltas (retira distância mínima na busca, agora pega erro até no "mundo quântico");
- Corrige bug na ferramenta de inverter o sentido de linhas (flip lines) quando é uma camada não salva do banco de dados;
- Corrige bug na geração de moldura relativo a camada (Generate Systematic Grid Related to Layer) quando se usa memory layer (o memory layer não atualiza seu extent automaticamente, logo foi necessário colocar um layer.updateExtents() no código antes de calcular o extent);


## 4.10.0 - 2023-09-08
Expand Down
5 changes: 3 additions & 2 deletions DsgTools/core/GeometricTools/featureHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,14 +515,15 @@ def addFeatureToSpatialIndex(

def getLyrUnprojectedGeographicBounds(self, inputLyr):
crs = inputLyr.crs()
inputLyr.updateExtents()
coordinateTransformer = QgsCoordinateTransform(
crs,
QgsCoordinateReferenceSystem(crs.geographicCrsAuthId()),
QgsProject.instance(),
)
) if QgsCoordinateReferenceSystem(crs.geographicCrsAuthId()) != crs else None
reprojectedGeographicBB = coordinateTransformer.transformBoundingBox(
inputLyr.extent()
)
) if coordinateTransformer is not None else inputLyr.extent()
xmin = reprojectedGeographicBB.xMinimum()
ymin = reprojectedGeographicBB.yMinimum()
xmax = reprojectedGeographicBB.xMaximum()
Expand Down
2 changes: 1 addition & 1 deletion DsgTools/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
name=DSG Tools
qgisMinimumVersion=3.22
description=Brazilian Army Cartographic Production Tools
version=4.11.11
version=4.11.12
author=Brazilian Army Geographic Service
[email protected]
about=
Expand Down

0 comments on commit 7ec861d

Please sign in to comment.