Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
exposure-initializer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Global Dynamic Exposure
exposure-initializer
Merge requests
!7
Resolve "Adjust to the new version of exposure-lib"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Adjust to the new version of exposure-lib"
2-adjust-to-the-new-version-of-exposure-lib
into
main
Overview
0
Commits
1
Pipelines
4
Changes
1
Merged
Resolve "Adjust to the new version of exposure-lib"
Danijel Schorlemmer
requested to merge
2-adjust-to-the-new-version-of-exposure-lib
into
main
Sep 14, 2022
Overview
0
Commits
1
Pipelines
4
Changes
1
Closes
#2 (closed)
\approve
@tara
@shinde
@laurens
Edited
Sep 15, 2022
by
Danijel Schorlemmer
0
0
Merge request reports
Compare
main
version 2
350b119b
Sep 15, 2022
version 1
1b52f2d0
Sep 14, 2022
main (base)
and
latest version
latest version
146acb25
1 commit,
Sep 15, 2022
version 2
350b119b
2 commits,
Sep 15, 2022
version 1
1b52f2d0
1 commit,
Sep 14, 2022
1 file
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
exposureinitializer/exposureinitializer.py
+
4
−
4
View file @ 146acb25
Edit in single-file editor
Open in Web IDE
Show full file
@@ -405,8 +405,8 @@ class ExposureInitializer:
SELECT quadkey, built_area_size, country_iso_code,
{
self
.
exposure_db
.
geometry_field
}
FROM
{
self
.
exposure_db
.
tile_view
}
WHERE (
built_area_size IS NOT NULL
)
AND (
country_iso_code =
'
{
country_iso_code
}
'
)
WHERE (
country_iso_code =
'
{
country_iso_code
}
'
)
AND (
built_area_size IS NOT NULL
)
) AS A
LEFT JOIN EntityReference AS E
ON E.quadkey = A.quadkey
@@ -606,8 +606,8 @@ def command_line_interface():
initializer
.
retrieve_tile_set_and_boundaries
(
country_iso_code
)
initializer
.
create_view
(
country_iso_code
)
else
:
initializer
.
exposure_db
.
clean_up_referenc
e_exposure
(
country_iso_code
)
initializer
.
exposure_db
.
clean_up
_asset_country
(
country_iso_code
)
initializer
.
exposure_db
.
remov
e_exposure
(
country_iso_code
,
reference
=
True
)
initializer
.
exposure_db
.
remove
_asset_country
(
country_iso_code
)
initializer
.
import_exposure
(
exposure_model
,
country_iso_code
)
initializer
.
process_gaps_in_exposure
(
country_iso_code
)
Loading