-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
define structure with utils submodule
- Loading branch information
Josep
committed
Jun 22, 2023
1 parent
330b5b2
commit 3c1ec24
Showing
4 changed files
with
20 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
def check_extent(layer, background): | ||
xMaxL = layer.extent().xMaximum() | ||
xMinL = layer.extent().xMinimum() | ||
yMaxL = layer.extent().yMaximum() | ||
yMinL = layer.extent().yMinimum() | ||
|
||
xMaxB = background.extent().xMaximum() | ||
xMinB = background.extent().xMinimum() | ||
yMaxB = background.extent().yMaximum() | ||
yMinB = background.extent().yMinimum() | ||
|
||
if xMaxL > xMaxB or xMinL < xMinB or yMaxL > yMaxB or yMinL < yMinB: | ||
return False | ||
else: | ||
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters