This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
-
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.
#351 Tilret views til geoserver, så der bruges danske navne konsekvent
- Loading branch information
1 parent
5bab469
commit fc70ac1
Showing
5 changed files
with
23 additions
and
3 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
1 change: 1 addition & 0 deletions
1
psql/schema/migrering/0_52_18_1_rename_view_wms_adgangsadresser.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 @@ | ||
ALTER VIEW wms_adgangsadresser RENAME TO wms_housenumber_inspire; |
8 changes: 8 additions & 0 deletions
8
psql/schema/migrering/0_52_18_2_view_wms_adgangsadresser_dk_columnnames.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,8 @@ | ||
-- tekstretning konverteres fra GON til grader, og det sikres at vinklen er indenfor +/- 90. | ||
CREATE OR REPLACE VIEW wms_adgangsadresser AS | ||
SELECT | ||
id, | ||
husnr, | ||
round((COALESCE(tekstretning, 200) * 0.9 + 360 + 90))::INTEGER % 180 - 90 AS "tekstretninggrader", | ||
geom | ||
FROM adgangsadresser; |
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,10 @@ | ||
DROP VIEW IF EXISTS wms_housenumber_inspire CASCADE; | ||
|
||
-- tekstretning konverteres fra GON til grader, og det sikres at vinklen er indenfor +/- 90. | ||
CREATE OR REPLACE VIEW wms_housenumber_inspire AS | ||
SELECT | ||
id AS "AddressAccessIdentifier", | ||
husnr AS "StreetBuildingIdentifier", | ||
round((COALESCE(tekstretning, 200) * 0.9 + 360 + 90))::INTEGER % 180 - 90 AS "Angle360", | ||
geom | ||
FROM adgangsadresser; |