-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #739 from GIScience/building-comparision-fix-up
building-comparison: fix checks and result description
- Loading branch information
Showing
8 changed files
with
271 additions
and
39 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
11 changes: 11 additions & 0 deletions
11
ohsome_quality_api/geodatabase/get_coverage_intersection.sql
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,11 @@ | ||
WITH bpoly AS ( | ||
SELECT | ||
ST_Setsrid (ST_GeomFromGeoJSON ($1), 4326) AS geom | ||
) | ||
SELECT | ||
ST_AsGeoJSON (ST_Intersection (bpoly.geom, coverage.geom)) AS geom | ||
FROM | ||
bpoly, | ||
eubucco_v0_1_coverage_simple coverage | ||
WHERE | ||
ST_Intersects (bpoly.geom, coverage.geom) |
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
Oops, something went wrong.